

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}



button,
input,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 700;
  padding: .7rem 1rem;
  color: #130704;
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: var(--chrome-height);
  z-index: 30;
  border-bottom: 1px solid rgb(61 72 91 / 80%);
  background: var(--panel);
  
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(20rem, 42rem) auto;
  gap: 2rem;
  align-items: center;
  width: var(--content);
  min-height: 5rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  display: grid;
  width: 2.6rem;
  height: 2.35rem;
  place-items: center;
  color: #130704;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 800;
}

.brand strong {
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

.global-search {
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
}

.global-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg-deep);
}

input {
  min-height: 2.8rem;
  padding: .65rem .9rem;
}

textarea {
  padding: .8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: var(--dim); }

input:hover,
input:focus,
textarea:hover,
textarea:focus { border-color: var(--muted); }

.global-search button,
.tool-card button,
.target-form button,
.error-panel button {
  min-height: 2.8rem;
  border: 0;
  padding: .65rem 1.1rem;
  color: #170804;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.global-search button {
  display: flex;
  align-items: center;
  gap: .8rem;
  clip-path: polygon(.65rem 0, 100% 0, 100% 100%, 0 100%, 0 .65rem);
}

.global-search button i { font-style: normal; }
.global-search button:hover,
.tool-card button:hover,
.target-form button:hover,
.error-panel button:hover { background: var(--accent-bright); }
.global-search button:disabled,
.tool-card button:disabled { color: var(--dim); background: var(--line); cursor: wait; }

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  padding: 1.85rem 0;
  color: var(--muted);
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.site-nav a:hover,
.site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

#app-content,
.site-footer,
.notice {
  width: var(--content);
  margin-inline: auto;
}

#app-content { min-height: calc(100vh - 10rem); padding: 3rem 0 6rem; }

.notice { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--panel); }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, .7fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
  min-height: 15rem;
  padding: 2rem 0 3rem;
}

.overline,
.page-heading > span,
.section-heading span,
.tool-card > div > span,
.target-panel > div > span {
  color: var(--accent);
  font-family: var(--font);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

.landing-hero h1,
.page-heading h1,
.error-panel h1,
.loading-panel h1 {
  margin: .75rem 0 0;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .93;
}

.landing-hero h1 em { color: var(--muted); font-style: normal; font-weight: 350; }
.landing-hero p { max-width: 42rem; margin: 2rem 0 0; color: var(--muted); font-size: 1.05rem; }
.landing-hero dl { display: grid; margin: 0; border: 1px solid var(--line-bright); }
.landing-hero dl div { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.landing-hero dl div:last-child { border-bottom: 0; }
.landing-hero dt { color: var(--muted); font-family: var(--font); font-size: .78rem; text-transform: none; }
.landing-hero dd { margin: 0; font-family: var(--font); font-size: 2rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(24rem, 1.2fr);
  border-top: 1px solid var(--line-bright);
  border-left: 1px solid var(--line-bright);
}

.dashboard-grid > article { min-width: 0; padding: 2rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.dashboard-main > p { max-width: 34rem; color: var(--muted); }
.feature-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.feature-list span { padding: .45rem .7rem; border: 1px solid var(--line); color: var(--muted); font-family: var(--font); font-size: .78rem; text-transform: none; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.tool-card h2,
.target-panel h2 {
  margin: .35rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: 1;
}

.section-heading > p,
.section-heading > a { max-width: 31rem; margin: 0; color: var(--muted); font-size: .85rem; text-align: right; }
.section-heading > a { color: var(--accent-bright); text-decoration: none; }

.recent-list,
.directory-list { border-top: 1px solid var(--line); }
.directory-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.2fr) 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: .9rem .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font);
  font-size: .78rem;
  text-decoration: none;
}
.directory-row:hover { color: var(--text); background: var(--panel-soft); }
.directory-row strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--font); font-size: .9rem; }

.profile-screen-title {
  display: grid;
  justify-items: center;
  gap: .8rem;
  margin: 1.5rem 0 2.25rem;
}

