/* Echo Tiers
   Colours come from the logo: blood red, near-black, and the silver of the lettering.
   Fonts: Cinzel (inscription-style capitals like the logo) + Barlow (text). */

:root {
  --ink: #0b0507;
  --ink-2: #12070a;
  --ink-3: #1b0a0f;
  --line: #3a1219;
  --blood: #c1121f;
  --blood-d: #7d0d16;
  --cloth: #5a0f18;
  --silver: #e7e7ec;
  --ash: #b0a8b0;

  /* tiers run from heat to cold iron */
  --t1: #ff3b3b;
  --t2: #f2792f;
  --t3: #e0b04a;
  --t4: #9aa6ba;
  --t5: #7d8392;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
  background: var(--ink);
  color: var(--silver);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--silver); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.pxi { display: block; image-rendering: pixelated; }

/* ---------- Buttons: cut corners, like a blade guard ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  color: var(--silver);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background-color 0.2s, transform 0.08s;
}
.btn:active { transform: translateY(2px); }

.btn-blood { background: linear-gradient(180deg, #d4202d, #a50f1b); }
.btn-blood:hover { background: linear-gradient(180deg, #ee2b3a, #bf1322); }

.btn-line { background: var(--silver); }
.btn-line::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--ink);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.2s;
}
.btn-line:hover::before { background: var(--blood-d); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 5, 7, 0.97);
  border-bottom: 2px solid var(--blood-d);
}
.navbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-size: 21px; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li > a,
.menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 0;
  background: linear-gradient(var(--blood), var(--blood)) center bottom / 0 2px no-repeat;
  color: var(--ash);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-size 0.25s ease, color 0.2s;
}
.nav-links > li > a:hover,
.menu-btn:hover,
.has-menu.open .menu-btn,
.nav-links > li > a[aria-current="page"],
.menu-btn[aria-current="page"] {
  background-size: calc(100% - 32px) 2px;
  color: var(--silver);
}
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; transition: transform 0.25s; }
.has-menu.open .chev { transform: rotate(180deg); }

.has-menu { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  width: 340px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--ink-3);
  border-top: 3px solid var(--blood);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.22s ease, visibility 0s 0.22s;
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ash);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.menu a:hover, .menu a:focus-visible { background: var(--cloth); color: var(--silver); outline-offset: -3px; }
.menu a.menu-all { grid-column: 1 / -1; color: var(--silver); font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu svg { width: 24px; height: 24px; flex: none; }

.burger {
  display: none;
  width: 48px; height: 48px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  cursor: pointer;
}
.burger span { width: 22px; height: 2px; background: var(--silver); transition: transform 0.25s, opacity 0.15s; }
.navbar.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.nav-open .burger span:nth-child(2) { opacity: 0; }
.navbar.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Shared type ---------- */
.band { padding: 92px 0; }
.band-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: 0.01em; }
.section-intro { margin-top: 14px; max-width: 54ch; color: var(--ash); font-size: 19px; }
.lead { max-width: 46ch; color: var(--ash); font-size: 20px; }

