:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11141a;
  --surface-2: #171b22;
  --ink: #f4f6f7;
  --muted: #939aa7;
  --line: #2a303a;
  --acid: #dfff4f;
  --cyan: #78f6ff;
  --orange: #ff7043;
  --red: #ff4f62;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1440px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% -10%, rgba(120, 246, 255, 0.09), transparent 30%),
    radial-gradient(circle at 5% 28%, rgba(223, 255, 79, 0.055), transparent 26%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.topbar {
  width: var(--page);
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: #080a0d;
  font-size: 19px;
  transform: skew(-8deg);
}

.brand-slash {
  color: var(--acid);
}

.topbar-right,
.sync-state {
  display: flex;
  align-items: center;
}

.topbar-right {
  gap: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 32px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.main-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--acid);
  outline: none;
}

.sync-state {
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(223, 255, 79, 0.09), 0 0 18px rgba(223, 255, 79, 0.5);
}

.sync-state.error .live-dot {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 112, 67, 0.09);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--acid);
  border-color: var(--acid);
  outline: none;
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.loading svg {
  animation: spin 700ms linear infinite;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}

main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 38px 64px;
  padding: 84px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 6.3vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.intro-copy h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #8d94a0;
  text-stroke: 1px #8d94a0;
}

.intro-note {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.mode-console {
  align-self: end;
}

.profile-finder {
  align-self: end;
  position: relative;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 112, 67, 0.12), transparent 52%),
    rgba(17, 20, 26, 0.9);
  border: 1px solid var(--line);
}

.profile-finder::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 4px;
  top: -1px;
  left: 26px;
  background: var(--orange);
}

.finder-heading,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.finder-heading span:first-child {
  color: var(--orange);
}

.finder-form {
  margin-top: 28px;
}

.finder-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.finder-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.finder-input-row input {
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: #090b0f;
  border: 1px solid #353b46;
  border-right: 0;
  border-radius: 0;
  font: 13px var(--mono);
  outline: none;
}

.finder-input-row input:focus {
  border-color: var(--orange);
  box-shadow: inset 3px 0 0 var(--orange);
}

.finder-input-row input::placeholder {
  color: #616875;
}

.finder-input-row button {
  min-width: 116px;
  padding: 0 18px;
  color: #0a0c10;
  background: var(--orange);
  border: 0;
  font: 700 10px var(--mono);
  letter-spacing: 0.07em;
  cursor: pointer;
}

.finder-input-row button:hover,
.finder-input-row button:focus-visible {
  background: var(--ink);
  outline: none;
}

.finder-input-row button:disabled {
  color: var(--muted);
  background: #242933;
  cursor: wait;
}

.finder-form > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.player-search-results {
  position: absolute;
  z-index: 12;
  left: 26px;
  right: 26px;
  top: calc(100% - 27px);
  max-height: 340px;
  overflow: auto;
  background: #0b0d12;
  border: 1px solid var(--orange);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.search-result {
  width: 100%;
  min-height: 68px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.search-result img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--surface);
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result small {
  margin-top: 3px;
  color: var(--muted);
  font: 9px var(--mono);
}

.search-result > span:last-child {
  color: var(--orange);
}

.finder-error {
  padding: 18px;
  color: #ffb29b;
  font-size: 12px;
}

.saved-player {
  margin-top: 14px;
  padding: 7px 10px;
  color: var(--cyan);
  background: rgba(120, 246, 255, 0.06);
  border: 1px solid rgba(120, 246, 255, 0.24);
  font: 9px var(--mono);
  cursor: pointer;
}

.mode-heading,
.build-topline,
.tools-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.mode-heading {
  margin-bottom: 12px;
  color: var(--muted);
}

.keyboard-hint {
  color: #59606d;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.mode-button {
  min-height: 130px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  position: relative;
  color: var(--muted);
  background: rgba(17, 20, 26, 0.72);
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.mode-button:last-child {
  border-right: 0;
}

.mode-button:hover,
.mode-button:focus-visible {
  color: var(--ink);
  background: var(--surface-2);
  outline: 1px solid var(--acid);
  outline-offset: -1px;
}

.mode-button.active {
  color: #080a0d;
  background: var(--acid);
}

.mode-button.active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: #080a0d;
}

.mode-index {
  margin-bottom: auto;
  font-family: var(--mono);
  font-size: 10px;
}

.mode-button strong {
  font-size: 15px;
}

.mode-button small {
  opacity: 0.72;
  font-size: 11px;
}

.brief-card {
  grid-column: 1 / -1;
  min-height: 158px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 30px 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(223, 255, 79, 0.12), transparent 26%),
    var(--surface);
  border: 1px solid var(--line);
}