.profile-screen-title h1 {
  min-width: min(30rem, 80vw);
  padding-bottom: .7rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.profile-screen-title span { color: var(--muted); font-size: .8rem; }
.profile-screen-title span i { display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; background: var(--dim); border-radius: 50%; }
.profile-screen-title span.is-online i { background: var(--green); box-shadow: 0 0 .8rem var(--green); }

.player-hero {
  display: grid;
  grid-template-columns: minmax(34rem, 1.15fr) minmax(32rem, .85fr);
  gap: 2.5rem;
  align-items: center;
}

.profile-identity {
  min-width: 0;
  padding-right: .5rem;
}

.userbar {
  position: relative;
  min-width: 0;
  min-height: 8.75rem;
  overflow: visible;
}

.userbar::after { position: absolute; top: .25rem; right: 0; bottom: .25rem; left: 4.8rem; background: linear-gradient(90deg, transparent 50%, rgb(12 13 16 / 50%)); content: ""; }
.userbar-art { position: absolute; top: .25rem; right: 0; bottom: .25rem; left: 4.8rem; overflow: hidden; }
.userbar-art img { position: absolute; object-fit: contain; pointer-events: none; }
.banner-stripe { inset: 0; width: 100%; height: 100%; object-position: left center; transform: translateX(-2.25rem); }
.userbar-emblem { position: absolute; top: 50%; left: 0; z-index: 4; width: 7.4rem; height: 7.4rem; transform: translateY(-50%); }
.userbar-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.banner-rank { position: absolute; top: 50%; left: 7.9rem; z-index: 3; width: 4.1rem; height: 4.1rem; object-fit: contain; transform: translateY(-50%); }
.userbar-pid { position: absolute; top: .7rem; right: .4rem; z-index: 3; color: rgb(255 255 255 / 42%); font-family: var(--font); font-size: .78rem; letter-spacing: 0; }
.userbar-copy { position: absolute; right: .5rem; bottom: 2.15rem; left: 12.4rem; z-index: 3; display: grid; min-width: 0; text-shadow: 0 2px 5px #000; }
.userbar-copy small { color: #d7d9dc; }
.userbar-copy strong { max-width: 100%; overflow: hidden; font-size: clamp(1.25rem, 1.65vw, 1.65rem); font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.userbar-copy strong span { color: #d8c79e; font-weight: 400; }

.hero-facts { display: grid; grid-template-columns: .62fr .92fr 1.46fr; margin: 0; }
.hero-facts > div { display: flex; min-width: 0; min-height: 7.4rem; padding: .65rem 1.25rem; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--muted); font-size: clamp(.95rem, 1.35vw, 1.35rem); font-weight: 350; letter-spacing: 0; text-transform: none; }
.hero-facts dd { margin: .55rem 0 0; font-family: var(--font); font-size: clamp(1.2rem, 1.55vw, 1.65rem); overflow-wrap: anywhere; }
.hero-facts dd small { color: var(--muted); font-family: var(--font); font-size: .78rem; }
.achievement-fact { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.achievement-fact span { display: flex; gap: .35rem; align-items: baseline; }
.achievement-fact b { font-weight: 500; }

.player-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-bright);
  scrollbar-width: none;
}
.player-nav::-webkit-scrollbar { display: none; }
.player-nav a { position: relative; flex: 0 0 auto; padding: 1rem 1.25rem; color: var(--muted); font-family: var(--font); font-size: .78rem; text-decoration: none; text-transform: none; }
.player-nav a:hover,
.player-nav a[aria-current] { color: var(--text); }
.player-nav a[aria-current]::after { position: absolute; right: 1.25rem; bottom: -1px; left: 1.25rem; height: 2px; background: var(--accent); content: ""; }

.game-profile-section { padding-top: 2.5rem; }
.game-profile-toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.game-filter { position: relative; display: block; }
.game-filter::after { position: absolute; top: 50%; right: 1rem; color: var(--dim); content: "⌄"; pointer-events: none; transform: translateY(-58%); }
.game-filter select { width: 100%; min-height: 2.75rem; padding: .72rem 2.5rem .72rem 1rem; border: 1px solid var(--line-bright); border-radius: var(--radius-sm); outline: 0; color: var(--text); background: var(--panel); font: inherit; font-size: .78rem; appearance: none; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease; }
.game-filter select:hover { border-color: var(--muted); background: var(--panel-soft); }
.game-filter select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.game-filter select:disabled { opacity: .5; cursor: not-allowed; }
.game-filter option { color: var(--text); background: var(--panel); }
.game-profile-grid { display: grid; grid-template-columns: minmax(20rem, .72fr) minmax(36rem, 1.45fr); gap: 1.25rem; align-items: stretch; }
.game-profile-grid > article {
  min-width: 0;
  border: 1px solid var(--line-bright);
  background: var(--panel);
}
.game-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.game-panel-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-panel-title strong { color: var(--text); font-family: var(--font); font-size: .78rem; font-weight: 500; }
.game-main-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 1.5rem; }
.game-main-metrics > div { min-width: 0; }
.game-main-metrics span,
.game-ranked-block > span,
.supplement-metrics span { display: block; color: var(--muted); font-size: .78rem; }
.game-main-metrics strong { display: block; margin-top: .35rem; font-family: var(--font); font-size: clamp(2rem, 3.5vw, 3.3rem); font-weight: 450; letter-spacing: -.06em; }
.game-secondary-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 1.5rem 1.5rem; }
.game-secondary-metrics > div { padding: .75rem 0; border-top: 1px solid var(--line); }
.game-secondary-metrics > div:nth-child(even) { padding-left: .8rem; }
.game-secondary-metrics dt { color: var(--muted); font-size: .78rem; }
.game-secondary-metrics dd { margin: .2rem 0 0; font-family: var(--font); font-size: 1.25rem; }
.game-ranked-block { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 1.5rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-bright); }
.game-ranked-block > span { grid-column: 1 / -1; text-transform: none; }
.game-ranked-block > div { display: grid; }
.game-ranked-block strong { color: var(--gold); font-family: var(--font); font-size: 1.35rem; font-weight: 500; }
.game-ranked-block small { color: var(--dim); font-size: .78rem; }