/* ---------- Hero: the logo art bleeds in from the right ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(80vh, 700px);
  overflow: hidden;
  border-bottom: 2px solid var(--blood-d);
}
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(68%, 860px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; animation: art-in 2s ease-out both; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0, rgba(11, 5, 7, 0) 48%),
    linear-gradient(0deg, var(--ink) 0, rgba(11, 5, 7, 0) 18%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 560px; padding: 84px 0; }
.hero h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.04;
  text-shadow: 0 3px 0 var(--blood-d);
}
.hero h1 span { display: block; }
.hero .lead { margin-top: 24px; }

.line-in { animation: line-in 0.9s ease-out both; animation-delay: calc(0.25s + var(--d, 0) * 0.14s); }
@keyframes art-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Tier badges ---------- */
.badge {
  --tc: var(--t5);
  display: inline-block;
  min-width: 42px;
  padding: 2px 7px;
  text-align: center;
  font: 800 13px/1.4 "Cinzel", serif;
  letter-spacing: 0.04em;
}
.badge[data-t="1"] { --tc: var(--t1); }
.badge[data-t="2"] { --tc: var(--t2); }
.badge[data-t="3"] { --tc: var(--t3); }
.badge[data-t="4"] { --tc: var(--t4); }
.badge[data-t="5"] { --tc: var(--t5); }
.badge.ht { background: var(--tc); color: #1a0508; }
.badge.lt { color: var(--tc); box-shadow: inset 0 0 0 2px var(--tc); }

/* ---------- Tier ladder (five rows, best on top) ---------- */
.ladder { display: grid; gap: 10px; margin-top: 44px; }
.rung {
  --tc: var(--t5);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 15%, var(--ink-2)), var(--ink-2) 72%);
  border-left: 6px solid var(--tc);
}
.rung[data-t="1"] { --tc: var(--t1); }
.rung[data-t="2"] { --tc: var(--t2); }
.rung[data-t="3"] { --tc: var(--t3); }
.rung[data-t="4"] { --tc: var(--t4); }
.rung[data-t="5"] { --tc: var(--t5); }
.rung .num { font: 800 64px/1 "Cinzel", serif; color: transparent; -webkit-text-stroke: 2px var(--tc); }
.rung h3 { font-size: 24px; }
.rung .range { margin-top: 2px; color: var(--ash); font-size: 15px; font-weight: 500; }
.rung .who { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.rung .who li { display: flex; align-items: center; gap: 10px; list-style: none; font-weight: 600; }
.rung::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -30%;
  width: 18%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.rung:hover::after { left: 125%; }

/* ---------- Armory: pick a gamemode from the list ---------- */
.armory { display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: 44px; border: 1px solid var(--line); }
.mode-list { background: var(--ink-2); border-right: 1px solid var(--line); }
.mode-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.mode-tab:last-child { border-bottom: 0; }
.mode-tab .pxi { width: 30px; height: 30px; flex: none; }
.mode-tab .k { margin-left: auto; color: #6e5a60; font-size: 14px; font-weight: 700; }
.mode-tab:hover { background: var(--ink-3); color: var(--silver); }
.mode-tab[aria-selected="true"] { background: var(--cloth); border-left-color: var(--blood); color: var(--silver); }
.mode-tab[aria-selected="true"] .k { color: var(--silver); }
.mode-tab:focus-visible { outline-offset: -4px; }

.mode-view { background: var(--ink-3); border-top: 3px solid var(--blood); min-height: 340px; }
.mode-panel { display: flex; align-items: center; gap: 36px; padding: 44px; }
.js .mode-panel { display: none; }
.js .mode-panel.is-active { display: flex; animation: panel-in 0.28s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.mode-panel .big-icon { flex: none; display: grid; place-items: center; width: 168px; height: 168px; background: var(--ink); border: 1px solid var(--line); }
.mode-panel .big-icon .pxi { width: 112px; height: 112px; }
.mode-panel h3 { font-size: 34px; }
.mode-panel p { margin-top: 12px; max-width: 44ch; color: var(--ash); font-size: 19px; }
.text-link { display: inline-block; margin-top: 16px; color: var(--silver); font-weight: 700; border-bottom: 2px solid var(--blood); transition: border-color 0.15s, color 0.15s; }
.text-link:hover { border-color: var(--silver); }

/* ---------- How a test works ---------- */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 48px; list-style: none; }
.how li { position: relative; }
.how .roman { display: block; font: 800 56px/1 "Cinzel", serif; color: var(--blood); }
.how li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px; left: 84px; right: -24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blood-d), transparent);
}
.how h3 { margin-top: 18px; font-size: 22px; }
.how p { margin-top: 6px; color: var(--ash); }

