/* ============================================================================
   FightFinder — modern fight-poster editorial.
   Near-black canvas with layered atmosphere, bone text, blood-crimson accent,
   gold data numerals. Motion is quick and purposeful. v7
   ========================================================================== */

:root {
  --bg: #0a0c0f;
  --bg-raise: #101318;
  --panel: #12151b;
  --panel-2: #171b22;
  --line: #232833;
  --line-soft: #1c212b;
  --bone: #ece7db;
  --dim: #8f8c7d;
  --faint: #5c5a50;
  --crimson: #e02742;
  --crimson-hot: #ff3d59;
  --crimson-dark: #7e1322;
  --gold: #e8ab5c;
  --gold-soft: rgba(232, 171, 92, .14);
  --win: #62b380;
  --loss: #d05a42;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", ui-sans-serif, sans-serif;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.5), 0 18px 44px -18px rgba(0,0,0,.75);
  --ease: cubic-bezier(.22,.9,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: #2b313d var(--bg); }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 45% at 50% -8%, rgba(224, 39, 66, .07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% -5%, rgba(232, 171, 92, .05) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold); }

::selection { background: var(--crimson-dark); color: #fff; }

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- header */

header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
header::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,39,66,.55) 18%, rgba(224,39,66,.55) 40%, transparent 70%);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 36px; height: 64px;
}
.logo {
  font-family: var(--display);
  font-weight: 900; font-stretch: 125%;
  font-size: 22px; letter-spacing: .04em; text-transform: uppercase;
}
.logo em { font-style: normal; color: var(--crimson); }
.logo:hover { color: var(--bone); }
.logo:hover em { color: var(--crimson-hot); }

nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
nav a, .navlink-btn {
  font-family: var(--display); font-weight: 600; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .13em; font-size: 12px;
  color: var(--dim); padding: 7px 13px; border-radius: 99px;
  border: 1px solid transparent;
  background: none; cursor: pointer;
  transition: all .18s var(--ease);
}
nav a:hover, .navlink-btn:hover { color: var(--bone); background: var(--panel-2); }
nav a.active {
  color: var(--bone); background: var(--panel-2); border-color: var(--line);
  box-shadow: inset 0 -2px 0 var(--crimson);
}

main { max-width: 1240px; margin: 0 auto; padding: 36px 28px 90px; }

/* page-load reveal */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main > * { animation: rise .5s var(--ease) backwards; }
main > *:nth-child(2) { animation-delay: .05s; }
main > *:nth-child(3) { animation-delay: .1s; }
main > *:nth-child(4) { animation-delay: .15s; }
main > *:nth-child(5) { animation-delay: .2s; }
main > *:nth-child(n+6) { animation-delay: .25s; }

/* ------------------------------------------------------------ typography */

h1, h2, h3 {
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: .015em; font-weight: 800; font-stretch: 120%;
}
h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.06; text-wrap: balance; }
h2 {
  font-size: 13px; letter-spacing: .22em; font-weight: 600; font-stretch: 105%;
  color: var(--dim); margin: 42px 0 14px;
  display: flex; align-items: center; gap: 14px;
}
main { counter-reset: section; }
h2 { counter-increment: section; }
h2::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--crimson); letter-spacing: .05em;
  border: 1px solid rgba(224, 39, 66, .35); border-radius: 4px;
  padding: 1px 6px;
}
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.gold { color: var(--gold); }

/* ---------------------------------------------------------------- panels */

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 55%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.panel-pad { padding: 22px 24px; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.stat {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 16px 18px 13px; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.stat:hover { transform: translateY(-2px); border-color: var(--line); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--crimson), transparent 65%);
  opacity: 0; transition: opacity .18s var(--ease);
}
.stat:hover::before { opacity: 1; }
.stat .num {
  font-family: var(--mono); font-size: 27px; font-weight: 500;
  color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat .lbl {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em;
  font-size: 10.5px; font-weight: 600; color: var(--dim); margin-top: 2px;
}

/* ---------------------------------------------------------------- search */

.hero { padding: 54px 0 10px; position: relative; }
.hero::before {
  content: "CAGEFILE"; position: absolute; right: -4%; top: -34px; z-index: -1;
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(110px, 17vw, 240px); line-height: 1; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 231, 219, .055);
  pointer-events: none; user-select: none;
}
.hero h1 { max-width: 780px; }
.hero h1 em {
  font-style: normal; color: var(--crimson);
  text-shadow: 0 0 34px rgba(224, 39, 66, .35);
}
.hero p { color: var(--dim); margin: 14px 0 30px; max-width: 580px; font-size: 16px; }

