﻿:root {
  --bg: #090909;
  --panel: #12110f;
  --panel-2: #171511;
  --ink: #f1e5ce;
  --ink-2: #d4c6ac;
  --ink-3: #8e816c;
  --line: rgba(255, 245, 224, 0.11);
  --line-strong: rgba(236, 219, 185, 0.5);
  --orange: #e8d8ba;
  --orange-2: #f5ead4;
  --ivory: #f0e2c8;
  --ivory-soft: #d7c6a7;
  --brass: #b99a61;
  --brass-2: #d5bd83;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(232, 216, 186, 0.28);
  color: #0d0c0a;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: #11100e;
}

body {
  position: relative;
  overflow: auto;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 122, 24, 0.12), transparent 28%),
    linear-gradient(180deg, #10100f, var(--bg) 38%);
  background-color: #11100e;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scrollbar-color: rgba(232, 216, 186, 0.55) rgba(255, 255, 255, 0.045);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 52% 46%, rgba(255, 122, 24, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(5, 5, 5, 0.46) 48%, rgba(3, 3, 3, 0.9)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.74));
  opacity: 1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 245, 224, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 224, 0.012) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 68%);
  animation: deadlock-grid-drift 72s linear infinite;
  pointer-events: none;
  will-change: background-position;
}

.background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #050505 url("/assets/buildlock-bg-poster.jpg") center center / cover no-repeat;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10, 10, 10, 0.8);
  border-radius: 999px;
  background: rgba(232, 216, 186, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 234, 212, 0.72);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(232, 216, 186, 0.86);
  outline-offset: 2px;
}

.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.read-progress.is-hidden {
  opacity: 0;
}

.read-progress span {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brass), var(--ivory));
  box-shadow: 0 0 18px rgba(232, 216, 186, 0.42);
}

.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.site-header {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 245, 224, 0.09);
  padding: 10px 24px;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(9, 9, 9, 0.82)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.site-brand {
  min-width: 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.site-brand img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.42));
}

.site-tabs {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  justify-self: center;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.035);
}

.site-tab {
  min-width: 104px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-tab:hover {
  border-color: rgba(255, 245, 224, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  transform: translateY(-1px);
}

.site-tab.active {
  border-color: rgba(232, 216, 186, 0.62);
  background: rgba(232, 216, 186, 0.11);
  color: var(--ivory);
}

.landing-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px 70px;
}

.landing-center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  animation: landing-enter 360ms ease both;
}

.landing-logo {
  width: clamp(210px, 18vw, 330px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 28px 58px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 34px rgba(242, 230, 208, 0.08));
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.landing-action {
  min-width: 156px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(232, 216, 186, 0.56);
  border-radius: 8px;
  padding: 0 20px;
  background: var(--ivory);
  color: #100905;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  transition:
    filter 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.landing-action:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(232, 216, 186, 0.16);
}

.blog-app.route-enter,
.stats-app.route-enter,
.builds-app.route-enter {
  animation: route-enter 360ms ease both;
}

body[data-view="article"] .blog-app,
body[data-view="stats"] .stats-app,
body[data-view="builds"] .builds-app {
  animation: route-enter 360ms ease both;
}

.blog-app {
  width: min(1320px, calc(100% - 32px));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 760px) minmax(220px, 250px);
  align-items: start;
  gap: 24px;
  margin: 0 auto;
  padding: 12px 0 22px;
}

body[data-view="landing"] .blog-app,
body[data-view="landing"] .stats-app,
body[data-view="landing"] .builds-app,
body[data-view="article"] .landing-view,
body[data-view="admin"] .landing-view,
body[data-view="stats"] .landing-view,
body[data-view="builds"] .landing-view,
body[data-view="stats"] .blog-app,
body[data-view="stats"] .builds-app,
body[data-view="builds"] .blog-app,
body[data-view="builds"] .stats-app {
  display: none;
}

body[data-view="landing"] .read-progress,
body[data-view="admin"] .read-progress,
body[data-view="stats"] .read-progress,
body[data-view="builds"] .read-progress {
  opacity: 0;
}

body[data-view="landing"] .site-header {
  display: none;
}

body[data-view="builds"] {
  overflow: hidden;
}

.catalog-panel,
.article-scroll,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.94);
  box-shadow: var(--shadow);
}

.catalog-panel {
  width: 100%;
  position: sticky;
  top: 58px;
  min-height: 0;
  max-height: calc(100vh - 82px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  padding: 12px;
}

.article-shell {
  min-width: 0;
  grid-column: 2;
}

.steam-login {
  min-height: 38px;
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(232, 216, 186, 0.52);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--ivory);
  color: #100905;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.steam-login span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-login-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 16, 14, 0.38);
}

.steam-login.is-authenticated {
  padding-left: 9px;
}

.steam-login:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.header-steam-login {
  justify-self: end;
}