.ranked-rating { display: grid; min-width: 0; justify-items: center; align-content: start; text-align: center; }
.ranked-rating-caption { min-height: 1.1rem; color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.ranked-rating img,
.ranked-rating-placeholder { display: block; width: clamp(4.75rem, 7vw, 6.6rem); height: clamp(4.75rem, 7vw, 6.6rem); margin: .25rem auto .15rem; object-fit: contain; }
.ranked-rating-placeholder { opacity: .16; }
.ranked-rating strong { color: var(--gold); font-family: var(--font); font-size: 1.35rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.ranked-rating strong i { color: var(--accent-bright); font-size: .62em; font-style: normal; letter-spacing: 0; }
.ranked-rating small { margin-top: .35rem; color: var(--dim); font-size: .78rem; line-height: 1.35; }

.ranked-section-heading { align-items: end; }
.ranked-heading-ratings { display: flex; gap: 1.5rem; align-items: end; }
.ranked-rating-heading { min-width: 7.5rem; }
.ranked-rating-heading img,
.ranked-rating-heading .ranked-rating-placeholder { width: 5rem; height: 5rem; }
.ranked-rating-heading strong { font-size: 1.15rem; }

.ranked-stat-strip .ranked-rating-strip { gap: .35rem; min-height: 9.5rem; padding-block: .75rem; }
.ranked-rating-strip img,
.ranked-rating-strip .ranked-rating-placeholder { width: 4.25rem; height: 4.25rem; margin-block: 0; }
.ranked-rating-strip strong { font-size: 1.1rem; }
.ranked-rating-strip small { margin-top: 0; }

.ranked-season-ratings { display: grid; grid-template-columns: repeat(2, minmax(5.5rem, 1fr)); gap: .75rem; min-width: 12rem; }
.ranked-rating-compact { padding: .3rem; border-left: 1px solid var(--line); }
.ranked-rating-compact:first-child { border-left: 0; }
.ranked-rating-compact img,
.ranked-rating-compact .ranked-rating-placeholder { width: 3.6rem; height: 3.6rem; margin-block: 0; }
.ranked-rating-compact .ranked-rating-caption { min-height: 0; font-size: .78rem; }
.ranked-rating-compact strong { font-size: .82rem; }
.ranked-rating-compact small { max-width: 7rem; margin-top: .2rem; font-size: .78rem; }

.game-side-panel { display: flex; flex-direction: column; }
.game-side-panel .game-panel-title a { color: var(--accent-bright); font-size: .78rem; text-decoration: none; }
.achievement-totals { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.achievement-totals > div { display: grid; gap: .3rem; padding: 1rem; border-right: 1px solid var(--line); }
.achievement-totals > div:last-child { border-right: 0; }
.achievement-totals strong { font-family: var(--font); font-size: 1.35rem; font-weight: 500; }
.achievement-totals span { color: var(--muted); font-size: .78rem; }
.game-side-panel .profile-gallery { display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(24rem, 1.38fr); flex: 1; margin: .8rem 1rem 1rem; }
.profile-gallery-icons,
.profile-gallery-stripes { display: grid; grid-auto-rows: 1fr; border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.profile-gallery-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-gallery-stripes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-side-panel .gallery-cell { min-height: 7.25rem; background: var(--panel); }
.game-side-panel .profile-gallery-icons .gallery-cell img { height: 5.7rem; }
.game-side-panel .profile-gallery-stripes .gallery-cell img { height: 6rem; }

.supplement-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 3rem; border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.supplement-metrics > div { display: grid; gap: .7rem; min-width: 0; padding: 1rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.supplement-metrics strong { min-width: 0; overflow-wrap: anywhere; font-family: var(--font); font-size: 1.15rem; font-weight: 500; }

.content-section { padding: 4rem 0 0; }
.section-lead { padding-top: 3.5rem; }

.combat-details { padding-top: 4.5rem; }
.combat-heading { margin-bottom: 0; }
.combat-account-totals { display: grid; grid-template-columns: minmax(12rem, 1fr) repeat(2, minmax(10rem, .55fr)); border-top: 1px solid var(--line-bright); border-right: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); background: var(--panel); }
.combat-account-totals > div { display: grid; min-height: 6.2rem; padding: 1rem 1.25rem; align-content: center; border-right: 1px solid var(--line-bright); }
.combat-account-totals > div:last-child { border-right: 0; }
.combat-account-totals span,
.combat-account-totals small { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.combat-account-totals strong { font-family: var(--font); font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 450; letter-spacing: -.055em; line-height: 1; }
.combat-account-totals > div:not(.combat-account-label) span { margin-top: .55rem; }
.combat-account-label { gap: .5rem; }
.combat-account-label span { color: var(--text); font-size: .78rem; }
.combat-account-label small { color: var(--dim); }
.combat-tabs { display: flex; border-bottom: 1px solid var(--line-bright); }
.combat-tabs button { position: relative; min-width: 7.5rem; padding: 1rem 1.25rem; border: 0; color: var(--muted); background: transparent; font-family: var(--font); font-size: .78rem; letter-spacing: 0; cursor: pointer; }
.combat-tabs button:hover,
.combat-tabs button[aria-selected="true"] { color: var(--text); }
.combat-tabs button[aria-selected="true"]::after { position: absolute; right: 1.25rem; bottom: -1px; left: 1.25rem; height: 2px; background: var(--accent); content: ""; }
.combat-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.combat-panel { border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); background: var(--panel); }
.combat-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.combat-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.combat-stat-grid article { display: grid; min-width: 0; min-height: 8.2rem; padding: 1.15rem; align-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.combat-stat-grid article:nth-child(5n) { border-right: 0; }
.combat-stat-grid article:nth-last-child(-n + 5) { border-bottom: 0; }
.combat-stat-grid span { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.combat-stat-grid strong { margin-top: .9rem; overflow-wrap: anywhere; font-family: var(--font); font-size: clamp(1.45rem, 2.35vw, 2.45rem); font-weight: 450; letter-spacing: -.055em; line-height: 1; }
.combat-stat-grid small { margin-top: .5rem; color: var(--dim); font-family: var(--font); font-size: .78rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.metric-grid article { display: grid; min-width: 0; min-height: 10rem; padding: 1.3rem; align-content: space-between; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.metric-grid span,
.stat-strip span { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.metric-grid strong { margin-top: .8rem; font-family: var(--font); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 450; letter-spacing: -.07em; line-height: 1; }
.metric-grid small { margin-top: .8rem; color: var(--dim); font-size: .78rem; }

.mode-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.mode-list article { display: grid; grid-template-columns: minmax(12rem, 1.5fr) auto 2.5rem auto 2.5rem auto; gap: 1rem; align-items: center; min-width: 0; padding: 1rem .8rem; border-bottom: 1px solid var(--line); }
.mode-list article > div { display: grid; }
.mode-list article span { font-weight: 600; }
.mode-list article small,
.mode-list article em { color: var(--dim); font-family: var(--font); font-size: .78rem; font-style: normal; }
.mode-list article strong { font-family: var(--font); font-weight: 500; }
.mode-list article a { color: var(--accent-bright); font-size: .78rem; text-decoration: none; }

.data-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line-bright); }
.data-table { width: 100%; border-collapse: collapse; color: var(--text); font-variant-numeric: tabular-nums; }
.data-table th,
.data-table td { min-width: 7.5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table thead th { color: var(--muted); background: var(--panel); font-family: var(--font); font-size: .78rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.data-table tbody tr:nth-child(odd) { background: var(--panel); }
.data-table tbody tr:nth-child(even) { background: var(--panel); }
.data-table th:first-child { min-width: 12rem; text-align: left; }
.data-table tbody th { font-size: .86rem; font-weight: 550; }
.data-table td { font-family: var(--font); font-size: .82rem; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th small { display: block; color: var(--dim); font-family: var(--font); font-size: .78rem; font-weight: 400; text-transform: none; }
.class-dot { display: inline-block; width: .45rem; height: .45rem; margin-right: .6rem; background: var(--class-color); }

.gallery-cell { display: grid; min-height: 8rem; place-items: center; padding: .8rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); overflow: hidden; }
.gallery-cell img { display: block; width: 100%; height: 6rem; object-fit: contain; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.25rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-strip > div { display: grid; gap: .8rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip strong { font-family: var(--font); font-size: 1.35rem; font-weight: 500; }

.target-panel { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(14rem, 1fr) minmax(14rem, 1fr); gap: 1.25rem; align-items: end; margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line-bright); background: var(--panel); }
.target-form { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.target-form label,
.tool-card label,
.compact-field span { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.target-form input { display: block; margin-top: .45rem; }
.target-output { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--gold); font-family: var(--font); font-size: .8rem; }

.achievement-toolbar { border-top: 1px solid var(--line-bright); }
.filter-row,
.segment-row { display: flex; overflow-x: auto; }
.filter-row { border-bottom: 1px solid var(--line); }
.filter-row button,
.segment-row button { flex: 0 0 auto; border: 0; color: var(--muted); background: transparent; cursor: pointer; white-space: nowrap; }
.filter-row button { padding: 1rem; border-bottom: 2px solid transparent; }
.filter-row button:hover,
.filter-row button[aria-pressed="true"] { color: var(--text); }
.filter-row button[aria-pressed="true"] { border-bottom-color: var(--accent); }
.filter-row button span { margin-left: .3rem; color: var(--dim); font-family: var(--font); font-size: .78rem; }
.achievement-controls { display: grid; grid-template-columns: auto minmax(16rem, 25rem); gap: 2rem; align-items: end; padding: 1.25rem 0; }
.segment-row { padding: .25rem; background: var(--panel); }
.segment-row button { padding: .65rem .8rem; }
.segment-row button[aria-pressed="true"] { color: var(--text); background: var(--panel-soft); }
.compact-field { display: block; }
.compact-field span { display: block; margin-bottom: .45rem; }
.result-count { color: var(--dim); font-family: var(--font); font-size: .78rem; text-transform: none; }

.weapons-section { min-width: 0; }
.weapon-summary { display: grid; grid-template-columns: .7fr 1fr 1.2fr 1.25fr 1.25fr; border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.weapon-summary > div { display: grid; gap: .55rem; min-height: 7.5rem; align-content: center; padding: 1.25rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.weapon-summary span { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.weapon-summary strong { font-family: var(--font); font-size: clamp(1.45rem, 2.4vw, 2.2rem); font-weight: 500; }
.weapon-summary small { color: var(--accent); font-family: var(--font); font-size: .78rem; }
.weapon-coverage { margin: 0; padding: .9rem 1rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); color: var(--muted); font-size: .78rem; }
.weapon-coverage strong { color: var(--text); font-family: var(--font); font-weight: 500; }
.weapon-coverage code { color: var(--accent); }
.weapon-toolbar { position: sticky; top: calc(var(--chrome-height) + 5.5rem); z-index: 12; display: grid; grid-template-columns: auto minmax(18rem, 32rem); gap: 2rem; align-items: end; margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line-bright); background: var(--panel);  }
.weapon-toolbar .segment-row { align-self: end; }
.weapon-list { border-top: 1px solid var(--line-bright); }
.weapon-card { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(13rem, 1fr) minmax(9rem, .42fr) minmax(25rem, 1.35fr); min-width: 0; min-height: 9.5rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); background: var(--panel); }
.weapon-card:hover { background: var(--panel); }
.weapon-art { display: grid; min-width: 0; place-items: center; padding: 1rem; overflow: hidden; border-right: 1px solid var(--line); background: var(--panel); }
.weapon-art img { display: block; width: 100%; height: 6.5rem; object-fit: contain; }
.weapon-art-fallback { color: var(--dim); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-align: center; text-transform: none; }
.weapon-identity { position: relative; min-width: 0; padding: 1.25rem; border-right: 1px solid var(--line); }
.weapon-order { color: var(--accent); font-family: var(--font); font-size: .78rem; }
.weapon-identity h2 { margin: .55rem 0 .35rem; overflow-wrap: anywhere; font-size: 1.08rem; font-weight: 550; line-height: 1.15; }
.weapon-identity h2 a { text-decoration: none; }
.weapon-identity h2 a:hover { color: var(--accent-bright); }
.weapon-identity code { display: block; overflow: hidden; color: var(--dim); font-family: var(--font); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.weapon-identity p { margin: .55rem 0 0; color: var(--muted); font-size: .78rem; }
.weapon-kills { display: grid; gap: .45rem; min-width: 0; align-content: center; padding: 1.25rem; border-right: 1px solid var(--line); }
.weapon-kills span { color: var(--muted); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.weapon-kills strong { color: var(--text); font-family: var(--font); font-size: clamp(1.55rem, 2.5vw, 2.35rem); font-weight: 500; }
.weapon-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; }
.weapon-metrics > div { display: grid; gap: .3rem; min-width: 0; align-content: center; padding: .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weapon-metrics > div:nth-child(3n) { border-right: 0; }
.weapon-metrics > div:nth-last-child(-n + 3) { border-bottom: 0; }
.weapon-metrics dt { color: var(--dim); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.weapon-metrics dd { margin: 0; overflow-wrap: anywhere; font-family: var(--font); font-size: .8rem; }
.weapon-sentinel { height: 1px; }

.achievement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.achievement-card { display: grid; grid-template-rows: 7rem 1fr; min-width: 0; min-height: 19rem; padding: 1.25rem; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.achievement-art { display: grid; min-width: 0; place-items: center; overflow: hidden; }
.achievement-art img { display: block; width: 100%; height: 7rem; object-fit: contain; }
.achievement-fallback { display: grid; min-width: 5rem; min-height: 5rem; place-items: center; border: 1px solid var(--line); color: var(--dim); font-family: var(--font); font-size: .78rem; text-transform: none; }
.achievement-copy { display: flex; min-width: 0; flex-direction: column; }
.achievement-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--dim); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.achievement-copy h3 { margin: .9rem 0 .6rem; font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
.achievement-copy > p { display: -webkit-box; margin: 0 0 1.2rem; overflow: hidden; color: var(--muted); font-size: .82rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.achievement-copy time { margin-top: auto; color: var(--dim); font-family: var(--font); font-size: .78rem; }
.achievement-progress { margin-top: auto; }
.achievement-progress > div { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font); font-size: .78rem; }
.achievement-progress progress { display: block; width: 100%; height: 2px; margin-top: .45rem; border: 0; background: var(--line-bright); appearance: none; }
.achievement-progress progress::-webkit-progress-bar { background: var(--line-bright); }
.achievement-progress progress::-webkit-progress-value { background: var(--accent); }
.achievement-progress progress::-moz-progress-bar { background: var(--accent); }

.page-heading { max-width: 60rem; padding: 1rem 0 2rem; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.page-heading p { max-width: 38rem; margin: 1.5rem 0 0; color: var(--muted); }
.directory-panel { border: 1px solid var(--line-bright); background: var(--panel); }
.directory-head { display: grid; grid-template-columns: minmax(9rem, 1.2fr) 1fr 1fr auto; gap: 1rem; padding: .8rem .75rem; color: var(--dim); font-family: var(--font); font-size: .78rem; text-transform: none; }

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-bright); border-left: 1px solid var(--line-bright); }
.tool-card { display: grid; min-width: 0; min-height: 19rem; padding: 1.5rem; align-content: space-between; border-right: 1px solid var(--line-bright); border-bottom: 1px solid var(--line-bright); background: var(--panel); }
.tool-card-wide { grid-column: 1 / -1; min-height: 18rem; }
.tool-card h2 { margin-top: .6rem; }
.tool-card > div > p { max-width: 36rem; color: var(--muted); }
.tool-card form { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-top: 2rem; }
.tool-card label { display: block; }
.tool-card label input,
.tool-card label textarea { display: block; margin-top: .45rem; }
.tool-result { margin-top: 1.25rem; }
.tool-loading,
.tool-error { margin: 0; padding: .8rem; border: 1px solid var(--line); color: var(--muted); font-family: var(--font); font-size: .78rem; }
.tool-error { color: var(--danger); border-color: var(--danger); }
.result-status { display: grid; gap: .25rem; padding: 1rem; border-left: 2px solid var(--gold); background: var(--panel-soft); }
.result-status.is-success { border-color: var(--green); }
.result-status.is-busy { border-color: var(--accent); }
.result-status span,
.result-status small { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.result-grid > div { min-width: 0; padding: .8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-grid dt { color: var(--dim); font-family: var(--font); font-size: .78rem; text-transform: none; }
.result-grid dd { margin: .3rem 0 0; overflow-wrap: anywhere; font-family: var(--font); font-size: .78rem; }
.result-link { display: inline-block; margin-top: 1rem; color: var(--accent-bright); font-size: .8rem; text-decoration: none; }
.clan-result > p { color: var(--muted); }
.clan-result a { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; padding: .7rem; border-top: 1px solid var(--line); text-decoration: none; }
.clan-result a:hover { background: var(--panel-soft); }
.clan-result a b,
.clan-result a span { color: var(--muted); font-family: var(--font); font-size: .78rem; }
.decoder-output { display: grid; gap: .6rem; }
.decoder-output span { color: var(--muted); font-family: var(--font); font-size: .78rem; text-transform: none; }
.decoder-output code { padding: 1rem; overflow-wrap: anywhere; color: var(--gold); background: var(--bg-deep); }
.decoder-output button { justify-self: start; }

.loading-panel,
.error-panel { display: grid; min-height: 38rem; align-content: center; justify-items: start; }
.loading-panel span { width: 4rem; height: 2px; background: var(--panel); animation: scan 1.1s linear infinite; }
.loading-panel h1,
.error-panel h1 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.loading-panel p,
.error-panel p { color: var(--muted); }
.error-panel > span { color: var(--danger); font-family: var(--font); font-size: .78rem; text-transform: none; }
.error-panel button { margin-top: 1rem; }
.empty-panel,
.empty-inline { padding: 2rem; color: var(--muted); background: var(--panel); text-align: center; }
.empty-inline { margin: 0; border: 1px solid var(--line); }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--font); font-size: .78rem; letter-spacing: 0; text-transform: none; }

@keyframes scan { to { transform: translateX(4rem); } }

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto minmax(16rem, 1fr); }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); }
  .site-nav a { padding: .7rem 0; }
  .player-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-identity { padding-right: 0; }
  .userbar { min-height: 9rem; }
  .hero-facts > div { min-height: 6.5rem; }
  .game-profile-grid { grid-template-columns: minmax(18rem, .8fr) minmax(28rem, 1.2fr); }
}

@media (max-width: 840px) {
  :root { --content: min(100% - 2rem, 94rem); }
  #app-content { padding-top: 2rem; }
  .landing-hero { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding: 3rem 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .game-profile-grid { grid-template-columns: 1fr; }
  .game-side-panel { grid-column: auto; }
  .combat-account-totals { grid-template-columns: 1fr 1fr; }
  .combat-account-label { grid-column: 1 / -1; min-height: 4.5rem !important; border-right: 0 !important; border-bottom: 1px solid var(--line-bright); }
  .combat-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combat-stat-grid article:nth-child(5n) { border-right: 1px solid var(--line); }
  .combat-stat-grid article:nth-child(2n) { border-right: 0; }
  .combat-stat-grid article:nth-last-child(-n + 5) { border-bottom: 1px solid var(--line); }
  .combat-stat-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .supplement-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-controls { grid-template-columns: 1fr; gap: 1rem; }
  .weapon-card { grid-template-columns: 12rem minmax(12rem, 1fr) minmax(8rem, .45fr); }
  .weapon-metrics { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .weapon-toolbar { grid-template-columns: 1fr; gap: .8rem; }
  .target-panel { grid-template-columns: 1fr; }
  .target-output { grid-column: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card-wide { grid-column: auto; }
  .directory-row,
  .directory-head { grid-template-columns: minmax(8rem, 1fr) 1fr auto; }
  .directory-row span:nth-of-type(2),
  .directory-head span:nth-child(3) { display: none; }
}

@media (max-width: 620px) {
  :root { --content: min(100% - 1.25rem, 94rem); }
  .header-inner { grid-template-columns: 1fr; gap: .7rem; padding: .8rem 0 0; }
  .brand { display: none; }
  .site-nav { overflow-x: auto; }
  .global-search { grid-row: 1; }
  .global-search button span { display: none; }
  .site-nav a { flex: 0 0 auto; }
  .landing-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .profile-screen-title { margin-top: .5rem; }
  .game-profile-toolbar { grid-template-columns: 1fr; gap: .5rem; }
  .game-side-panel .profile-gallery { grid-template-columns: 1fr; margin: .6rem .7rem .8rem; }
  .profile-gallery-stripes { grid-template-columns: 1fr; }
  .userbar { min-height: 7rem; }
  .userbar::after,
  .userbar-art { top: .2rem; right: 0; bottom: .2rem; left: 3.2rem; }
  .banner-stripe { transform: translateX(-1.35rem); }
  .userbar-emblem { width: 5rem; height: 5rem; }
  .banner-rank { left: 5.2rem; width: 3.15rem; height: 3.15rem; }
  .userbar-pid { top: .55rem; right: .35rem; font-size: .78rem; }
  .userbar-copy { right: .35rem; bottom: 1.45rem; left: 8.6rem; }
  .userbar-copy small { font-size: .78rem; }
  .userbar-copy strong { font-size: 1.05rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div { min-height: 6.5rem; padding: 1rem; }
  .hero-facts > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .achievement-totals > div { padding: .8rem; }
  .section-heading { display: block; }
  .section-heading > p,
  .section-heading > a { display: inline-block; margin-top: .8rem; text-align: left; }
  .ranked-heading-ratings { margin-top: 1.5rem; justify-content: flex-start; }
  .ranked-rating-heading { min-width: 6.5rem; }
  .ranked-rating-heading img,
  .ranked-rating-heading .ranked-rating-placeholder { width: 4.5rem; height: 4.5rem; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 8.5rem; padding: 1rem; }
  .metric-grid strong { font-size: clamp(1.75rem, 10vw, 2.6rem); }
  .mode-list article { grid-template-columns: 1fr auto 2rem; }
  .mode-list article strong:nth-of-type(2),
  .mode-list article em:nth-of-type(2),
  .mode-list article a { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement-card { grid-template-columns: 7rem 1fr; grid-template-rows: 1fr; gap: 1rem; min-height: 18rem; }
  .weapon-summary { grid-template-columns: 1fr 1fr; }
  .weapon-toolbar { top: calc(var(--chrome-height) + 7rem); margin-inline: -.625rem; }
  .weapon-card { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .weapon-art { border-bottom: 1px solid var(--line); }
  .weapon-identity { border-right: 0; }
  .weapon-kills { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: baseline; border-top: 1px solid var(--line); border-right: 0; }
  .weapon-metrics { grid-template-columns: 1fr 1fr; }
  .weapon-metrics > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .weapon-metrics > div:nth-child(2n) { border-right: 0; }
  .weapon-metrics > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .weapon-metrics > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .achievement-art { align-items: start; }
  .achievement-art img { height: 6rem; }
  .tool-card { min-height: 18rem; padding: 1.1rem; }
  .tool-card form { grid-template-columns: 1fr; gap: .5rem; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .supplement-metrics { grid-template-columns: 1fr 1fr; }
  .directory-row,
  .directory-head { grid-template-columns: minmax(7rem, 1fr) auto; }
  .directory-row span,
  .directory-head span:nth-child(2),
  .directory-head span:nth-child(3) { display: none; }
  .site-footer { display: grid; }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr; }
  .combat-account-totals { grid-template-columns: 1fr; }
  .combat-account-totals > div { min-height: 5.5rem; border-right: 0; border-bottom: 1px solid var(--line-bright); }
  .combat-account-totals > div:last-child { border-bottom: 0; }
  .combat-account-label { grid-column: auto; }
  .combat-stat-grid { grid-template-columns: 1fr; }
  .combat-stat-grid article:nth-child(2n) { border-right: 1px solid var(--line); }
  .combat-stat-grid article { min-height: 7rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .combat-stat-grid article:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .combat-stat-grid article:last-child { border-bottom: 0; }
  .achievement-card { display: block; min-height: 0; }
  .achievement-art { height: 7rem; margin-bottom: 1rem; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.partial-notice { display: grid; gap: .45rem; margin: 0 0 1.4rem; padding: 1.2rem 1.5rem; border: 1px solid rgb(255 176 32 / 60%); border-radius: .6rem; background: var(--panel); }
.partial-notice strong { font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: 0; text-transform: none; color: #ffc45c; }
.partial-notice span { color: rgb(255 214 150 / 88%); }

/* Shared surfaces and compact product chrome. */
.site-header { position: sticky; top: 0; background: var(--bg); border-color: var(--line); }
.header-inner { grid-template-columns: auto minmax(15rem, 1fr) auto; min-height: 88px; gap: 2rem; }
.brand strong { font-size: .9rem; color: var(--muted); font-weight: 500; }
.site-nav { gap: .4rem; }
.site-nav a { padding: .65rem .85rem; font-size: .85rem; border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--panel); }
.site-nav a[aria-current]::after { display: none; }
.global-search { gap: .5rem; max-width: 42rem; }
.global-search button, .target-form button, .tool-card button, .decoder-output button, .error-panel button { min-height: 44px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 600; }
.global-search button:hover, .target-form button:hover, .tool-card button:hover, .decoder-output button:hover, .error-panel button:hover { background: var(--accent-bright); color: var(--accent-ink); }
input, textarea { border-color: var(--line-bright); background: var(--bg-deep); font-size: .95rem; }
input:focus, textarea:focus { border-color: var(--accent); }
#app-content { padding: 2rem 0 4rem; }
.profile-screen-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 1.25rem; }
.profile-screen-title h1 { min-width: 0; padding: 0; border: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; text-align: left; }
.profile-screen-title span { font-size: .85rem; }
.profile-screen-title span.is-online i { box-shadow: none; }
.player-hero { gap: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); grid-template-columns: minmax(25rem, 1fr) minmax(28rem, 1fr); }
.userbar-pid { color: var(--muted); font-size: .7rem; }
.hero-facts dt { color: var(--dim); font-size: .8rem; font-weight: 400; }
.hero-facts > div { min-height: 6rem; }
.hero-facts dd { font-size: 1.5rem; }
.hero-facts dd small { font-size: .8rem; }
.achievement-fact { gap: .65rem; }
.player-nav { margin-top: 1rem; }
.player-nav a { padding: .9rem 1rem; font-size: .9rem; }
.player-nav a:hover { background: var(--panel); }
.player-nav a[aria-current] { color: var(--accent-bright); }
.game-profile-section { padding-top: 1.5rem; }
.game-profile-toolbar { gap: 1rem; }
.game-filter > span, .game-filter > label { color: var(--muted); font-size: .85rem; }
.game-filter select { border-radius: var(--radius-sm); font-size: .9rem; }
.game-profile-grid { grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr); }
.game-profile-grid > article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.game-side-panel .profile-gallery { grid-template-columns: minmax(8rem, .65fr) minmax(0, 1.35fr); }
.game-panel-title { font-size: .85rem; }
.game-main-metrics strong { font-family: var(--font); font-size: 3rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.game-main-metrics span, .game-secondary-metrics dt, .achievement-totals span { font-size: .85rem; }
.section-heading { margin-top: 2.5rem; margin-bottom: 1.25rem; }
.section-heading h2, .tool-card h2, .target-panel h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.2; }
.data-table-wrap, .target-panel, .directory-panel { border-color: var(--line); border-radius: var(--radius); }
.data-table { font-size: .9rem; }
.data-table thead th { font-size: .8rem; font-weight: 500; }
.data-table tbody tr:nth-child(odd) { background: var(--panel); }
.data-table tbody tr:nth-child(even) { background: var(--bg); }
.data-table tbody tr:hover { background: var(--panel-raised); }
.data-table td { font-size: .9rem; font-variant-numeric: tabular-nums; }
.metric-grid, .combat-stat-grid, .supplement-metrics, .weapon-summary { border-radius: var(--radius); overflow: hidden; }
.metric-grid article { min-height: 9rem; }
.metric-grid strong, .combat-stat-grid strong, .supplement-metrics strong, .weapon-kills strong { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric-grid span, .combat-stat-grid span, .stat-strip span, .supplement-metrics span { font-size: .8rem; }
.combat-panel { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.mode-list article { padding-block: 1.15rem; }
.mode-list article strong { font-variant-numeric: tabular-nums; }
.target-form, .tool-card form { gap: .5rem; }
.dashboard-grid, .tool-grid { border: 0; gap: 1rem; }
.dashboard-grid > article, .tool-card { border: 1px solid var(--line); border-radius: var(--radius); }
.dashboard-grid .section-heading { margin-top: 0; }
.directory-row { font-size: .85rem; padding-block: 1rem; }
.directory-head { font-size: .8rem; background: var(--panel); }
.directory-row time { white-space: nowrap; }
.tool-card { min-height: 18rem; padding: 1.5rem; align-content: start; }
.tool-card form { margin-top: 1.5rem; }
.tool-card-wide { min-height: 0; }
.tool-card label, .compact-field span, .target-form label { font-size: .85rem; }
.tool-card > div > p { margin: .7rem 0 0; font-size: .9rem; }
.achievement-toolbar { border-top: 0; }
.filter-row { gap: .3rem; }
.filter-row button { min-height: 44px; padding: .8rem 1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.filter-row button:hover { background: var(--panel); }
.achievement-controls { padding-block: 1rem; }
.segment-row { border: 1px solid var(--line); border-radius: var(--radius-sm); width: fit-content; max-width: 100%; }
.segment-row button { min-height: 40px; border-radius: 4px; font-size: .85rem; }
.achievement-grid { border: 0; gap: 1rem; }
.achievement-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-height: 19rem; }
.achievement-card:hover { border-color: var(--line-bright); }
.achievement-copy h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.achievement-copy > p { font-size: .9rem; }
.achievement-meta, .achievement-copy time { font-size: .75rem; }
.achievement-progress progress { height: 4px; border-radius: 2px; }
.weapon-toolbar { position: relative; top: auto; background: var(--bg); border-color: var(--line); border-radius: var(--radius); }
.weapon-card { background: var(--panel); grid-template-columns: minmax(9rem, .7fr) minmax(10rem, 1fr) minmax(7rem, .45fr) minmax(20rem, 1.3fr); }
.weapon-art { background: var(--bg-deep); }
.weapon-list { border-radius: var(--radius); overflow: hidden; }
.weapon-metrics dt { font-size: .75rem; }
.weapon-identity code { font-size: .75rem; }
.loading-panel, .error-panel { min-height: 24rem; }
.loading-panel h1, .error-panel h1 { max-width: 24ch; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; }
.partial-notice { border-color: var(--gold); background: var(--panel); }
.partial-notice strong { color: var(--gold); font-size: 1rem; }
.partial-notice span { color: var(--muted); }
.site-footer { font-size: .8rem; }
@media (max-width: 1120px) {
  .header-inner { grid-template-columns: minmax(15rem, 1fr) auto; gap: 1rem; padding-block: 1rem; }
  .brand { display: none; }
  .site-nav { grid-column: auto; border: 0; }
  .player-hero { grid-template-columns: 1fr; gap: .5rem; }
  .userbar { max-width: 40rem; }
  .hero-facts > div:first-child { border-left: 0; }
  .weapon-card { grid-template-columns: 10rem minmax(10rem, 1fr) minmax(7rem, .45fr); }
  .weapon-metrics { grid-column: 1 / -1; }
}
@media (max-width: 840px) {
  .game-profile-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  :root { --content: min(100% - 2rem, 82rem); }
  .header-inner { grid-template-columns: 1fr; gap: .75rem; }
  .site-nav { justify-content: flex-start; }
  .site-nav a { min-height: 44px; padding: .65rem .8rem; }
  .global-search button span { display: inline; }
  #app-content { padding-top: 1.25rem; }
  .profile-screen-title h1 { font-size: 1.2rem; }
  .player-hero { padding: .65rem; }
  .userbar-copy { left: 7.7rem; bottom: 1.3rem; }
  .userbar-copy strong { font-size: 1rem; }
  .userbar-pid { font-size: .65rem; }
  .hero-facts > div { padding: .8rem; min-height: 5rem; }
  .hero-facts dd { font-size: 1.25rem; }
  .hero-facts dd small { font-size: .75rem; }
  .player-nav a { min-height: 48px; padding-inline: .85rem; }
  .game-main-metrics { padding: 1.1rem; }
  .game-main-metrics strong { font-size: 2.5rem; }
  .game-secondary-metrics { padding-inline: 1.1rem; }
  .game-side-panel .profile-gallery { grid-template-columns: 1fr; }
  .profile-gallery-stripes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement-card { grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; min-height: 14rem; }
  .achievement-meta { flex-wrap: wrap; gap: .25rem; }
  .mode-list article { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; }
  .mode-list article strong:nth-of-type(2), .mode-list article em:nth-of-type(2), .mode-list article a { display: inline; }
  .mode-list article > div { grid-column: 1 / -1; }
  .mode-list article a { grid-column: 1 / -1; padding-block: .3rem; }
  .weapon-card { grid-template-columns: 7rem minmax(0, 1fr); }
  .weapon-toolbar { margin-inline: 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; }
  .tool-card form { grid-template-columns: 1fr; }
  .landing-hero { gap: 1.5rem; padding-block: 1.5rem; }
  .landing-hero h1 { font-size: 2.5rem; }
  .landing-hero p { margin-top: 1rem; }
}

.global-search button, .target-form button, .tool-card button { clip-path: none; }
.loading-panel span { background: var(--accent); border-radius: 2px; }
.class-dot { background: var(--dim); border-radius: 50%; }

.directory-search { display: block; max-width: 32rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .85rem; }
.directory-search input { display: block; margin-top: .45rem; }
@media (max-width: 620px) { .directory-row span:first-of-type { display: block; font-size: .75rem; } .directory-row time { grid-column: 1 / -1; color: var(--dim); font-size: .75rem; } }

.profile-screen-title h1 { margin: 0; }

/* ── Подсказки поиска по базе ── */

.global-search { position: relative; }

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 320;
  display: grid;
  gap: 2px;
  padding: 6px;
  background: var(--panel-raised);
  border: 1px solid var(--line-bright);
  border-radius: .6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.search-suggestions button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  padding: .5rem .7rem;
  background: none;
  border: 0;
  border-radius: .4rem;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-suggestions button:hover,
.search-suggestions button.is-active { background: var(--panel-soft); }

.search-suggestions button strong { font-size: .88rem; font-weight: 650; }
.search-suggestions button span { overflow: hidden; color: var(--muted); font-size: .72rem; font-family: var(--mono); text-overflow: ellipsis; white-space: nowrap; }

.search-suggestions-hint {
  margin: 4px 2px 0;
  padding: 6px 8px 2px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .68rem;
  line-height: 1.45;
}

/* ── История ников в профиле ── */

.nickname-history { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; }
.nickname-history::before { content: '⏳ '; opacity: .6; }

/* ── Доп. блоки портфолио: график сезонов + оценка честности ── */

.profile-extras { margin-top: 1.4rem; }
.profile-extras-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; }

.extra-card { padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; }

.trust-verdict { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: var(--panel-raised); border: 1px solid var(--line); border-radius: .5rem; }
.trust-emoji { font-size: 1.6rem; line-height: 1; }
.trust-summary { flex: 1; display: grid; gap: .35rem; }
.trust-summary strong { font-size: .92rem; }
.trust-bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--panel-soft); overflow: hidden; }
.trust-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.trust-percent { font-family: var(--mono); font-size: 1.3rem; font-weight: 750; }

.trust-reasons { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .3rem; max-height: 15rem; overflow: auto; }
.trust-reasons li { padding: .4rem .6rem; border-left: 3px solid var(--line-bright); background: var(--panel-raised); border-radius: 0 .4rem .4rem 0; color: var(--muted); font-size: .8rem; }
.trust-reasons li.is-negative { border-left-color: var(--danger); color: var(--text); }
.trust-reasons li.is-positive { border-left-color: var(--green); }

@media (max-width: 900px) {
  .profile-extras-grid { grid-template-columns: 1fr; }
}

/* ── Авторизация ── */

.auth-slot { display: flex; align-items: center; gap: .55rem; }

.auth-login, .auth-logout {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border-radius: .45rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.auth-login { border: 1px solid var(--line-bright); background: none; color: var(--muted); }
.auth-login i { font-style: normal; color: var(--cyan); }
.auth-login:hover { color: var(--text); border-color: var(--cyan); background: rgba(84, 199, 215, .07); }

.auth-logout { border: 0; background: none; color: var(--dim); font-size: .72rem; text-decoration: underline dotted; }
.auth-logout:hover { color: var(--danger); }

.auth-user { display: inline-flex; align-items: center; gap: .4rem; max-width: 11rem; overflow: hidden; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.auth-user i { font-style: normal; color: var(--green); }

.auth-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; background: rgba(4, 7, 13, .72); backdrop-filter: blur(4px); }

.auth-modal { position: relative; width: min(34rem, 96vw); max-height: 92vh; overflow: auto; padding: 1.6rem 1.7rem 1.4rem; background: var(--panel); border: 1px solid var(--line-bright); border-radius: .8rem; box-shadow: 0 28px 80px rgba(0, 0, 0, .55); }
.auth-modal h3 { margin: 0 0 .4rem; font-size: 1.25rem; }
.auth-note { margin: 0 0 1.1rem; color: var(--muted); font-size: .85rem; }
.auth-note b { color: var(--text); }

.auth-close { position: absolute; top: .8rem; right: .9rem; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: .45rem; background: none; color: var(--muted); cursor: pointer; }
.auth-close:hover { color: var(--text); border-color: var(--accent); }

.auth-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }

.auth-code-label { display: block; margin-bottom: .3rem; color: var(--dim); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.auth-code { display: block; margin-bottom: .9rem; font-family: var(--mono); font-size: 2rem; font-weight: 750; letter-spacing: .3em; color: var(--accent-bright, var(--accent)); text-shadow: 0 0 18px rgba(255, 93, 53, .25); }

.auth-tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border-radius: .5rem; background: linear-gradient(135deg, #2a9fd8, #1f7fb0); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.auth-tg-btn:hover { filter: brightness(1.1); }
.auth-tg-btn i { font-style: normal; }

.auth-hint { margin: .6rem 0 0; color: var(--dim); font-size: .72rem; line-height: 1.45; }

.auth-qr-wrap { display: grid; place-items: center; padding: .7rem; background: #fff; border-radius: .55rem; }
.auth-qr { width: 9.5rem; height: 9.5rem; image-rendering: pixelated; }

.auth-status { display: flex; align-items: center; gap: .55rem; margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.auth-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-bright); border-top-color: var(--accent); border-radius: 50%; animation: auth-spin .9s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-retry { padding: .25rem .6rem; border: 1px solid var(--line-bright); border-radius: .4rem; background: none; color: var(--text); font: inherit; font-size: .78rem; cursor: pointer; }

@media (max-width: 560px) {
  .auth-body { grid-template-columns: 1fr; }
  .auth-right { display: grid; justify-items: center; }
}

/* ── VIP ── */

.vip-panel .vip-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }

.vip-buy { position: relative; padding: .75rem 1.4rem; border: 1px solid var(--gold); border-radius: .5rem; background: linear-gradient(135deg, rgba(214, 190, 123, .14), rgba(214, 190, 123, .04)); color: var(--gold); font: inherit; font-weight: 750; cursor: not-allowed; opacity: .6; }

.vip-buy:hover { box-shadow: 0 0 22px rgba(214, 190, 123, .35); }

.vip-buy::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: .35rem .7rem;
  border: 1px solid var(--gold);
  border-radius: .4rem;
  background: var(--bg-deep, #070b13);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.vip-buy:hover::after { opacity: 1; }