.searchbox { position: relative; max-width: 580px; }
.searchbox input[type="text"] {
  width: 100%; padding: 16px 18px;
  background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--bone); font-family: var(--mono); font-size: 16px;
  outline: none;
  box-shadow: var(--shadow-1);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.searchbox input[type="text"]::placeholder { color: var(--faint); }
.searchbox input[type="text"]:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(224, 39, 66, .16), var(--shadow-1);
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.search-results:empty { display: none; }
.search-results a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
  transition: background .12s var(--ease);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--panel-2); color: var(--bone); }
.search-results a:hover .rec { color: var(--gold); }
.search-results .rec { font-family: var(--mono); color: var(--dim); font-size: 13px; white-space: nowrap; }
.search-results .nores { padding: 14px 18px; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.fetch-form { display: flex; gap: 12px; padding: 12px 14px; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .13em;
  font-size: 12.5px; padding: 11px 24px;
  color: #fff; border: none; border-radius: 99px;
  background: linear-gradient(180deg, var(--crimson-hot), var(--crimson) 60%);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 6px 18px -6px rgba(224, 39, 66, .55);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), filter .15s var(--ease);
}
.btn:hover {
  color: #fff; filter: brightness(1.08); transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 10px 26px -6px rgba(224, 39, 66, .65);
}
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn-ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--crimson); color: var(--bone);
  background: rgba(224, 39, 66, .07); box-shadow: none;
}

/* ---------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
  font-size: 10.5px; font-weight: 600; color: var(--dim);
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  white-space: nowrap;
}
td {
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr, table tr { transition: background .12s var(--ease); }
tr:hover td { background: rgba(255, 255, 255, .022); }
tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--crimson); }
td.num, th.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

.result-chip {
  display: inline-block; min-width: 46px; text-align: center;
  font-family: var(--display); text-transform: uppercase; font-size: 11px;
  font-weight: 700; letter-spacing: .1em; padding: 3px 10px; border-radius: 99px;
}
.result-chip.win { background: rgba(98, 179, 128, .13); color: var(--win); box-shadow: inset 0 0 0 1px rgba(98,179,128,.25); }
.result-chip.loss { background: rgba(208, 90, 66, .14); color: var(--loss); box-shadow: inset 0 0 0 1px rgba(208,90,66,.28); }
.result-chip.draw, .result-chip.nc { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(232,171,92,.25); }

.weak-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--crimson-hot);
  background: rgba(224, 39, 66, .12); border-radius: 4px; padding: 1px 6px;
  margin-left: 4px;
}

/* ---------------------------------------------------------- score visuals */

.score-cell { display: flex; align-items: center; gap: 12px; }
.score-num {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  color: var(--gold); min-width: 48px; font-variant-numeric: tabular-nums;
}
.score-bar {
  flex: 1; height: 5px; border-radius: 99px;
  background: var(--line-soft); min-width: 64px; overflow: hidden;
}
.score-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--crimson-dark), var(--crimson) 55%, var(--gold));
  box-shadow: 0 0 10px rgba(224, 39, 66, .5);
  animation: grow .7s var(--ease) backwards;
}
@keyframes grow { from { width: 0 !important; } }

.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 19px; line-height: 1; color: var(--faint); padding: 3px 5px;
  border-radius: 6px;
  transition: color .15s var(--ease), transform .15s var(--ease);
}
.star-btn:hover { color: var(--gold); transform: scale(1.25); }
.star-btn.on { color: var(--gold); text-shadow: 0 0 12px rgba(232, 171, 92, .55); }

/* --------------------------------------------------------- fighter header */