.steam-account {
  position: relative;
  justify-self: end;
  min-width: 0;
}

.steam-account-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 154px;
  border: 1px solid rgba(242, 230, 208, 0.18);
  border-radius: 8px;
  padding: 6px;
  background: rgba(17, 16, 14, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.steam-account-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(242, 230, 208, 0.18);
  border-left: 1px solid rgba(242, 230, 208, 0.18);
  background: rgba(17, 16, 14, 0.98);
  transform: rotate(45deg);
}

.steam-account-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--ivory);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.steam-account-menu button:hover,
.steam-account-menu button:focus-visible {
  background: rgba(242, 230, 208, 0.1);
  outline: none;
}

.panel-title-row {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.admin-toggle {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.admin-toggle:hover,
.admin-toggle.active {
  border-color: rgba(232, 216, 186, 0.58);
  background: rgba(232, 216, 186, 0.14);
  color: var(--orange-2);
}

.admin-toggle:hover {
  transform: translateY(-1px);
}

.post-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.post-button {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: start;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.09);
  border-radius: 6px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.post-button:hover,
.post-button.active {
  border-color: rgba(232, 216, 186, 0.58);
  background:
    linear-gradient(90deg, rgba(232, 216, 186, 0.13), transparent 72%),
    rgba(255, 255, 255, 0.026);
}

.post-button:hover {
  transform: translateY(-1px);
}

.post-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #050505;
  object-fit: cover;
  object-position: center center;
  transition:
    filter 220ms ease,
    opacity 220ms ease,
    transform 260ms ease;
  will-change: transform;
}

.post-button:hover .post-thumb,
.post-button.active .post-thumb {
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.98;
  transform: scale(1.045);
}

.post-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.post-button em {
  overflow: hidden;
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-button strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
  text-align: left;
}

.list-empty,
.article-empty {
  min-width: 0;
  padding: 14px;
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.article-empty {
  padding: 32px;
}

.article-shell {
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.article-scroll {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
  animation: article-enter 260ms ease both;
}

.article-header {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.qa-list {
  width: min(700px, calc(100% - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.article-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 0 16px;
  text-align: center;
}

.eyebrow {
  overflow: hidden;
  color: var(--orange);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header h1 {
  max-width: 720px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(28px, 1.85vw, 36px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.04;
}

.article-header p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.byline {
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
}

.video-card {
  width: min(700px, calc(100% - 32px));
  max-width: none;
  margin: 0 auto 24px;
  overflow: hidden;
  background: #050505;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.video-card:hover {
  border-color: rgba(232, 216, 186, 0.42);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(232, 216, 186, 0.08);
  transform: translateY(-1px);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame img {
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.9;
  filter: saturate(0.94) contrast(1.04);
}

.qa-list {
  display: grid;
  padding: 0 0 48px;
}

.qa-block {
  position: relative;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 245, 224, 0.08);
  padding: 24px 0 30px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    border-color 180ms ease;
}

.qa-block::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 30px;
  left: -16px;
  width: 2px;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.qa-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.qa-block.is-current::before {
  opacity: 0.86;
  transform: scaleY(1);
}

.qa-block:hover {
  border-color: rgba(232, 216, 186, 0.22);
}

.qa-question {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--orange-2);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
  text-align: left;
}

.qa-block:not(.media-right) .qa-question,
.qa-block:not(.media-right) .qa-content {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.qa-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 16px;
}

.qa-block.has-media .qa-content {
  grid-template-columns: minmax(0, 1fr);
}

.qa-block.media-right .qa-question,
.qa-block.media-right .qa-content {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.qa-block.media-right .qa-content {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: center;
  gap: 28px;
}

.qa-answer {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.68;
  text-align: left;
}

.answer-media {
  min-width: 0;
  max-width: 520px;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.answer-media:hover {
  border-color: rgba(232, 216, 186, 0.34);
  transform: translateY(-1px);
}

.qa-block.media-right .answer-media {
  width: min(340px, 100%);
  max-width: none;
  justify-self: center;
}

.answer-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.answer-media figcaption {
  padding: 10px 12px 12px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
}

.stats-app {
  position: relative;
  width: min(1460px, calc(100% - 28px));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 306px) minmax(0, 840px) minmax(220px, 250px);
  align-items: start;
  gap: 20px;
  margin: 0 auto;
  padding: 10px 0 24px;
}

.stats-app:not(.profile-loaded) {
  width: min(980px, calc(100% - 28px));
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 18px 0 42px;
}

body:not([data-view="stats"]) .stats-app {
  display: none;
}

.stats-app:not(.profile-loaded) .stats-profile-rail,
.stats-app:not(.profile-loaded) .stats-main-panel,
.stats-app:not(.profile-loaded) .stats-social-rail {
  display: none;
}

.stats-app.profile-loaded .stats-search-landing {
  display: none;
}

.stats-search-landing {
  min-width: 0;
  display: grid;
  place-items: center;
}

.stats-app:not(.profile-loaded) .stats-search-landing,
.stats-app:not(.profile-loaded) .stats-loading-screen {
  grid-column: 1;
  grid-row: 1;
}

.stats-search-card {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.stats-app.is-searching .stats-search-card {
  opacity: 0.16;
  transform: scale(0.985);
}

.stats-app.is-searching .stats-search-landing,
.stats-app.is-searching .stats-profile-rail,
.stats-app.is-searching .stats-main-panel,
.stats-app.is-searching .stats-social-rail {
  visibility: hidden;
}

.stats-loading-screen {
  grid-column: 1 / -1;
  min-height: min(420px, calc(100vh - 160px));
  min-height: min(420px, calc(100dvh - 160px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  pointer-events: none;
}

.stats-app.profile-loaded .stats-loading-screen {
  position: absolute;
  inset: 0;
  z-index: 12;
  min-height: 100%;
  border-radius: 12px;
  background: rgba(17, 16, 14, 0.78);
  backdrop-filter: blur(2px);
}

.stats-loading-screen[hidden] {
  display: none;
}

.stats-loading-screen img {
  width: clamp(120px, 12vw, 210px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 24px 56px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 28px rgba(242, 230, 208, 0.08));
  animation: logo-breathe 1300ms ease-in-out infinite alternate;
}

.stats-loading-screen span {
  color: var(--ivory);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-loading-screen em {
  min-height: 18px;
  color: rgba(242, 230, 208, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stats-loading-bar {
  width: min(340px, 62vw);
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(242, 230, 208, 0.2);
  border-radius: 999px;
  background: rgba(242, 230, 208, 0.08);
}

.stats-loading-bar i {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 230, 208, 0.46), var(--ivory));
  box-shadow: 0 0 18px rgba(242, 230, 208, 0.18);
  transition: width 360ms ease;
}

.stats-search-logo {
  width: clamp(210px, 18vw, 330px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 28px 58px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 34px rgba(242, 230, 208, 0.08));
}

.stats-search-form {
  width: min(720px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  border: 1px solid rgba(242, 230, 208, 0.13);
  border-radius: 14px;
  padding: 6px;
  background: rgba(17, 16, 14, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.stats-search-form input,
.profile-search-row input {
  width: 100%;
  min-width: 0;
}

.stats-search-form button,
.profile-search-row button {
  min-height: 40px;
  min-width: 0;
  border: 1px solid rgba(242, 230, 208, 0.52);
  border-radius: 9px;
  padding: 0 18px;
  background: var(--ivory);
  color: #11100e;
  font-size: 13px;
  font-weight: 950;
}

.stats-search-form button:disabled,
.profile-search-row button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.builds-app {
  width: min(1400px, calc(100% - 28px));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 820px) minmax(210px, 250px);
  align-items: start;
  gap: 20px;
  margin: 0 auto;
  padding: 10px 0 24px;
}

.builds-app.editor-bridge {
  width: min(1680px, calc(100% - 28px));
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 0;
}

.editor-bridge-shell {
  position: relative;
  min-width: 0;
  height: calc(100vh - 86px);
  height: calc(100dvh - 86px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 216, 186, 0.16);
  border-radius: 10px;
  background: rgba(12, 11, 10, 0.94);
  box-shadow: var(--shadow);
}

.build-editor-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #0a0908;
}

.build-editor-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 230, 208, 0.08), transparent 34%),
    rgba(17, 16, 14, 0.92);
  text-align: center;
}

.build-editor-status[hidden] {
  display: none;
}

.build-editor-status img {
  width: clamp(92px, 9vw, 160px);
  height: auto;
  filter:
    drop-shadow(0 22px 48px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 24px rgba(242, 230, 208, 0.08));
}

.build-editor-status strong {
  color: var(--ivory);
  font-size: 20px;
  line-height: 1.05;
}

.build-editor-status p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.build-editor-status button {
  min-width: 116px;
  min-height: 38px;
  border: 1px solid rgba(242, 230, 208, 0.42);
  border-radius: 8px;
  background: var(--ivory);
  color: #11100e;
  font-size: 12px;
  font-weight: 950;
}

.build-editor-status button[hidden] {
  display: none;
}

.build-editor-status.is-locked {
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 230, 208, 0.1), transparent 34%),
    rgba(17, 16, 14, 0.95);
}

.build-editor-status.is-loading button {
  display: none;
}

body:not([data-view="builds"]) .builds-app {
  display: none;
}

.stats-profile-rail,
.stats-social-rail,
.builds-rail,
.builds-side-rail {
  position: sticky;
  top: 58px;
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: calc(100vh - 82px);
  overflow: auto;
  scrollbar-width: thin;
}

.stats-card,
.stats-summary-card,
.recent-card,
.build-detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.94);
  box-shadow: var(--shadow);
}

.stats-card {
  padding: 12px;
}

.stats-main-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.builds-main-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.profile-identity {
  padding: 0;
  overflow: hidden;
}

.profile-banner {
  height: 56px;
  background: #11100e;
}

.profile-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: -22px;
  padding: 0 12px 12px;
}

.profile-avatar,
.match-hero,
.stats-hero-portrait {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.14);
  background:
    radial-gradient(circle at 68% 22%, rgba(232, 216, 186, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(232, 216, 186, 0.15), rgba(255, 255, 255, 0.035));
  color: var(--ink);
  font-weight: 1000;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: var(--orange-2);
  font-size: 22px;
}

.profile-avatar.has-image {
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.match-hero.has-image,
.stats-hero-portrait.has-image {
  border-color: rgba(255, 245, 224, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
}

.match-hero.state-gloat,
.stats-hero-portrait.state-gloat {
  border-color: rgba(75, 217, 105, 0.34);
}

.match-hero.state-hurt,
.stats-hero-portrait.state-hurt {
  border-color: rgba(255, 88, 78, 0.34);
}

.match-hero img,
.stats-hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.match-hero.image-fallback,
.stats-hero-portrait.image-fallback {
  color: var(--orange-2);
}

.profile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-copy h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy p,
.profile-search label,
.stats-panel-title span,
.rank-layout p,
.summary-stat span,
.stats-hero-copy span,
.hero-games,
.match-meta span,
.match-meta em,
.match-kda span,
.wall-comment em {
  overflow: hidden;
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-tag-badge {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  filter: drop-shadow(0 0 7px rgba(242, 230, 208, 0.18));
}

.profile-tag-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-tag-badge::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  min-width: max-content;
  pointer-events: none;
  border: 1px solid rgba(242, 230, 208, 0.18);
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(17, 16, 14, 0.96);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.profile-tag-badge:hover::after,
.profile-tag-badge:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-tag-badge.premium {
  color: #f5d896;
}

.profile-tag-badge.pro {
  color: #9ff1d7;
}

.profile-tag-badge.creator {
  color: #d3adff;
}

.profile-search {
  display: grid;
  gap: 7px;
  padding: 0;
}

.stats-dashboard-search {
  display: block;
  border: 1px solid rgba(242, 230, 208, 0.12);
  border-radius: 14px;
  padding: 6px;
  background: rgba(17, 16, 14, 0.78);
  box-shadow: var(--shadow);
}

.profile-search-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.stats-dashboard-search .profile-search-row {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.stats-search-form input,
.profile-search input,
.stats-dashboard-search input {
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
}

.stats-search-form input {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
}

.stats-panel-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.stats-panel-heading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
  color: var(--ink);
}

.info-tip {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(242, 230, 208, 0.34);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.info-tip:hover,
.info-tip:focus-visible,
.info-tip.is-open {
  border-color: rgba(242, 230, 208, 0.72);
  background: rgba(242, 230, 208, 0.08);
  outline: none;
}

.info-tip-bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(260px, calc(100vw - 32px));
  pointer-events: none;
  border: 1px solid rgba(242, 230, 208, 0.18);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(17, 16, 14, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
  color: var(--ivory);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  transform: translate(0, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
}

.info-tip-bubble.align-right {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}

.info-tip:hover .info-tip-bubble,
.info-tip:focus-visible .info-tip-bubble,
.info-tip.is-open .info-tip-bubble {
  opacity: 1;
  transform: translate(0, 0);
  visibility: visible;
}

.info-tip:hover .info-tip-bubble.align-right,
.info-tip:focus-visible .info-tip-bubble.align-right,
.info-tip.is-open .info-tip-bubble.align-right {
  transform: translate(0, 0);
}

.info-tip-portal {
  position: fixed;
  z-index: 1000;
  max-width: min(280px, calc(100vw - 32px));
  pointer-events: none;
  border: 1px solid rgba(242, 230, 208, 0.2);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(17, 16, 14, 0.985);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(242, 230, 208, 0.04);
  color: var(--ivory);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.info-tip-portal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-tip-portal[hidden] {
  display: none;
}

.rank-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  grid-template-areas:
    "badge info win"
    "meta meta meta";
  align-items: center;
  gap: 7px 10px;
}

.rank-badge {
  grid-area: badge;
  position: relative;
  width: 62px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9ff5df;
  font-weight: 1000;
  text-shadow: none;
}

.rank-badge.has-image {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  text-shadow: none;
}

.rank-badge-art {
  width: 62px;
  height: 52px;
  max-width: none;
  display: block;
  transform: none;
  object-fit: contain;
  filter: none;
}

.rank-layout strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main {
  grid-area: info;
  min-width: 0;
}

.rank-win {
  grid-area: win;
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.rank-win strong {
  color: var(--ink);
  font-size: 18px;
}

.rank-win span {
  color: var(--ink-3);
  font-size: 10px;
}

.rank-win .rank-games {
  color: var(--ivory-soft);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
}

.rank-meta {
  grid-area: meta;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.rank-meta.leaderboard-rank {
  color: var(--ivory);
  cursor: help;
}

.hero-list {
  display: grid;
}

.hero-list-empty,
.matches-empty {
  margin: 0;
  border: 1px dashed rgba(242, 230, 208, 0.16);
  border-radius: 7px;
  padding: 12px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.35;
}

.stats-hero-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 50px 28px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 245, 224, 0.08);
  padding: 8px 0;
}

.stats-hero-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.stats-hero-portrait {
  width: 34px;
  height: 38px;
  border-radius: 6px;
  color: var(--orange-2);
  font-size: 12px;
}

.stats-hero-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stats-hero-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-rate {
  overflow: hidden;
  color: var(--orange-2);
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-hero-row.worst .hero-rate {
  color: #ff6b5a;
}

.hero-games {
  text-align: right;
}

.stats-summary-card {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.stats-summary-card.minimal {
  gap: 0;
  padding: 14px;
}

.stats-title-copy {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.stats-title-copy span {
  color: var(--orange);
  font-weight: 950;
  text-transform: uppercase;
}

.stats-title-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 2.5vw, 44px);
  line-height: 1;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-stat {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 7px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.026);
}

.summary-stat strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-stat.souls strong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ff5df;
  font-size: 17px;
  text-shadow: none;
}

.souls-value {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  color: #9ff5df;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
}

.souls-value img {
  width: 13px;
  height: 17px;
  flex: 0 0 auto;
  display: block;
  border: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
}

.summary-stat .souls-value img {
  width: 14px;
  height: 18px;
}

.summary-stat.souls strong .souls-value {
  overflow: visible;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-overflow: clip;
  white-space: nowrap;
}

.souls-value .souls-amount,
.summary-stat.souls strong .souls-value .souls-amount {
  overflow: visible;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.recent-card {
  padding: 12px;
}

.stats-ghost-button,
.import-build-button {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 245, 224, 0.12);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.stats-ghost-button:hover,
.import-build-button:hover {
  border-color: rgba(232, 216, 186, 0.54);
  color: var(--orange-2);
}

.stats-ghost-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.recent-footer {
  display: grid;
  margin-top: 10px;
}

.recent-footer .stats-ghost-button {
  width: 100%;
  min-height: 36px;
}

.stats-match-list {
  display: grid;
  gap: 8px;
}

.stats-match {
  min-width: 0;
  display: grid;
  grid-template-columns: 4px 52px minmax(132px, 170px) minmax(0, 1fr) minmax(154px, 174px);
  grid-template-areas: "stripe hero meta build roster";
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 7px;
  padding: 8px 8px 8px 0;
  background: rgba(255, 255, 255, 0.023);
}

.stats-match.victory {
  border-color: rgba(83, 187, 97, 0.28);
  background: rgba(41, 96, 48, 0.2);
}

.stats-match.defeat {
  border-color: rgba(255, 88, 72, 0.28);
  background: rgba(109, 41, 38, 0.23);
}

.match-stripe {
  grid-area: stripe;
  align-self: stretch;
  border-radius: 7px 0 0 7px;
  background: rgba(255, 245, 224, 0.18);
}

.stats-match.victory .match-stripe {
  background: #54ca61;
}

.stats-match.defeat .match-stripe {
  background: #ff6557;
}

.match-hero {
  grid-area: hero;
  width: 52px;
  height: 62px;
  border-radius: 7px;
  color: var(--orange-2);
}

.match-meta {
  grid-area: meta;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.match-result-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-result-line strong {
  color: #ff6b5a;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.stats-match.victory .match-result-line strong {
  color: #54ca61;
}

.match-result-line span {
  max-width: 62px;
  border: 1px solid rgba(232, 216, 186, 0.4);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--orange-2);
  font-size: 8px;
  text-transform: uppercase;
}

.match-build {
  grid-area: build;
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.match-kda {
  min-width: 0;
  width: min(100%, 292px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.match-kda strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-kda span {
  color: #9ff5df;
  text-align: right;
}

.match-detail-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.match-detail-line .souls-value {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: inherit;
}

.match-items {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, 27px);
  grid-template-rows: repeat(2, 27px);
  gap: 5px;
  justify-content: start;
}

.item-slot {
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 245, 224, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.32);
  color: var(--ink-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.item-slot.filled {
  border-color: rgba(213, 189, 131, 0.42);
  color: var(--ink);
}

.item-slot.has-image {
  padding: 2px;
  border-color: rgba(255, 245, 224, 0.24);
  background: rgba(10, 10, 10, 0.68);
}

.item-slot.item-fallback {
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-ico {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 2px;
  object-fit: contain;
  background: transparent;
}

.item-slot.empty {
  opacity: 0.38;
}

.match-roster-wrap {
  grid-area: roster;
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.match-roster {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  grid-template-rows: repeat(2, 24px);
  gap: 4px;
}

.match-roster.unavailable {
  width: 172px;
  min-height: 52px;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  border: 1px dashed rgba(242, 230, 208, 0.14);
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.roster-token {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.roster-token.self {
  border-color: var(--orange);
  color: var(--orange-2);
}

.roster-token.has-image {
  background: rgba(0, 0, 0, 0.48);
  color: transparent;
}

.roster-token.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.roster-token.win {
  border-color: rgba(82, 216, 102, 0.3);
}

.roster-token.loss {
  border-color: rgba(255, 91, 82, 0.26);
}

.roster-token.self.has-image {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(232, 216, 186, 0.25);
}

.status-card,
.wall-card {
  display: grid;
  gap: 10px;
}

.status-composer,
.wall-composer {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.status-composer[hidden] {
  display: none;
}

.status-composer textarea,
.wall-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  resize: vertical;
  border: 1px solid rgba(242, 230, 208, 0.12);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.status-composer textarea:focus,
.wall-composer textarea:focus {
  border-color: rgba(242, 230, 208, 0.44);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(242, 230, 208, 0.08);
}

.wall-composer.login-required textarea {
  opacity: 0.62;
}

.status-list,
.wall-feed {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.social-empty {
  margin: 0;
  border: 1px dashed rgba(242, 230, 208, 0.14);
  border-radius: 7px;
  padding: 10px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
}

.status-entry,
.wall-comment {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.023);
}

.status-entry {
  grid-template-columns: minmax(0, 1fr) auto;
}

.status-entry.pinned {
  border-color: rgba(242, 230, 208, 0.26);
  background: rgba(242, 230, 208, 0.055);
}

.status-copy,
.wall-comment div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.status-copy p,
.wall-comment p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
}

.status-copy em,
.wall-comment em {
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  font-style: normal;
}

.wall-comment {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
}

.wall-comment header {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.wall-comment strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(232, 216, 186, 0.22);
  border-radius: 6px;
  background: rgba(242, 230, 208, 0.06);
  color: var(--orange-2);
  font-weight: 950;
}

.social-avatar.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.social-delete {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 230, 208, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.social-delete:hover {
  border-color: rgba(242, 230, 208, 0.34);
  color: var(--ivory);
}

.builds-profile-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.build-profile-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(232, 216, 186, 0.26);
  border-radius: 8px;
  background: rgba(232, 216, 186, 0.08);
  color: var(--orange-2);
  font-weight: 950;
}

.build-profile-avatar.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.builds-profile-summary div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.builds-profile-summary strong,
.builds-profile-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builds-profile-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.builds-profile-summary span {
  color: var(--ink-3);
  font-size: 11px;
}

.build-list {
  display: grid;
  gap: 8px;
}

.build-list-button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.build-list-button:hover,
.build-list-button.active {
  border-color: rgba(232, 216, 186, 0.58);
  background: rgba(232, 216, 186, 0.1);
}

.build-list-portrait {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 950;
}

.build-list-portrait.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.build-list-button > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.build-list-button strong,
.build-list-button em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-list-button strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
}

.build-list-button em {
  color: var(--ink-3);
  font-size: 10px;
  font-style: normal;
}

.build-list-button b {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  padding: 0 7px;
  background: rgba(232, 216, 186, 0.13);
  color: var(--orange-2);
  font-size: 9px;
  line-height: 1;
}

.build-detail-card {
  padding: 14px;
}

.build-detail-header {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 245, 224, 0.08);
  padding-bottom: 14px;
}

.build-hero-portrait {
  width: 82px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--orange-2);
  font-size: 20px;
  font-weight: 950;
}

.build-hero-portrait.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.build-detail-header > div:last-child {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.build-detail-header span {
  color: var(--orange-2);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.build-name-input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 950;
  line-height: 1.05;
}

.build-name-input:focus {
  border-color: rgba(232, 216, 186, 0.7);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(232, 216, 186, 0.12);
}

.build-detail-header p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 0;
}

.build-tags span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(232, 216, 186, 0.34);
  border-radius: 5px;
  padding: 0 9px;
  background: rgba(232, 216, 186, 0.1);
  color: var(--orange-2);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.build-categories {
  display: grid;
  gap: 10px;
}

.build-category {
  min-width: 0;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.026);
}

.build-category header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.build-category strong,
.build-category span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-category strong {
  color: var(--ink);
  font-size: 13px;
}

.build-category span {
  color: var(--ink-3);
  font-size: 10px;
}

.build-item-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}

.build-item-slot {
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 224, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 245, 224, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.build-item-slot.filled {
  border-color: rgba(213, 189, 131, 0.42);
}

.build-item-slot.has-image {
  padding: 4px;
  background: rgba(8, 8, 8, 0.72);
}

.build-item-slot.empty {
  opacity: 0.34;
}

.build-ability-order {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 245, 224, 0.08);
  padding-top: 12px;
}

.build-ability-order h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.build-ability-grid {
  display: grid;
  gap: 7px;
}

.build-ability-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 245, 224, 0.08);
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.build-ability-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.build-ability-grid span {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.build-ability-grid b {
  min-width: 28px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(232, 216, 186, 0.34);
  border-radius: 5px;
  padding: 0 7px;
  background: rgba(232, 216, 186, 0.09);
  color: var(--orange-2);
  font-size: 10px;
}

.build-actions,
.build-checklist {
  display: grid;
  gap: 8px;
}

.build-action-button {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 245, 224, 0.12);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.build-action-button.primary {
  border-color: rgba(232, 216, 186, 0.62);
  background: var(--orange);
  color: #100905;
}

.build-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.build-check {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.build-check span {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: #10100b;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.build-check.ok span {
  background: #8be35c;
}

.build-check.missing span {
  background: #d5bd83;
}

.build-check strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
}

.admin-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 245, 224, 0.1);
  padding-bottom: 20px;
}

.admin-header h1 {
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 2vw, 36px);
  line-height: 1;
}

.admin-header p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.admin-actions,
.admin-footer,
.admin-section-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-actions {
  justify-content: end;
  flex-wrap: wrap;
}

.admin-token,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  line-height: 1.35;
  outline: none;
}

.admin-token {
  width: 180px;
  height: 36px;
  padding: 0 10px;
}

.admin-field input,
.admin-field select {
  min-height: 42px;
  padding: 0 11px;
}

.admin-field textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
}

.admin-token:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: rgba(232, 216, 186, 0.72);
  box-shadow: 0 0 0 3px rgba(232, 216, 186, 0.12);
}

.admin-button {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 245, 224, 0.12);
  border-radius: 6px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.admin-button:hover {
  border-color: rgba(232, 216, 186, 0.52);
  background: rgba(232, 216, 186, 0.14);
  transform: translateY(-1px);
}

.admin-button.primary {
  border-color: rgba(232, 216, 186, 0.84);
  background: var(--orange);
  color: #120c08;
}

.admin-button.primary:hover {
  box-shadow: 0 12px 26px rgba(232, 216, 186, 0.16);
}

.admin-button.danger {
  border-color: rgba(255, 92, 72, 0.36);
  color: #ff8d7e;
}

.admin-button.ghost {
  min-height: 30px;
  color: var(--ink-3);
  font-size: 12px;
}

.admin-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.admin-form {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.admin-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.admin-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.admin-field.wide {
  grid-column: 1 / -1;
}

.admin-field span {
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.admin-section-header {
  border-top: 1px solid rgba(255, 245, 224, 0.1);
  padding-top: 20px;
}

.admin-section-header h2 {
  margin: 0;
  color: var(--orange-2);
  font-size: 20px;
  line-height: 1.1;
}

.admin-qa-list {
  display: grid;
  gap: 14px;
}

.admin-qa-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 245, 224, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.024);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.admin-qa-card:focus-within {
  border-color: rgba(232, 216, 186, 0.34);
  background: rgba(232, 216, 186, 0.045);
}

.admin-qa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-qa-top strong {
  color: var(--ink);
  font-size: 14px;
}

.media-admin-grid {
  border-top: 1px solid rgba(255, 245, 224, 0.08);
  padding-top: 14px;
}

.admin-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(255, 245, 224, 0.1);
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0), rgba(21, 21, 21, 0.97) 22%);
}

.admin-message {
  min-width: 0;
  color: var(--ink-3);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(232, 216, 186, 0.52);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(18, 16, 14, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  animation: toast-in 220ms ease both;
}

.toast.warning {
  border-color: rgba(255, 194, 90, 0.58);
}

.toast.error {
  border-color: rgba(255, 92, 72, 0.58);
}

.toast.leaving {
  animation: toast-out 180ms ease both;
}

@keyframes article-enter {
  from {
    opacity: 0.78;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes route-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-breathe {
  from {
    opacity: 0.72;
    transform: translateY(2px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes deadlock-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 58px 58px, 58px 58px;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

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

  .article-scroll,
  .landing-center,
  .route-enter,
  .qa-block,
  .toast {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body::before,
  body::after {
    animation: none;
    transform: none;
  }

  .background-video {
    display: none;
  }

  body::before {
    background:
      radial-gradient(circle at 52% 46%, rgba(255, 122, 24, 0.08), transparent 36%),
      linear-gradient(90deg, rgba(3, 3, 3, 0.94), rgba(5, 5, 5, 0.46) 48%, rgba(3, 3, 3, 0.9)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.74)),
      url("/assets/buildlock-bg-poster.jpg") center center / cover no-repeat;
  }
}

@media (max-width: 1320px) {
  .blog-app,
  .builds-app {
    width: calc(100% - 24px);
    grid-template-columns: minmax(200px, 228px) minmax(0, 1fr) minmax(200px, 228px);
    gap: 18px;
  }

  .stats-app {
    width: calc(100% - 24px);
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    gap: 18px;
  }

  .stats-social-rail {
    grid-column: 2;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1180px) {
  .blog-app,
  .builds-app {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .stats-app {
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
  }

  .catalog-panel,
  .builds-rail {
    grid-column: 1;
  }

  .stats-profile-rail {
    grid-column: 1;
  }

  .article-shell,
  .builds-main-panel {
    grid-column: 2;
  }

  .stats-main-panel {
    grid-column: 2;
  }

  .builds-side-rail {
    display: none;
  }

  .stats-social-rail {
    grid-column: 2;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1080px) {
  .site-shell {
    min-height: 100%;
    height: auto;
  }

  .blog-app,
  .builds-app {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
  }

  .stats-app {
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    min-height: 100vh;
  }

  .stats-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-match {
    grid-template-columns: 4px 44px minmax(108px, 138px) minmax(0, 1fr) 128px;
  }

  .match-kda {
    width: min(100%, 244px);
  }

  .match-items {
    grid-template-columns: repeat(6, 22px);
    grid-template-rows: repeat(2, 22px);
    gap: 4px;
  }

  .match-roster {
    grid-template-columns: repeat(6, 17px);
    grid-template-rows: repeat(2, 17px);
  }

  .qa-block.has-media .qa-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa-block.media-right .answer-media {
    max-width: 520px;
    justify-self: center;
  }

  .admin-shell {
    width: calc(100% - 28px);
    padding: 22px;
  }

  .admin-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-actions {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .landing-view {
    min-height: 100vh;
    padding: 24px 14px 64px;
  }

  .landing-center {
    gap: 15px;
  }

  .landing-action {
    width: min(220px, 100%);
  }

  .blog-app,
  .stats-app,
  .builds-app {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 10px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .site-tabs {
    width: 100%;
    grid-column: 1 / -1;
    order: 3;
  }

  .site-tab {
    min-width: 0;
    flex: 1 1 0;
  }

  .header-steam-login {
    min-height: 34px;
    padding: 0 11px;
  }

  .stats-profile-rail,
  .stats-main-panel,
  .stats-social-rail {
    grid-column: 1;
  }

  .stats-profile-rail,
  .stats-social-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .stats-dashboard-search .profile-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-panel,
  .builds-rail {
    width: 100%;
    grid-column: 1;
    position: static;
    max-height: 230px;
  }

  .stats-profile-rail {
    width: 100%;
    grid-column: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .article-shell,
  .stats-main-panel,
  .builds-main-panel {
    grid-column: 1;
  }

  .builds-side-rail {
    display: none;
  }

  .stats-social-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .build-detail-header {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .build-hero-portrait {
    width: 64px;
    height: 78px;
  }

  .build-ability-grid article {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-summary-card {
    padding: 18px;
  }

  .stats-summary-card.minimal {
    padding: 14px;
  }

  .stats-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-match {
    grid-template-columns: 4px 40px minmax(0, 1fr) 54px;
    grid-template-areas:
      "stripe hero meta roster"
      "stripe build build roster";
    gap: 7px;
  }

  .match-hero {
    width: 40px;
    height: 46px;
  }

  .match-kda {
    width: 100%;
    display: grid;
    gap: 4px;
  }

  .match-roster-wrap {
    justify-self: end;
  }

  .match-roster {
    grid-template-columns: repeat(3, 16px);
    grid-template-rows: repeat(4, 16px);
  }

  .import-build-button {
    width: 54px;
    min-height: 26px;
    padding: 0;
  }

  .match-items {
    width: min(100%, 172px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .item-slot {
    aspect-ratio: 1;
  }

  .post-button {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .post-thumb {
    width: 84px;
    height: 52px;
  }

  .article-header {
    width: calc(100% - 28px);
    padding: 24px 0 16px;
  }

  .article-header h1 {
    font-size: 32px;
  }

  .video-card {
    width: calc(100% - 28px);
    margin: 0 auto 24px;
  }

  .qa-list {
    width: calc(100% - 28px);
    padding: 0 0 28px;
  }

  .admin-shell {
    width: 100%;
    padding: 18px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-actions,
  .admin-footer,
  .admin-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-token,
  .admin-button {
    width: 100%;
  }
}

