:root {
  --bg: #0d0d0e;
  --bg-soft: #141416;
  --surface: #17181a;
  --edge: #26272b;
  --edge-soft: #1f2023;
  --text: #e8e8ea;
  --text-dim: #9b9ba1;
  --muted: #6f6f76;
  --amber: #e8a33d;
  --amber-bright: #f5b959;
  --win: #5fc48b;
  --loss: #e06a6a;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --shell: 1120px;
  --gutter: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.strip {
  background: #1b1408;
  color: #d6a44f;
  font-family: var(--mono);
  font-size: .72rem;
  text-align: center;
  padding: .4rem 1rem;
  border-bottom: 1px solid #2a2110;
}
.strip code { background: rgba(232,163,61,.12); padding: .05rem .3rem; border-radius: 3px; }

header.site {
  border-bottom: 1px solid var(--edge-soft);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.site__inner { display: flex; align-items: center; gap: 1.75rem; min-height: 58px; }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; font-size: 1.02rem; text-decoration: none; color: var(--text);
}
.logo__mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(140deg, var(--amber), #b9761f);
  display: grid; place-items: center; color: #17120a;
  font-weight: 800; font-size: .8rem; font-family: var(--mono);
}
nav.main { display: flex; gap: 1.4rem; }
nav.main a { color: var(--text-dim); text-decoration: none; font-size: .9rem; }
nav.main a:hover, nav.main a[aria-current] { color: var(--text); }
.site__right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.searchbox {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--edge); border-radius: 9px;
  background: var(--bg-soft); padding: .4rem .7rem;
  color: var(--muted); font-size: .85rem; text-decoration: none;
}
.searchbox kbd {
  font-family: var(--mono); font-size: .7rem; border: 1px solid var(--edge);
  border-radius: 4px; padding: 0 .3rem; color: var(--muted);
}
@media (max-width: 860px) { nav.main, .searchbox { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent; padding: .5rem 1rem;
  text-decoration: none; cursor: pointer;
}
.btn--amber { background: var(--amber); color: #17120a; }
.btn--amber:hover { background: var(--amber-bright); }
.btn--ghost { border-color: var(--edge); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: #3a3b40; }

.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__kicker { font-family: var(--mono); color: var(--amber); font-size: .85rem; margin: 0 0 .6rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 1rem; max-width: 12ch; font-weight: 700;
}
.hero p.lede { color: var(--text-dim); max-width: 46ch; margin: 0 0 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.2rem; }

form.search { display: flex; flex-wrap: wrap; gap: .6rem; }
form.search input[type=text], form.search select {
  background: var(--bg-soft); border: 1px solid var(--edge); border-radius: 9px;
  color: var(--text); padding: .7rem .85rem; font-family: var(--mono); font-size: .9rem;
}
form.search select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23e8a33d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  padding-right: 2.2rem;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
form.search select:hover:not(:disabled) { border-color: #3a3b40; }
form.search select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 2px rgba(232, 163, 61, 0.25); }
form.search select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
form.search select option { background-color: var(--bg-soft); color: var(--text); padding: .4rem .6rem; }
form.search input[type=text] { flex: 1 1 22rem; min-width: 0; }
form.search input::placeholder { color: var(--muted); }

.grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--edge-soft); border-radius: 12px;
  background: var(--surface); padding: 1.3rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.profile { display: flex; align-items: flex-start; gap: 1.1rem; padding: 2rem 0 1rem; }
.avatar {
  width: 52px; height: 52px; border-radius: 10px; flex: none;
  background: var(--surface); border: 1px solid var(--edge); object-fit: cover;
}
.profile h1 { font-family: var(--mono); font-size: 1.9rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badge {
  font-family: var(--mono); font-size: .72rem; padding: .15rem .5rem;
  border-radius: 5px; border: 1px solid var(--edge); color: var(--text-dim);
  background: var(--bg-soft);
}
.badge--fresh { color: var(--win); border-color: rgba(95,196,139,.4); }
.badge--stale { color: var(--amber); border-color: rgba(232,163,61,.4); }
.badge--failed { color: var(--loss); border-color: rgba(224,106,106,.4); }
.level { color: var(--text-dim); font-size: .85rem; }

.ranks { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 22rem)); margin: 1.2rem 0 1.6rem; }
@media (max-width: 760px) { .ranks { grid-template-columns: 1fr; } }
.rank__queue { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 .8rem; }
.rank__tier {
  display: inline-block; font-family: var(--mono); font-size: .85rem;
  border: 1px solid rgba(95,196,139,.35); color: var(--win);
  border-radius: 6px; padding: .2rem .55rem; margin-bottom: .7rem;
}
.rank__record { font-family: var(--mono); font-size: .85rem; color: var(--text); margin: 0 0 .5rem; }
.rank__observed { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 0; }

.notice {
  border: 1px solid var(--edge-soft); border-radius: 9px; background: var(--bg-soft);
  padding: .8rem 1rem; color: var(--text-dim); font-size: .88rem; margin-bottom: 1.6rem;
}
.notice--warn { border-color: rgba(232,163,61,.35); color: var(--amber); }

.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--edge-soft); margin-bottom: 1.6rem; }
.tabs a {
  padding: .55rem 0; text-decoration: none; color: var(--text-dim);
  font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--amber); font-weight: 600; }