.fighter-head {
  display: flex; gap: 30px; align-items: flex-start;
  padding: 30px; margin-top: 10px; position: relative;
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(224, 39, 66, .09), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.fighter-head .ghost-rec {
  position: absolute; right: 18px; bottom: -14px; z-index: 0;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(70px, 9vw, 130px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 171, 92, .1);
  pointer-events: none; user-select: none;
}
.fighter-head > div { position: relative; z-index: 1; }
.fighter-head::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--crimson-hot), var(--crimson-dark));
}
.fighter-head img.mug {
  width: 112px; height: 152px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  filter: grayscale(20%) contrast(1.05);
  box-shadow: var(--shadow-1);
}
.bio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 16px 30px; margin-top: 20px;
}
.bio-grid .lbl {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .16em;
  font-size: 9.5px; font-weight: 600; color: var(--faint);
}
.bio-grid .val { font-family: var(--mono); font-size: 15px; margin-top: 1px; }

.ext-links { display: flex; gap: 16px; margin-top: 18px; }
.ext-links a {
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  border-bottom: 1px dotted var(--faint); padding-bottom: 1px;
}
.ext-links a:hover { color: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------- filters */

.filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 26px;
}
.filter-grid label.lbl, fieldset legend {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: .15em; font-size: 10.5px; font-weight: 600;
  color: var(--dim); margin-bottom: 7px;
}
.filter-grid input[type="number"], .filter-grid input[type="text"],
.filter-grid input[type="password"], .filter-grid select {
  width: 100%; padding: 9px 12px;
  background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--bone); font-family: var(--mono); font-size: 14px;
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.filter-grid input:focus, .filter-grid select:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(224, 39, 66, .14);
}
fieldset { border: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; color: var(--dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px;
  user-select: none;
  transition: all .15s var(--ease);
}
.checks label:hover { border-color: var(--dim); color: var(--bone); }
.checks label:has(input:checked) {
  border-color: rgba(224, 39, 66, .6); color: var(--bone);
  background: rgba(224, 39, 66, .1);
  box-shadow: inset 0 0 0 1px rgba(224, 39, 66, .25);
}
.checks input { accent-color: var(--crimson); }

.toolbar { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.hint { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* --------------------------------------------------------------- misc */

.empty {
  padding: 46px 24px; text-align: center; color: var(--dim);
  border: 1px dashed var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 14px;
  background: rgba(255,255,255,.008);
}
.err { color: var(--loss); font-family: var(--mono); font-size: 13px; }

.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px;
}
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 16px 18px; display: block; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.card::after {
  content: "→"; position: absolute; right: 16px; top: 14px;
  color: var(--faint); font-family: var(--mono);
  opacity: 0; transform: translateX(-6px);
  transition: all .18s var(--ease);
}
.card:hover {
  transform: translateY(-2px); border-color: var(--line);
  box-shadow: var(--shadow-1); color: var(--bone);
}
.card:hover::after { opacity: 1; transform: none; color: var(--crimson); }
.card .name {
  font-family: var(--display); text-transform: uppercase; font-weight: 700;
  font-stretch: 112%; letter-spacing: .03em; font-size: 15.5px;
}
.card .sub { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 3px; }
.card .rec { font-family: var(--mono); color: var(--gold); }

footer {
  border-top: 1px solid var(--line-soft); margin-top: 70px;
  padding: 22px 28px; text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
}

/* --------------------------------------------------------------- login */

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(224, 39, 66, .1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(232, 171, 92, .05), transparent 60%);
}
.login-card {
  width: 100%; max-width: 400px;
  padding: 34px 32px 30px;
  animation: rise .6s var(--ease) backwards;
}
.login-card .logo { font-size: 32px; text-align: center; display: block; margin-bottom: 6px; }
.login-card .tag {
  text-align: center; color: var(--faint); font-family: var(--mono);
  font-size: 12px; margin-bottom: 26px;
}

@media (max-width: 720px) {
  .fighter-head { flex-direction: column; }
  .header-inner { gap: 14px; padding: 0 16px; }
  nav a, .navlink-btn { padding: 6px 9px; letter-spacing: .08em; }
  main { padding: 24px 16px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}


/* --------------------------------------------------------------- avatars */

.avatar-box {
  position: relative; width: 38px; height: 38px; flex: none;
  display: inline-block; vertical-align: middle;
  border-radius: 9px; overflow: hidden;
  background: var(--bg-raise); border: 1px solid var(--line-soft);
}
.avatar-box i {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--faint);
}
.avatar-box img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top; filter: grayscale(15%) contrast(1.05);
}