/* ---------- Torn banner (closing call to action) ---------- */
.banner {
  position: relative;
  padding: 88px 0 150px;
  text-align: center;
  background:
    repeating-linear-gradient(95deg, rgba(0, 0, 0, 0.2) 0 3px, transparent 3px 130px),
    linear-gradient(180deg, var(--cloth), #7d1420);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 96% 97%, 92% 88%, 88% 100%, 83% 91%, 78% 98%, 72% 89%, 66% 100%, 60% 91%, 54% 99%, 48% 90%, 41% 98%, 35% 88%, 29% 99%, 22% 90%, 15% 100%, 8% 91%, 3% 98%, 0 89%);
}
.banner p { margin: 14px auto 0; max-width: 46ch; color: #f1d6d9; font-size: 19px; }
.banner .actions { justify-content: center; }
.banner .btn-blood { background: var(--ink); }
.banner .btn-blood:hover { background: #24090e; }

/* ---------- Sub-page header ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 68px); text-shadow: 0 3px 0 var(--blood-d); }
.page-head .lead { margin-top: 16px; }

/* ---------- Rankings table ---------- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; color: var(--ash); font-size: 16px; }
.board { overflow-x: auto; background: var(--ink-2); border: 1px solid var(--line); }
.board table { width: 100%; min-width: 940px; border-collapse: collapse; }
.board th, .board td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board thead th { background: var(--ink); color: var(--ash); font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--blood-d); }
.board thead th.mode, .board td.mode { text-align: center; }
.board thead .pxi { width: 28px; height: 28px; margin: 0 auto; }
.board tbody tr { transition: background-color 0.15s; }
.board tbody tr:hover { background: var(--ink-3); }
.board tbody tr:nth-child(1) { background: rgba(193, 18, 31, 0.14); }
.board tbody tr:last-child td { border-bottom: 0; }
.board .rank { width: 56px; font: 800 22px "Cinzel", serif; color: var(--ash); }
.board tr:nth-child(1) .rank { color: var(--t1); }
.board tr:nth-child(2) .rank { color: var(--silver); }
.board tr:nth-child(3) .rank { color: #d08a52; }
.board .pts { font: 800 18px "Cinzel", serif; }
.board .title { color: var(--ash); }
.board .dash { color: #5a3f46; }
.who { display: flex; align-items: center; gap: 12px; font-weight: 700; }

.head {
  --hc: var(--blood);
  display: grid;
  place-items: center;
  width: 34px; height: 34px; flex: none;
  background: var(--hc);
  color: #fff;
  font: 800 16px "Cinzel", serif;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.head.lg { width: 104px; height: 104px; font-size: 48px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }

.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; margin-top: 32px; }
.points-table { max-width: 640px; background: var(--ink-2); border: 1px solid var(--line); }
.points-table table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.points-table tr:last-child td { border-bottom: 0; }
.points-table thead th { background: var(--ink); color: var(--ash); font-size: 15px; border-bottom: 2px solid var(--blood-d); }
.points-table td { font-weight: 700; }
.titles { display: grid; max-width: 420px; list-style: none; }
.titles li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.titles li:first-child { border-top: 1px solid var(--line); }
.titles span:last-child { color: var(--ash); font-weight: 700; }
.mt { margin-top: 64px; }

/* ---------- Testers ---------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.founder { display: flex; align-items: center; gap: 26px; }
.founder h3 { font-size: 36px; }
.founder .role { color: var(--blood); font-weight: 800; letter-spacing: 0.06em; }
.founder p { margin-top: 6px; max-width: 32ch; color: var(--ash); }
.tester-list { max-width: 760px; margin-top: 32px; list-style: none; }
.tester-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tester-list li:last-child { border-bottom: 1px solid var(--line); }
.tester-list .name { flex: 1; font-weight: 700; font-size: 19px; }
.tester-list .modes { display: flex; gap: 8px; }
.tester-list .modes .pxi { width: 30px; height: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .q { color: #fff; }
.q { flex: 1; font-weight: 700; font-size: 20px; color: var(--silver); }
.plus { flex: none; width: 14px; height: 14px; margin-right: 8px; background: var(--blood); transform: rotate(45deg); transition: transform 0.3s ease, background-color 0.2s; }
.faq details[data-state="open"] .plus { transform: rotate(225deg) scale(1.2); background: var(--silver); }
.ans { max-width: 64ch; padding: 0 0 24px; color: var(--ash); font-size: 18px; }
.faq-help { margin-top: 40px; color: var(--ash); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 2px solid var(--blood-d); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: 48px; padding: 56px 0 40px; }
.foot-grid p { margin-top: 14px; max-width: 34ch; color: var(--ash); }
.ip { display: inline-block; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--line); background: var(--ink); font: 800 17px "Cinzel", serif; letter-spacing: 0.04em; }
.foot-col h4 { margin-bottom: 12px; color: var(--ash); font: 700 16px "Barlow", sans-serif; }
.foot-col ul { display: grid; gap: 2px; list-style: none; }
.foot-col.two ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.foot-col a { display: inline-block; padding: 5px 0; opacity: 0.8; }
.foot-col a:hover { opacity: 1; color: #fff; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--ash); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-art { position: relative; width: 100%; height: 340px; }
  .hero-art::after { background: linear-gradient(0deg, var(--ink) 0, rgba(11, 5, 7, 0) 55%); }
  .hero-copy { padding: 12px 0 64px; }
  .armory { grid-template-columns: 1fr; }
  .mode-list { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .mode-tab { border-left: 0; border-bottom: 1px solid var(--line); border-top: 3px solid transparent; }
  .mode-tab[aria-selected="true"] { border-left: 0; border-top-color: var(--blood); }
  .mode-tab .k { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .how li::after { display: none; }
  .two-col, .founders { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .burger { display: flex; }
  .navbar .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    background: var(--ink);
    border-bottom: 2px solid var(--blood-d);
    transition: max-height 0.35s ease, visibility 0s 0.35s;
  }
  .navbar.nav-open .nav-links { max-height: 82vh; overflow-y: auto; visibility: visible; transition-delay: 0s; }
  .nav-links > li > a, .menu-btn { width: 100%; justify-content: space-between; padding: 17px 28px; background-image: none; }
  .menu {
    position: static; width: auto; padding: 0 0 0 20px;
    max-height: 0; overflow: hidden;
    background: transparent; border-top: 0; box-shadow: none;
    opacity: 1; visibility: hidden; transform: none;
    transition: max-height 0.35s ease, visibility 0s 0.35s;
  }
  .has-menu.open .menu { max-height: 620px; visibility: visible; padding-bottom: 8px; transition-delay: 0s; }
  .menu::before { display: none; }
}

@media (max-width: 680px) {
  .band { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .rung { grid-template-columns: 64px 1fr; gap: 6px 16px; padding: 16px 18px; }
  .rung .num { font-size: 46px; }
  .rung .who { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .mode-panel { flex-direction: column; align-items: flex-start; padding: 28px 22px; gap: 22px; }
  .mode-panel .big-icon { width: 120px; height: 120px; }
  .mode-panel .big-icon .pxi { width: 80px; height: 80px; }
  .how { grid-template-columns: 1fr; gap: 30px; }
  .banner { padding-bottom: 120px; }
  .founder { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ===== Echo Tiers: live data + visual polish ===== */
.pxi { image-rendering: auto; filter: drop-shadow(0 0 5px rgba(255,59,59,.28)); transition: transform .25s, filter .25s; }
.mode-tab:hover .pxi, .menu a:hover .pxi, .rk-tab:hover .pxi { transform: scale(1.12) rotate(-6deg); filter: drop-shadow(0 0 9px rgba(255,59,59,.6)); }
.big-icon .pxi { filter: drop-shadow(0 0 16px rgba(255,59,59,.5)); animation: ecFloat 4s ease-in-out infinite; }
@keyframes ecFloat { 50% { transform: translateY(-6px) rotate(-3deg); } }
.band h2::after, .page-head h1::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, var(--blood), transparent); }
.btn { transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(193,18,31,.35); }
.rung { transition: transform .25s, border-color .25s; }
.rung:hover { transform: translateX(6px); }
.ec-pts { color: var(--ash); font-size: 14px; font-weight: 600; }
.rung .who li { gap: 8px; }
.ec-av { width: 32px; height: 32px; border-radius: 6px; background: var(--ink-3); object-fit: cover; flex: none; image-rendering: pixelated; }
.ec-prof .ec-av { width: 84px; height: 84px; border-radius: 10px; border: 2px solid var(--blood-d); }
.ec-link { all: unset; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: inherit; font-weight: 600; }
.ec-link:hover span { color: #fff; text-decoration: underline; text-decoration-color: var(--blood); }
.ec-link:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
.ec-acct { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--ash); }
.ec-acct.premium { color: #e0b04a; border-color: #5b4713; }
.ec-dash, .ec-m, .ec-empty { color: var(--ash); font-size: 14px; }
.ec-empty { padding: 22px 16px !important; text-align: center; }
.ec-err { color: #ff8a8a; }
.ec-load { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 34px 16px; color: var(--ash); }
.ec-spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--blood); border-radius: 50%; animation: ecSpin .8s linear infinite; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
.ec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.ec-search { position: relative; width: min(360px, 100%); margin-top: 18px; }
.ec-head .ec-search { margin-top: 0; }
.ec-search input { width: 100%; padding: 12px 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; color: var(--silver); font: inherit; }
.ec-search input:focus { outline: none; border-color: var(--blood); box-shadow: 0 0 0 3px rgba(193,18,31,.25); }
#sugg { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
#sugg button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--silver); }
#sugg button:hover, #sugg button:focus-visible { background: var(--cloth); }
#sugg button .badge { margin-left: auto; }
.ec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 34px; }
.ec-stats div { padding: 18px; background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--blood); border-radius: 8px; }
.ec-stats b { display: block; font: 800 32px/1 "Cinzel", serif; color: var(--silver); }
.ec-stats span { color: var(--ash); font-size: 14px; }
.ec-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.ec-grid2 .board table { min-width: 0; }
.ec-h3 { margin-bottom: 14px; font-size: 22px; }
.ec-more { margin-top: 14px; }
.ec-feed { margin: 0; padding: 0; list-style: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; }
.ec-feed li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ec-feed li:last-child { border-bottom: 0; }
.ec-feed li > div { flex: 1; min-width: 0; }
.ec-feed .ec-m { display: inline-flex; align-items: center; gap: 4px; }
.ec-feed .ec-m .pxi { width: 16px; height: 16px; }
.ec-feed time { color: var(--ash); font-size: 13px; white-space: nowrap; }
.rk-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin: 8px 0 18px; }
.rk-tabs, .rk-region { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-tab, .rk-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; color: var(--ash); font-weight: 600; transition: background .2s, color .2s; }
.rk-tab .pxi { width: 22px; height: 22px; }
.rk-tab:hover, .rk-chip:hover { color: var(--silver); background: var(--ink-3); }
.rk-tab[aria-pressed="true"], .rk-chip[aria-pressed="true"] { background: var(--cloth); border-color: var(--blood); color: var(--silver); }
.rk-tab:focus-visible, .rk-chip:focus-visible { outline: 2px solid var(--blood); outline-offset: 2px; }
.ec-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; color: var(--ash); }
.ec-pager button { all: unset; cursor: pointer; padding: 8px 18px; border: 1px solid var(--blood-d); border-radius: 8px; color: var(--silver); font-weight: 600; }
.ec-pager button:hover:not([disabled]) { background: var(--cloth); }
.ec-pager button[disabled] { opacity: .35; cursor: default; }
.board .who { display: inline-flex; }
.board td .head { display: none; }
.tester-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tester-list .modes { display: inline-flex; gap: 6px; margin-left: auto; }
.tester-list .modes .pxi { width: 28px; height: 28px; }
.ec-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(5,2,3,.8); backdrop-filter: blur(4px); }
.ec-modal[hidden] { display: none; }
.ec-card { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 28px; background: var(--ink-2); border: 1px solid var(--blood-d); border-radius: 12px; box-shadow: 0 0 60px rgba(193,18,31,.3); animation: ecPop .25s ease-out; }
@keyframes ecPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ec-x { all: unset; position: absolute; top: 10px; right: 16px; cursor: pointer; font-size: 30px; line-height: 1; color: var(--ash); }
.ec-x:hover { color: #fff; }
.ec-prof { display: flex; align-items: center; gap: 18px; }
.ec-prof h3 { font-size: 30px; margin-bottom: 6px; }
.ec-prof p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ec-reg { color: var(--ash); font-weight: 600; }
.ec-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.ec-kpis div { padding: 14px; text-align: center; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.ec-kpis b { display: block; font: 800 26px/1.1 "Cinzel", serif; }
.ec-kpis span { color: var(--ash); font-size: 13px; }
.ec-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.ec-mode { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 2px 10px; padding: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.ec-mode .pxi { grid-row: span 3; width: 34px; height: 34px; }
.ec-mode small { color: var(--ash); }
.ec-mode.off { opacity: .45; }
.ec-mode .badge { justify-self: start; }
@media (max-width: 900px) { .ec-grid2 { grid-template-columns: 1fr; } .tester-list .modes { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .big-icon .pxi, .ec-spin, .ec-card { animation: none; } }