h2.section { font-size: 1rem; font-weight: 600; margin: 0 0 1rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); margin-bottom: 2.2rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat__label { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 .5rem; }
.stat__value { font-family: var(--mono); font-size: 1.7rem; margin: 0 0 .35rem; }
.stat__meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin: 0; }
.stat__prov { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin: .7rem 0 0;
  border-top: 1px solid var(--edge-soft); padding-top: .55rem; }

.match {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--edge-soft); border-left-width: 3px; border-radius: 10px;
  background: var(--surface); padding: .85rem 1rem; margin-bottom: .6rem;
}
.match--win { border-left-color: var(--win); }
.match--loss { border-left-color: var(--loss); }
.match--unknown { border-left-color: var(--muted); }
.match__champ {
  width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--edge);
  font-family: var(--mono); font-size: .7rem; color: var(--text-dim);
}
.match__result { min-width: 8.5rem; }
.match__result strong { display: block; font-size: .95rem; }
.match--win .match__result strong { color: var(--win); }
.match--loss .match__result strong { color: var(--loss); }
.match__sub { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.match__kda { font-family: var(--mono); font-size: .95rem; min-width: 5rem; }
.match__num { font-family: var(--mono); font-size: .82rem; color: var(--text-dim); }
.match__when { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-left: auto; text-align: right; }
@media (max-width: 720px) {
  .match { flex-wrap: wrap; }
  .match__when { margin-left: 0; width: 100%; text-align: left; }
}

table.plain { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.plain th, table.plain td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--edge-soft); }
table.plain th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.plain td.num { font-family: var(--mono); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

footer.site { border-top: 1px solid var(--edge-soft); margin-top: 4rem; padding: 2rem 0 3rem; color: var(--muted); font-size: .82rem; }
footer.site a { color: var(--text-dim); }

.empty { color: var(--text-dim); font-size: .92rem; padding: 2rem 0; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------------------
   Identity, ladder and comparison surfaces.
   Added when the single-account page grew into the multi-account product.
--------------------------------------------------------------------------- */

.h-plain { font-size: 2rem; max-width: none; margin: .2rem 0 .6rem; }
.hero--tight { padding-bottom: 1rem; }
.footnote { color: var(--muted); font-size: .78rem; margin: .7rem 0 1.6rem; }
.section__sub {
  color: var(--muted); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; margin: 1.6rem 0 .7rem;
}
.crumb { color: var(--muted); font-size: .82rem; margin: 1.6rem 0 .2rem; }
.crumb a { color: var(--amber); text-decoration: none; }
.good { color: var(--win); }
.bad { color: var(--loss); }

.hollow {
  border: 1px dashed var(--edge); border-radius: 12px;
  padding: 2.2rem 1.5rem; text-align: center; margin: 1rem 0 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
}
.hollow h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.hollow p { margin: 0; color: var(--text-dim); max-width: 46ch; margin-inline: auto; font-size: .9rem; }

/* Tier pills carry the rank's own colour so "unranked" reads as a state. */
.tier {
  display: inline-flex; align-items: baseline; gap: .35rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  padding: .2rem .5rem; border-radius: 5px; border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.tier__lp { color: var(--text-dim); font-size: .7rem; }
.tier--unranked  { color: var(--muted); }
.tier--iron      { color: #7d7169; }
.tier--bronze    { color: #b0764a; }
.tier--silver    { color: #a9b3bd; }
.tier--gold      { color: #e0b23c; }
.tier--platinum  { color: #4ec3c0; }
.tier--emerald   { color: #46c07a; }
.tier--diamond   { color: #6ba8f0; }
.tier--master    { color: #b47ce8; }
.tier--grandmaster { color: #e0685f; }
.tier--challenger  { color: #56c8ef; }

.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.pills--plain { margin-top: -.4rem; }
.pill {
  font-family: var(--mono); font-size: .76rem; text-decoration: none;
  padding: .3rem .7rem; border-radius: 999px; color: var(--text-dim);
  border: 1px solid var(--edge-soft); background: var(--bg-soft);
}
.pill:hover { color: var(--text); border-color: var(--edge); }
.pill--on { background: var(--amber); border-color: var(--amber); color: #1a1407; font-weight: 600; }
.switchers { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }

.avatar--text {
  display: grid; place-items: center; font-family: var(--mono);
  background: var(--amber); color: #1a1407; font-weight: 700; border-radius: 12px;
}
.avatar--lg { width: 66px; height: 66px; font-size: 1.25rem; }

.idhead {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem;
  align-items: start; border: 1px solid var(--edge-soft); border-radius: 14px;
  background: var(--surface); padding: 1.4rem; margin: 1.6rem 0 1rem;
}
.idhead h1 { margin: 0; font-size: 1.7rem; font-family: var(--mono); }
.idhead__name { margin: .1rem 0 .5rem; color: var(--text-dim); }
.idhead__meta { margin: .15rem 0; color: var(--muted); font-size: .78rem; }
.badge--game { color: var(--win); border-color: color-mix(in srgb, var(--win) 40%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--edge-soft); border-radius: 8px;
  padding: .25rem .5rem; background: var(--bg-soft); font-size: .8rem;
}
.chip a { color: var(--text-dim); text-decoration: none; }
.chip a:hover { color: var(--amber); }

.sharecard {
  border: 1px solid var(--edge-soft); border-radius: 10px;
  background: var(--bg-soft); padding: .85rem 1rem; max-width: 270px;
}
.sharecard .mono { color: var(--muted); font-size: .64rem; letter-spacing: .16em; margin: 0 0 .3rem; }
.sharecard__title { margin: 0 0 .25rem; font-weight: 600; }
.sharecard__sub { margin: 0; color: var(--text-dim); font-size: .8rem; }

.portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.portfolio__col { display: grid; gap: .7rem; align-content: start; }
.portfolio__head { margin: 0 0 .1rem; font-size: .8rem; }
.portfolio__head a { color: var(--amber); text-decoration: none; }
.role, .tag {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  color: var(--muted); border: 1px solid var(--edge-soft);
  border-radius: 4px; padding: .1rem .35rem; margin-left: .3rem;
}
.owner { margin: .5rem 0 0; font-size: .82rem; color: var(--text-dim); }
.owner a { color: var(--amber); text-decoration: none; }

.accts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.acct {
  display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap;
  border: 1px solid var(--edge-soft); border-radius: 9px;
  padding: .4rem .65rem; background: var(--surface);
}
.acct a { color: var(--text); text-decoration: none; font-size: .88rem; }
.acct a:hover { color: var(--amber); }

.search--inline, .search--compare { margin: .6rem 0 1.2rem; }
.compare { margin: 1.4rem 0; }
.compare__head {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  border: 1px solid var(--edge-soft); border-radius: 14px 14px 0 0;
  background: var(--surface); padding: 1.2rem;
}
.compare__head > div:last-child { text-align: right; }
.compare__who { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 600; }
.compare__who a { text-decoration: none; }
.compare__vs { color: var(--muted); font-size: .8rem; }
.compare__table { border-radius: 0 0 14px 14px; }
.compare__label {
  text-align: center; color: var(--muted); font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.match__champ--sm { width: 24px; height: 24px; font-size: .62rem; display: inline-grid; vertical-align: middle; }

@media (max-width: 720px) {
  .idhead { grid-template-columns: auto 1fr; }
  .sharecard { grid-column: 1 / -1; max-width: none; }
  .compare__head { grid-template-columns: 1fr; text-align: left; }
  .compare__head > div:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .search--compare { flex-direction: column; }
  .search--compare input[type=text], .search--compare select, .search--compare button {
    width: 100%; flex: 1 1 auto;
  }
  .search--compare .compare__vs { align-self: center; margin: -0.2rem 0; }
  .ranks { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