.name-cell { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------------------ form strip */

.form-strip { display: inline-flex; gap: 2.5px; align-items: center; }
.form-strip i {
  width: 7px; height: 15px; border-radius: 2px; background: var(--line);
}
.form-strip i.win { background: var(--win); }
.form-strip i.loss { background: var(--loss); }
.form-strip i.draw, .form-strip i.nc { background: var(--gold); }

/* -------------------------------------------------- score component bars */

.components { display: inline-flex; gap: 2.5px; }
.components span {
  width: 7px; height: 20px; border-radius: 2px;
  background: var(--line-soft); position: relative; overflow: hidden;
}
.components span i {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--gold), var(--crimson));
  display: block; border-radius: 2px;
}

/* ------------------------------------------------------------ empty state */

.empty::before {
  content: ""; display: block; width: 110px; height: 110px;
  margin: 0 auto 18px; border-radius: 14px; opacity: .5;
  background: url("/static/img/octagon.jpg") center / cover;
}

/* ------------------------------------------------------- arena atmospheres */

.login-wrap {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(224, 39, 66, .12), transparent 60%),
    linear-gradient(180deg, rgba(10, 12, 15, .72), rgba(10, 12, 15, .95) 70%),
    url("/static/img/arena.jpg") center 35% / cover no-repeat fixed;
}

/* ---------------------------------------------------------------- landing */

.landing main { padding-top: 0; }
.land-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, .55), rgba(10, 12, 15, .82) 60%, var(--bg) 96%),
    url("/static/img/arena.jpg") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
}
.land-hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 110px 28px 96px;
}
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.land-hero h1 {
  font-size: clamp(44px, 7vw, 88px); margin: 18px 0 0;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .7);
}
.land-hero h1 em {
  font-style: normal; color: var(--crimson-hot);
  text-shadow: 0 0 50px rgba(224, 39, 66, .5);
}
.lede {
  max-width: 620px; margin: 22px 0 34px; font-size: 17.5px;
  line-height: 1.65; color: #cfcabd;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { font-size: 14px; padding: 15px 34px; }

.card.feature { padding: 22px 24px 24px; }
.card.feature:hover { transform: none; }
.card.feature::after { content: none; }
.card.feature .fnum {
  font-family: var(--mono); font-size: 11px; color: var(--crimson);
  border: 1px solid rgba(224, 39, 66, .35); border-radius: 4px;
  display: inline-block; padding: 1px 6px; margin-bottom: 12px;
}
.card.feature .name { font-size: 17px; margin-bottom: 8px; }
.card.feature p { color: var(--dim); font-size: 14px; line-height: 1.6; }
.card.feature b { color: var(--bone); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.step {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 18px; font-size: 14.5px; display: flex; gap: 12px; align-items: baseline;
}
.step .mono { font-size: 18px; }


.trial-chip {
  font-family: var(--mono) !important; font-size: 11.5px !important;
  color: var(--gold) !important; letter-spacing: .04em !important;
  border: 1px solid rgba(232, 171, 92, .4) !important; border-radius: 99px;
  text-transform: none !important;
}
.trial-chip:hover { background: var(--gold-soft) !important; }


/* ------------------------------------------------------------- stack bars */

.stackbar {
  display: flex; gap: 2px; height: 26px; border-radius: 6px; overflow: hidden;
}
.stackbar span {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: #fff; min-width: 22px;
}
.stackbar .ko { background: linear-gradient(180deg, var(--crimson-hot), var(--crimson)); }
.stackbar .sub { background: linear-gradient(180deg, #f2bd74, var(--gold)); color: #201503; }
.stackbar .dec { background: #3a4150; }
.stackbar .oth { background: var(--line-soft); color: var(--dim); }
.stackbar.dimmed { opacity: .78; height: 18px; }
.stackbar.dimmed span { font-size: 11px; }


.read-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.read-list li { padding-left: 20px; position: relative; font-size: 14.5px; line-height: 1.55; }
.read-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 2px; background: var(--crimson);
}