.brief-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: 120px;
  top: -115px;
  border: 1px solid rgba(223, 255, 79, 0.2);
  transform: rotate(45deg);
}

.brief-meta {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.brief-number {
  color: var(--acid);
}

.brief-card h2 {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.2vw, 32px);
  letter-spacing: -0.035em;
}

.brief-card p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
}

.brief-clock {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--mono);
}

.brief-clock strong {
  font-size: 28px;
  color: var(--acid);
}

.brief-clock span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.section-block {
  padding: 66px 0 80px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(280px, 0.3fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .section-kicker {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.065em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feed-panel {
  min-width: 0;
  background: rgba(17, 20, 26, 0.72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-header {
  height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.panel-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sport-symbol {
  color: var(--acid);
  font-size: 14px;
}

.dota-glyph {
  color: var(--orange);
  font-size: 18px;
}

.panel-status {
  padding: 5px 7px;
  color: var(--muted);
  background: #0b0d11;
  border: 1px solid var(--line);
  font-size: 8px;
}

.panel-status.ready {
  color: var(--acid);
  border-color: rgba(223, 255, 79, 0.35);
}

.match-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.match-league {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teams {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-pair {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-logo,
.team-fallback {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.team-logo {
  object-fit: contain;
  filter: saturate(0.88);
}

.team-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #0a0c10;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
}

.teams strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.versus {
  color: #626a77;
  font-family: var(--mono);
  font-size: 9px;
}

.match-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
}

.match-time strong {
  color: var(--acid);
  font-size: 15px;
}

.dota-panel .match-time strong {
  color: var(--orange);
}

.match-time span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.match-result {
  color: var(--ink) !important;
  font-size: 18px !important;
}

.empty-state {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.skeleton-row,
.story-skeleton {
  position: relative;
  overflow: hidden;
  background: #12161c;
}

.skeleton-row {
  height: 112px;
  border-bottom: 1px solid var(--line);
}

.skeleton-row::after,
.story-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.pulse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.45fr);
  min-height: 480px;
}

.radar-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.radar-orbit {
  width: 280px;
  aspect-ratio: 1;
  margin: auto;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(120, 246, 255, 0.2);
  background:
    repeating-radial-gradient(circle, transparent 0 36px, rgba(120, 246, 255, 0.11) 37px 38px),
    conic-gradient(from 10deg, rgba(120, 246, 255, 0.24), transparent 24%, transparent 80%, rgba(120, 246, 255, 0.13));
}

.radar-orbit::before,
.radar-orbit::after {
  content: "";
  position: absolute;
  background: rgba(120, 246, 255, 0.16);
}

.radar-orbit::before {
  width: 1px;
  top: 0;
  bottom: 0;
  left: 50%;
}

.radar-orbit::after {
  height: 1px;
  left: 0;
  right: 0;
  top: 50%;
}

.radar-orbit > span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.radar-orbit > span:nth-child(1) { left: 20%; top: 31%; }
.radar-orbit > span:nth-child(2) { left: 66%; top: 22%; animation-delay: 0.5s; }
.radar-orbit > span:nth-child(3) { left: 74%; top: 69%; animation-delay: 1s; }

.radar-orbit > i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(120, 246, 255, 0.65), transparent);
}

.radar-orbit > i:nth-of-type(1) { transform: rotate(25deg); }
.radar-orbit > i:nth-of-type(2) { transform: rotate(145deg); }
.radar-orbit > i:nth-of-type(3) { transform: rotate(260deg); }

.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stories;
  border-left: 1px solid var(--line);
}

.story-item {
  min-height: 96px;
  counter-increment: stories;
  border-bottom: 1px solid var(--line);
}

.story-item:last-child {
  border-bottom: 0;
}

.story-item a {
  min-height: inherit;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  transition: background 160ms ease;
}

.story-item a:hover,
.story-item a:focus-visible {
  background: rgba(120, 246, 255, 0.035);
  outline: 1px solid var(--cyan);
  outline-offset: -1px;
}

.story-item a::before {
  content: counter(stories, decimal-leading-zero);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
}

.story-title {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.story-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.story-arrow {
  color: var(--muted);
  font-family: var(--mono);
}

.story-skeleton {
  height: 96px;
  border-bottom: 1px solid var(--line);
}

.signal-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cyan);
  color: #071014;
}

.signal-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.signal-card blockquote {
  margin: 50px 0;
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.signal-meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  font-family: var(--mono);
  font-size: 8px;
}

.signal-meter div {
  height: 4px;
  background: rgba(7, 16, 20, 0.18);
}

.signal-meter i {
  display: block;
  width: 74%;
  height: 100%;
  background: #071014;
  transition: width 600ms ease;
}

.vibe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
}

.build-card,
.tools-card {
  min-height: 430px;
  padding: 32px;
  border: 1px solid var(--line);
}

.build-card {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(140deg, rgba(223, 255, 79, 0.13), transparent 34%),
    var(--surface);
}

.build-topline {
  color: var(--muted);
}

.build-topline button {
  padding: 0;
  color: var(--acid);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.build-topline button:hover,
.build-topline button:focus-visible {
  color: var(--ink);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.build-card h3 {
  margin: auto 0 12px;
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.build-card > p {
  max-width: 660px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
}

.idea-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.idea-stack span {
  padding: 6px 9px;
  color: var(--acid);
  background: rgba(223, 255, 79, 0.08);
  border: 1px solid rgba(223, 255, 79, 0.28);
  font-family: var(--mono);
  font-size: 9px;
}

.tools-card {
  padding: 0;
  background: #0d1015;
}

.tools-card header {
  height: 64px;
  padding: 0 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.tools-card header span:last-child {
  color: var(--acid);
}

.player-section[hidden] {
  display: none;
}

.player-section {
  padding-top: 34px;
}

.player-overview {
  border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(255, 112, 67, 0.12), transparent 36%),
    var(--surface);
}

.player-identity {
  min-height: 190px;
  padding: 28px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.player-identity > img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: #0a0c10;
  border: 1px solid #3b424e;
  box-shadow: 12px 12px 0 rgba(255, 112, 67, 0.12);
}

.player-identity .section-kicker {
  margin-bottom: 9px;
  color: var(--orange);
}

.player-identity h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.065em;
}

.player-meta,
.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-meta {
  margin-top: 16px;
}

.player-meta span,
.player-links a {
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  font: 9px var(--mono);
}

.player-meta span:first-child {
  color: var(--orange);
  border-color: rgba(255, 112, 67, 0.35);
}

.player-links {
  flex-direction: column;
  align-items: stretch;
}

.player-links a {
  color: var(--ink);
  text-align: center;
}

.player-links a:hover,
.player-links a:focus-visible {
  color: #0a0c10;
  background: var(--acid);
  border-color: var(--acid);
  outline: none;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.player-stat {
  min-height: 118px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.player-stat:last-child {
  border-right: 0;
}

.player-stat span {
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}

.player-stat strong {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.player-stat.positive strong {
  color: var(--acid);
}

.player-stat.negative strong {
  color: var(--red);
}

.player-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(330px, 0.7fr);
  border-left: 1px solid var(--line);
}

.hero-pool-card,
.recent-games-card,
.hermes-coach {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-header {
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.detail-header span:last-child {
  color: #59606c;
}

.hero-row {
  min-height: 74px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-row:last-child {
  border-bottom: 0;
}

.hero-row img,
.game-hero {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #080a0d;
}

.hero-row strong,
.hero-row small {
  display: block;
}

.hero-row strong {
  font-size: 13px;
}

.hero-row small {
  margin-top: 4px;
  color: var(--muted);
  font: 9px var(--mono);
}

.hero-winrate {
  color: var(--acid);
  font: 700 13px var(--mono);
}

.hero-meter {
  width: 54px;
  height: 4px;
  overflow: hidden;
  background: #252b34;
}

.hero-meter i {
  height: 100%;
  display: block;
  background: var(--acid);
}

.game-row {
  min-height: 74px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.game-row:hover,
.game-row:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  outline: none;
}

.game-copy strong,
.game-copy small {
  display: block;
}

.game-copy strong {
  font-size: 12px;
}

.game-copy small {
  margin-top: 4px;
  color: var(--muted);
  font: 9px var(--mono);
}

.game-result {
  font: 700 10px var(--mono);
}

.game-result.win {
  color: var(--acid);
}

.game-result.loss {
  color: var(--red);
}

.hermes-coach {
  padding: 24px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0, rgba(120, 246, 255, 0.13), transparent 36%),
    #0c1015;
}

.hermes-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hermes-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #071014;
  background: var(--cyan);
  font-family: var(--display);
  font-size: 22px;
  transform: skew(-7deg);
}

.hermes-heading p,
.hermes-heading small {
  margin: 0;
  display: block;
}

.hermes-heading p {
  font: 700 12px var(--mono);
}

.hermes-heading small {
  margin-top: 3px;
  color: var(--muted);
  font: 8px var(--mono);
}

.hermes-live {
  color: var(--muted);
  font: 8px var(--mono);
}

.hermes-live.authenticated {
  color: var(--cyan);
}

.hermes-live::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hermes-intro {
  margin: 28px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.coach-login {
  display: grid;
  gap: 8px;
}

.coach-login label {
  margin-top: 5px;
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
}

.coach-login input {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #080b0f;
  border: 1px solid var(--line);
  border-radius: 0;
  font: 12px var(--mono);
}

.coach-login input:focus {
  border-color: var(--cyan);
  outline: none;
}

.coach-login button {
  min-height: 44px;
  margin-top: 8px;
  color: #071014;
  background: var(--cyan);
  border: 0;
  font: 700 9px var(--mono);
  cursor: pointer;
}

.coach-login button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.coach-auth-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--red);
  font: 9px var(--mono);
}

.coach-depth {
  margin: -6px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.coach-depth span {
  padding: 5px 7px;
  color: var(--cyan);
  background: rgba(120, 246, 255, 0.045);
  border: 1px solid rgba(120, 246, 255, 0.18);
  font: 7px var(--mono);
  letter-spacing: 0.06em;
}

.coach-actions {
  display: grid;
  gap: 7px;
}

.coach-actions button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  text-align: left;
  font: 9px var(--mono);
  cursor: pointer;
}

.coach-actions button:hover,
.coach-actions button:focus-visible,
.coach-actions button.active {
  color: #071014;
  background: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.coach-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.coach-response {
  min-height: 190px;
  margin-top: 18px;
  padding: 16px;
  color: #dfe7e9;
  background: rgba(120, 246, 255, 0.035);
  border: 1px solid rgba(120, 246, 255, 0.18);
  font-size: 12px;
  line-height: 1.65;
  white-space: normal;
}

.coach-response > span,
.coach-response > p:first-child:last-child {
  color: var(--muted);
}

.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }

.markdown-body h3,
.markdown-body h4 {
  margin: 18px 0 8px;
  color: var(--cyan);
  font: 700 11px var(--mono);
  letter-spacing: 0.04em;
}

.markdown-body p {
  margin: 0 0 11px;
}

.markdown-body ol,
.markdown-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.markdown-body li {
  margin: 0 0 9px;
  padding-left: 3px;
}

.markdown-body strong { color: #fff; }

.markdown-body code {
  padding: 2px 5px;
  color: var(--acid);
  background: rgba(223, 255, 79, 0.08);
  font: 10px var(--mono);
}

.coach-logout {
  margin-top: 14px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: 8px var(--mono);
  text-align: left;
  cursor: pointer;
}

.coach-logout:hover,
.coach-logout:focus-visible {
  color: var(--cyan);
  outline: none;
}

.favorite-clubs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.club-card,
.club-skeleton {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.club-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.club-card.spartak {
  --club-color: #df2137;
  background:
    linear-gradient(140deg, rgba(223, 33, 55, 0.2), transparent 52%),
    var(--surface);
}

.club-card.united {
  --club-color: #f5b725;
  background:
    linear-gradient(140deg, rgba(218, 41, 28, 0.2), transparent 52%),
    var(--surface);
}

.club-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -70px;
  bottom: -120px;
  border: 1px solid color-mix(in srgb, var(--club-color) 45%, transparent);
  transform: rotate(45deg);
}

.club-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.club-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.club-head small,
.club-head strong {
  display: block;
}

.club-head small {
  color: var(--muted);
  font: 8px var(--mono);
  text-transform: uppercase;
}

.club-head strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.club-form {
  padding: 6px 8px;
  color: var(--club-color);
  border: 1px solid color-mix(in srgb, var(--club-color) 45%, transparent);
  font: 9px var(--mono);
}

.club-fixtures {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.club-event {
  min-height: 128px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.club-event:last-child {
  border-right: 0;
}

.club-event > span {
  color: var(--muted);
  font: 8px var(--mono);
}

.club-event strong {
  display: block;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.3;
}

.club-event time,
.club-score {
  color: var(--club-color);
  font: 700 12px var(--mono);
}

.club-skeleton {
  background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface));
  background-size: 200% 100%;
  animation: shimmer-club 1.5s linear infinite;
}

@keyframes shimmer-club {
  to { background-position: -200% 0; }
}

.tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-item a {
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease;
}

.tool-item a:hover,
.tool-item a:focus-visible {
  color: var(--acid);
  background: var(--surface);
  outline: none;
}

.tool-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.tool-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.tool-item span {
  color: var(--muted);
}

footer {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer a {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
}

.footer-brand {
  color: var(--ink);
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 14px;
  color: #080a0d;
  background: var(--acid);
  text-align: center;
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 1080px) {
  :root { --page: min(100% - 32px, 980px); }

  .command-deck {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .mode-console { max-width: 720px; }
  .brief-card { grid-column: auto; }

  .player-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hermes-coach {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .radar-panel {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .radar-orbit { width: 220px; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }

  .watch-grid,
  .pulse-grid,
  .vibe-grid,
  .favorite-clubs,
  .player-detail-grid {
    grid-template-columns: 1fr;
  }

  .player-overview {
    grid-template-columns: 1fr;
  }

  .player-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hermes-coach { grid-column: auto; }

  .radar-panel {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .signal-card { min-height: 340px; }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 24px); }

  .topbar { height: 72px; }
  .sync-state { display: none; }

  .command-deck {
    gap: 34px;
    padding: 52px 0 42px;
  }

  .intro-copy h1 {
    font-size: clamp(46px, 16vw, 70px);
    line-height: 0.92;
  }

  .intro-note {
    margin-top: 22px;
    font-size: 14px;
  }

  .keyboard-hint { display: none; }

  .profile-finder { padding: 20px; }
  .finder-input-row { grid-template-columns: 1fr; }
  .finder-input-row input {
    border-right: 1px solid #353b46;
    border-bottom: 0;
  }
  .finder-input-row button { min-height: 48px; }
  .player-search-results { left: 20px; right: 20px; top: calc(100% - 21px); }

  .player-identity {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 20px;
  }
  .player-identity > img { width: 62px; height: 62px; }
  .player-identity h2 { font-size: 29px; }
  .player-links {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .player-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .player-stat { min-height: 96px; padding: 15px; }
  .player-stat strong { font-size: 20px; }
  .club-card { min-height: 410px; padding: 20px; }
  .club-head { grid-template-columns: 58px minmax(0, 1fr); }
  .club-logo { width: 58px; height: 58px; }
  .club-form { grid-column: 1 / -1; justify-self: start; }
  .club-fixtures { grid-template-columns: 1fr; }
  .club-event { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .club-event:last-child { border-bottom: 0; }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .mode-button {
    min-height: 76px;
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mode-button:last-child { border-bottom: 0; }
  .mode-index { grid-row: 1 / 3; margin: 3px 0 0; }

  .brief-card {
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding: 24px 20px;
  }

  .brief-meta { display: none; }
  .brief-clock { min-width: auto; }
  .brief-clock strong { font-size: 20px; }
  .brief-card h2 { font-size: 20px; }
  .brief-card p { font-size: 13px; }

  .section-block { padding: 48px 0 58px; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-heading h2 { font-size: 43px; }

  .match-row {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
    padding: 18px 15px;
  }

  .team-logo,
  .team-fallback { width: 22px; height: 22px; }
  .teams { gap: 5px; }
  .teams strong { font-size: 12px; }
  .versus { font-size: 8px; }

  .radar-panel {
    display: block;
  }

  .radar-orbit {
    width: 200px;
    margin: 40px auto;
  }

  .story-list { border-left: 0; border-top: 1px solid var(--line); }

  .story-item a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 15px;
  }

  .signal-card blockquote { margin: 36px 0; }

  .build-card,
  .tools-card { min-height: 380px; }
  .build-card { padding: 24px 20px; }
  .build-card h3 { font-size: 51px; }

  footer {
    min-height: 190px;
    gap: 20px;
  }
}

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