/* ==========================================================================
   Arknights: Endfield Tracker — the Endfield layer over the network stylesheet.

   style.css / responsive.css are THE FINALS tracker's design system, copied
   as-is (nav, drawer, footer, cards, KPIs, tables, tabs, forms): the site
   belongs to the same family. This file re-tokens the brand — an industrial
   signal yellow on neutral blacks — and adds the components the database,
   the player profiles and the companion history need.
   ========================================================================== */

:root {
  --acc: #f5d400;
  --acc-hi: #ffe44a;
  --acc-lo: #cfae00;
  --acc-ink: #141100;
  --acc-a08: #f5d40014;
  --acc-a16: #f5d40029;
  --acc-a30: #f5d4004d;
  --signal: #20d6ff;
}

/* Moving between pages: the page cross-fades while the header stays put
   (same-origin view transitions; browsers without them just navigate). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }

/* The yellow accent needs dark ink to stay legible. */
.btn-primary, .btn-primary:hover { color: var(--acc-ink); }
.arzb-signin { color: var(--acc-ink) !important; }
.skip-link { color: var(--acc-ink); }
.btn.is-danger:hover { color: var(--down); border-color: #ff6b5755; }

.ef-body > * + * { margin-top: 20px; }
.ef-body > .sec-head { margin-top: 36px; }
.ef-body > .sec-head:first-child { margin-top: 0; }
.stack > * + * { margin-top: 20px; }
.ef-h3 { margin: 16px 0 8px; font: 700 .78rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ef-h3:first-child { margin-top: 0; }
.small { font-size: .78rem; }
code { font-family: var(--f-mono); font-size: .8em; background: var(--s3); padding: 1px 5px; border-radius: 4px; }
.ef-flash { animation: efFlash 2.4s var(--ease); }
@keyframes efFlash { 0%, 40% { box-shadow: 0 0 0 2px var(--acc); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ---------------------------------------------------------------- banner -- */
.ef-banner { background: var(--bg-soft); }
.ef-banner::before { display: none; }
.ef-banner .banner-inner { position: relative; }
.ef-kicker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--acc); font: 600 .75rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.ef-kicker .material-icons { font-size: 16px; }
.ef-banner h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.02; }
.ef-title-ic { border-radius: 12px; }
.ef-tabs { margin-top: 22px; }
.ef-art { position: absolute; right: var(--gut); top: 0; bottom: 0; width: min(46%, 520px); margin: 0; pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.ef-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; opacity: .55; }
.ef-banner.has-art .banner-inner { min-height: 0; }
.ef-kicker .ef-elem, .ef-kicker .ef-chip { text-transform: none; letter-spacing: 0; }
/* an operator's numbers at max level, under the name */
.ef-bstats { display: inline-flex; flex-wrap: wrap; margin-top: 4px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--s1) 85%, transparent); backdrop-filter: blur(6px); overflow: hidden; }
.ef-bstats > div { display: grid; gap: 4px; padding: 10px 18px; min-width: 0; }
.ef-bstats > div + div { border-left: 1px solid var(--line); }
.ef-bstats b { font: 700 1.35rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-bstats span { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ef-bstats-lv { background: var(--s2); }

/* ------------------------------------------------------------------ home -- */
.ef-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding: 64px 0 40px; }
.ef-hero-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.ef-hero-title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); line-height: .98; max-width: 16ch; }
.ef-hero-lead { margin-top: 14px; max-width: 62ch; color: var(--ink-2); line-height: 1.6; }
.ef-hero-note { margin-top: 10px; }
.ef-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.ef-hero-main { min-width: 0; }

/* The roster panel at the right of the UID search. */
.ef-hero-panel { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 60px -30px #000; overflow: hidden; }
.ef-hp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ef-hp-kicker { display: inline-flex; align-items: center; gap: 7px; font: 700 .72rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ef-hp-kicker .material-icons { font-size: 17px; color: var(--acc); }
.ef-hp-head a { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-3); font-size: .76rem; font-weight: 600; transition: color .15s; }
.ef-hp-head a:hover { color: var(--ink); }
.ef-hp-head a .material-icons { font-size: 15px; }
.ef-fan { display: flex; justify-content: center; padding: 6px 0 2px; }
.ef-fan-item { position: relative; width: 70px; height: 70px; flex: none; margin-left: -16px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ec, #888) 24%, var(--s3)), var(--s2));
  box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px color-mix(in srgb, var(--rc) 70%, transparent); transition: transform .18s var(--ease); z-index: calc(10 - var(--i)); }
.ef-fan-item:first-child { margin-left: 0; }
.ef-fan-item:nth-child(even) { transform: translateY(8px); }
.ef-fan-item:hover { transform: translateY(-4px) scale(1.06); z-index: 20; }
.ef-fan-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-hp-elements { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ef-hp-elements li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: .78rem; }
.ef-hp-el { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.ef-hp-el::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ef-hp-bar { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.ef-hp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); opacity: .85; }
.ef-hp-elements b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.ef-hp-rarity { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; height: 30px; }
/* equal tiles, stars and count side by side */
.ef-hp-rarity span { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; border-radius: 6px; line-height: 1;
  background: color-mix(in srgb, var(--rc) 14%, var(--s2)); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent); }
.ef-hp-rarity em { display: inline-flex; align-items: center; gap: 1px; font: 700 .78rem/1 var(--f-ui); font-style: normal; color: var(--rc); }
.ef-hp-rarity em i { font-style: normal; font-size: .72rem; line-height: 1; }
.ef-hp-rarity b { font: 700 .82rem/1 var(--f-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-hp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 14px; }
.ef-hp-stats a { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; transition: color .15s; }
.ef-hp-stats a + a { border-left: 1px solid var(--line); padding-left: 14px; }
.ef-hp-stats b { font: 700 1.45rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-hp-stats span { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ef-hp-stats a:hover b { color: var(--acc); }

.ef-uid-form { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 22px; padding: 6px 6px 6px 14px; background: var(--s1);
  border: 1px solid var(--line-3); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.ef-uid-form:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-a16); }
.ef-uid-form > .material-icons { color: var(--ink-3); }
.ef-uid-form input { flex: 1; min-width: 0; height: 40px; background: none; border: 0; color: var(--ink); font: 500 1rem var(--f-mono); outline: none; }
.ef-uid-form.is-big input { height: 48px; font-size: 1.15rem; }
.ef-uid-form.is-big .btn { height: 48px; padding: 0 22px; }
.card .ef-uid-form { margin-top: 0; }

.ef-db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ef-db-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, background .15s; }
.ef-db-tile:hover { border-color: var(--acc-a30); background: var(--s2); }
.ef-db-tile .material-icons { grid-row: span 2; font-size: 26px; color: var(--acc); align-self: center; }
.ef-cta .card-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 28px; }
.ef-cta-copy { min-width: 0; flex: 1 1 420px; }
.ef-cta h2 { font-family: var(--f-display); text-transform: uppercase; font-size: 1.6rem; }
.ef-cta p { margin: 6px 0 0; max-width: 70ch; }
.ef-cta .btn { flex: none; }

/* quick picks under the UID search, like thefinals' hero: this browser's recent lookups */
.ef-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }
.ef-recent-label { color: var(--ink-3); font: 600 .66rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.ef-recent-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ef-recent-chip { display: inline-flex; align-items: center; height: 26px; max-width: 180px; padding: 0 9px; border-radius: 6px; background: var(--s2); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: .76rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s, border-color .15s; }
.ef-recent-chip:hover { color: var(--ink); border-color: var(--line-3); }

/* home: a fixed number of columns so the 12 operators fill whole rows */
.ef-op-grid.is-home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ef-op-tags { flex-wrap: nowrap; }
.ef-op-tags .ef-elem, .ef-op-tags .ef-chip { padding: 2px 7px; font-size: .68rem; white-space: nowrap; }

.ef-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ef-player-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.ef-player-card:hover { border-color: var(--acc-a30); }
.ef-player-name { font-weight: 700; color: var(--ink); }
.ef-player-lv { font: 600 .78rem var(--f-mono); color: var(--acc); }

/* ------------------------------------------------------------ primitives -- */
.ef-thumb { display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 8px; background: var(--s3); overflow: hidden; }
.ef-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ef-thumb.is-empty { background: repeating-linear-gradient(135deg, var(--s3) 0 6px, var(--s2) 6px 12px); }
.ef-thumb.is-round { border-radius: 50%; }
.ef-thumb-cell { display: flex; align-items: center; gap: 10px; }
.ef-stars { color: var(--rc); letter-spacing: -1px; font-size: .85rem; white-space: nowrap; }
.ef-elem { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--c, var(--ink-2)); background: color-mix(in srgb, var(--c, #888) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #888) 30%, transparent); }
.ef-elem::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.ef-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--s3); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ef-chip.is-acc { color: var(--acc); border-color: var(--acc-a30); background: var(--acc-a08); }
.ef-chip.is-ok { color: var(--up); border-color: #36d67f40; background: var(--up-a12); }
.ef-chip.is-bad { color: var(--down); border-color: #ff6b5740; background: var(--down-a12); }
.ef-kv { display: grid; gap: 0; }
.ef-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ef-kv > div:last-child { border-bottom: 0; }
.ef-kv dt { flex: none; color: var(--ink-3); }
.ef-kv dd { min-width: 0; margin: 0; text-align: right; color: var(--ink); overflow-wrap: anywhere; }
.ef-split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.ef-list { padding-left: 18px; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.ef-prose { line-height: 1.65; color: var(--ink-2); font-size: .9rem; }
.ef-prose + .ef-prose { margin-top: 10px; }
.ef-rich { line-height: 1.6; color: var(--ink-2); font-size: .88rem; }
.rt { font-weight: 600; }
.rt-term { border-bottom: 1px dotted currentColor; }
.ef-loading { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.ef-loading .material-icons { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ef-note .card-body { color: var(--ink-2); }
/* Text blocks and actions inside a card keep their breathing room. */
.card-body > p:not([class]) { line-height: 1.6; color: var(--ink-2); }
.card-body > p + p { margin-top: 10px; }
.card-body > p + .btn, .card-body > p + .row, .card-body > ul + .row, .card-body > dl + .btn { margin-top: 14px; }
.card-body > .row { flex-wrap: wrap; }
.empty-state .ef-signin-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; max-width: none; margin-top: 14px; }
.empty-state .ef-signin-note .btn { margin-top: 0; }

/* filters: the companion's period pills */
.ef-filters { display: grid; gap: 10px; }
.ef-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ef-filter-label { min-width: 72px; color: var(--ink-3); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ef-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .78rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.ef-pill:hover { color: var(--ink); border-color: var(--line-3); }
.ef-pill.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.ef-search-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: var(--s1); border: 1px solid var(--line-3); border-radius: 12px; }
.ef-search-form input { flex: 1; min-width: 0; height: 40px; background: none; border: 0; color: var(--ink); font-size: .95rem; outline: none; }
.ef-search-form .material-icons { color: var(--ink-3); }
.ef-search-form.is-inline { max-width: 520px; }
/* the database toolbar (render.js toolbar), after thefinals' items toolbar */
.ef-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ef-toolbar .seg { flex-wrap: wrap; }
.ef-toolbar .seg a { height: 30px; }
.ef-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ef-tb-q { position: relative; flex: 1 1 260px; min-width: 200px; }
.ef-tb-q > .material-icons { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; pointer-events: none; }
.ef-tb-q .input { padding: 0 46px 0 38px; }
.ef-tb-q .input::-webkit-search-cancel-button { display: none; }
.ef-tb-go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: var(--acc); color: var(--acc-ink); transition: background .15s; }
.ef-tb-go:hover { background: var(--acc-hi); }
.ef-tb-go .material-icons { font-size: 18px; }
.ef-tb-q.is-big { max-width: 760px; }
.ef-tb-q.is-big .input { height: 50px; font-size: .95rem; padding-right: 54px; }
.ef-tb-q.is-big .ef-tb-go { width: 40px; height: 40px; right: 5px; border-radius: 9px; }
.ef-tb-sel { flex: 0 1 158px; min-width: 128px; }
/* The native select looks like the custom one that replaces it (app.js
   enhanceSelects), so the swap after load is invisible. */
.ef-tb-sel select { width: 100%; height: 38px; padding: 0 34px 0 12px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line-2); color: var(--ink);
  font: 500 .8125rem var(--f-ui); -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%238a8a93' d='M12 15.4 6.6 10l1.4-1.4 4 4 4-4 1.4 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.ef-tb-sel .sel { width: 100%; }
.ef-tb-reset { height: 38px; }
.ef-body > .ef-tb-count { margin-top: 12px; }
.ef-body > .ef-tb-count + * { margin-top: 12px; }
.ef-tb-count { color: var(--ink-3); font-size: .8rem; }
.ef-tb-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* tables */
.ef-table td, .ef-table th { vertical-align: middle; }
.ef-table.is-clickable tbody tr { cursor: pointer; }
.ef-table.is-clickable tbody tr:hover td { background: var(--s2); }
.ef-params-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* ------------------------------------------------------------ operators -- */
.ef-op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ef-op-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; overflow: hidden; transition: border-color .15s, transform .15s; }
.ef-op-card:hover { border-color: color-mix(in srgb, var(--rc) 50%, transparent); transform: translateY(-2px); }
.ef-op-pic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ec, #888) 22%, var(--s3)), var(--s2)); overflow: hidden; }
.ef-op-pic img { width: 100%; height: 100%; object-fit: cover; }
.ef-op-name { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.2; }
.ef-op-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

.ef-skill { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.ef-skill:first-child { padding-top: 0; }
.ef-skill:last-child { border-bottom: 0; padding-bottom: 0; }
.ef-skill-body { min-width: 0; flex: 1; }
.ef-skill-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ef-skill-head b { color: var(--ink); font-size: .95rem; }
.ef-skill-head .material-icons { font-size: 14px; vertical-align: -2px; }
.ef-params { margin-top: 10px; }
.ef-params summary { cursor: pointer; color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.ef-params .table-wrap { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.ef-potentials { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ef-potentials li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.ef-potentials li b { display: block; color: var(--ink); margin-bottom: 3px; }
.ef-pot-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--acc-a08); border: 1px solid var(--acc-a16); color: var(--acc); font: 700 .9rem var(--f-display); }
.ef-tiers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ef-tiers li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.ef-tiers li:first-child { padding-top: 0; border-top: 0; }
.ef-tier-n em { margin-left: 3px; color: var(--ink-2); font-style: normal; font-size: .8rem; text-transform: none; letter-spacing: 0; }
.ef-tiers li b { display: block; color: var(--ink); font-size: .84rem; margin-bottom: 2px; }
.ef-tier-n { font: 700 .66rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.ef-subnav { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin-bottom: 4px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; }
.ef-subnav a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: .8rem; font-weight: 600; transition: background .15s, color .15s; }
.ef-subnav a:hover { background: var(--s2); color: var(--ink); }
.card[id] { scroll-margin-top: calc(var(--nav-h) + 70px); }
/* game text: labelled parts instead of shouted labels and bare line breaks (render.js gameText) */
.ef-text { display: grid; gap: 8px; color: var(--ink-2); font-size: .88rem; line-height: 1.6; }
.ef-text p { margin: 0; }
.ef-text-part { display: grid; gap: 2px; }
.ef-text-part + .ef-text-part { padding-top: 8px; border-top: 1px dashed var(--line); }
.ef-text-k { color: var(--ink-3); font: 700 .64rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.ef-potentials .ef-text { margin-top: 2px; }
.ef-tiers .ef-text { font-size: .85rem; }
.ef-fixed { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ef-fixed li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 9px; border-radius: 6px; background: var(--s2); border: 1px solid var(--line); color: var(--ink-3); font-size: .74rem; }
.ef-fixed b { padding: 1px 6px; border-radius: 4px; background: var(--s3); color: var(--ink); font: 700 .72rem var(--f-mono); }
.ef-params summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; }
.ef-params summary::-webkit-details-marker { display: none; }
.ef-params summary .material-icons { font-size: 17px; transition: transform .2s; }
.ef-params[open] summary .material-icons { transform: rotate(180deg); }
.ef-params summary:hover { color: var(--ink); }
.ef-params-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--s1); }
.ef-params-table td { font-family: var(--f-mono); font-size: .76rem; }
/* the personnel record and the dossier */
.ef-record-text { display: grid; gap: 12px; max-width: 78ch; }
.ef-record-text p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.7; }
.ef-record-sign { margin-top: 14px; color: var(--ink-3); font-size: .8rem; font-style: italic; }
.ef-dossier-note { margin-top: 10px; color: var(--ink-3); font-size: .82rem; font-style: italic; line-height: 1.5; }
.ef-dossier-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ef-dossier-block .ef-h3 { margin: 0 0 6px; }
.ef-dossier-block p { color: var(--ink-2); line-height: 1.5; }
.ef-ratings { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.ef-ratings li { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: .8rem; }
.ef-dossier-remark { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s2); color: var(--ink-2); font-size: .8rem; font-style: italic; line-height: 1.5; overflow-wrap: anywhere; }
.ef-ratings li > span { min-width: 0; }
.ef-ratings b { flex: none; max-width: 60%; white-space: normal; text-align: right; padding: 2px 8px; border-radius: 5px; background: var(--s3); border: 1px solid var(--line-2); color: var(--ink); font-size: .72rem; }
.ef-ratings b[data-rating="excellent"], .ef-ratings b[data-rating="outstanding"] { color: var(--up); border-color: #36d67f40; background: var(--up-a12); }
.ef-ratings b[data-rating="flawed"], .ef-ratings b[data-rating="poor"] { color: var(--down); border-color: #ff6b5740; background: var(--down-a12); }

/* gear */
.ef-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ef-set, .ef-result, .ef-item, .ef-piece { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; min-width: 0; }
.ef-set:hover, .ef-result:hover, .ef-item:hover, .ef-piece:hover { border-color: var(--acc-a30); }
.ef-set > span, .ef-result > span, .ef-item > span, .ef-piece > span { display: flex; flex-direction: column; min-width: 0; }
.ef-set > span > b, .ef-result > span > b, .ef-item > span > b, .ef-piece > span > b { color: var(--ink); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.ef-item { background: linear-gradient(100deg, color-mix(in srgb, var(--rc) 12%, var(--s1)), var(--s1) 55%); }
.ef-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ef-results { display: grid; gap: 8px; }
.ef-piece-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ef-piece { align-items: flex-start; }
.ef-piece > span:not(.ef-thumb) { flex: 1; gap: 2px; }
.ef-piece .ef-stats b { overflow: visible; white-space: nowrap; }
.ef-piece .ef-stats li span { min-width: 0; }
.ef-piece .ef-stats { margin-top: 6px; }
.ef-stats { list-style: none; padding: 0; margin: 0; display: grid; }
.ef-stats li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ef-stats li:last-child { border-bottom: 0; }
.ef-stats li span { color: var(--ink-3); }
.ef-stats li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-stats.is-compact li { padding: 3px 0; font-size: .76rem; }

/* recipes */
.ef-recipes td { vertical-align: middle; height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; }
.ef-rc-name { color: var(--ink); font-weight: 600; min-width: 160px; }
.ef-rc-time { white-space: nowrap; color: var(--ink-2); }
.ef-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ef-flow-arrow { font-size: 18px; color: var(--ink-3); }
.ef-io-list { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ef-io { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); white-space: nowrap; font-size: .8rem; color: var(--ink-2); }
a.ef-io:hover { border-color: var(--line-3); color: var(--ink); }
.ef-io .ef-thumb { border-radius: 50%; }
.ef-io b { color: var(--acc); font-weight: 700; font-family: var(--f-mono); font-size: .74rem; }

/* --------------------------------------------------------------- players -- */
/* the head of a player page, like thefinals' profile banner */
.ef-phero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 260px at 12% 0%, #ffffff0a, transparent 70%), var(--bg-soft); }
.ef-phero-inner { padding-top: 32px; padding-bottom: 30px; }
.ef-phero-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; }
.ef-phero-av { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 22px; overflow: hidden; background: var(--s2); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -22px #000; }
.ef-phero-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ef-phero-av.is-empty .material-icons { font-size: 46px; color: var(--ink-4, var(--ink-3)); }
.ef-phero-id { min-width: 0; }
.ef-phero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ef-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--s2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .74rem; font-weight: 600; }
.ef-badge .material-icons { font-size: 15px; }
.ef-badge.is-mono { font-family: var(--f-mono); }
.ef-badge.is-acc { color: var(--up); border-color: #36d67f40; background: var(--up-a12); }
.ef-phero h1 { font-family: var(--f-display); font-weight: 800; text-transform: none; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1; letter-spacing: .01em; overflow-wrap: anywhere; }
.ef-phero-sig { margin-top: 8px; color: var(--ink-2); font-size: .95rem; font-style: italic; }
.ef-phero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; color: var(--ink-3); font-size: .8rem; }
.ef-phero-meta b { color: var(--ink-2); font-family: var(--f-mono); font-weight: 600; }
.ef-phero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ef-phero-actions .row { gap: 8px; }
.ef-icon-btn { width: 36px; padding: 0; }
.ef-icon-btn .material-icons { font-size: 18px; }
.ef-icon-btn.is-done { color: var(--up); border-color: #36d67f40; }

.ef-profile > * + * { margin-top: 20px; }
.ef-kpi-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ef-kpi-strip .ef-kpi { padding: 16px 18px; background: var(--s1); }
.ef-kpi-strip .ef-kpi-v { font-size: 1.9rem; line-height: 1; }
.ef-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--line); }
.ef-kpis-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ef-kpis > .ef-kpi + .ef-kpi { border-left: 1px solid var(--line); }
.ef-kpi { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; }
.ef-kpi-v { font: 700 1.5rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-kpi-l { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ef-kpi-l .material-icons { font-size: 15px; }

/* sidebar at the left, the operators at the right; on narrow screens the operators come first */
.ef-pgrid { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: 'side main'; gap: 20px; align-items: start; }
.ef-pgrid-main { grid-area: main; min-width: 0; }
.ef-pgrid-side { grid-area: side; min-width: 0; }
.ef-regions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ef-regions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; color: var(--ink-2); font-size: .84rem; }
.ef-regions b { color: var(--ink); font: 600 .8rem var(--f-mono); }
.ef-regions i { position: relative; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.ef-regions i::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 2px; background: var(--signal); opacity: .75; }
.ef-side-note { margin-top: 10px; }
.ef-side-btn { width: 100%; margin-top: 14px; }

.ef-pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ef-pop { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }

.ef-pop:hover { border-color: var(--line-3); }
.ef-pop-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ef-pop .ef-op-pic { width: 60px; height: 60px; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc) 60%, transparent); }
.ef-pop-id { display: grid; gap: 5px; min-width: 0; }
.ef-pop-name { color: var(--ink); font-weight: 700; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-pop-name:hover { color: var(--acc); }
.ef-pop-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ef-pop-lv { display: grid; justify-items: end; line-height: 1; }
.ef-pop-lv b { font: 700 1.6rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-pop-lv span { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.ef-pop-lv em { margin-top: 6px; padding: 2px 6px; border-radius: 4px; font: 700 .7rem var(--f-mono); font-style: normal; color: var(--acc); background: var(--acc-a08); border: 1px solid var(--acc-a16); }
.ef-pop-nobuild { margin: 0; }
.ef-pop-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-3); }
.ef-pop-foot .material-icons { font-size: 15px; }
.ef-pop-foot a { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-weight: 600; }
.ef-pop-foot a:hover { color: var(--acc); }

/* a player's operator: portrait + level strip */
.ef-pophero { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; }
.ef-pophero-art { margin: 0; min-height: 200px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--ec, #888) 28%, var(--s3)), var(--s1)); border-right: 1px solid var(--line); }
.ef-pophero-art { display: grid; place-items: center; padding: 18px; }
.ef-pophero-art img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px color-mix(in srgb, var(--rc) 70%, transparent); }
.ef-pophero-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 20px 22px; }
.ef-pophero-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ef-pophero-stats { display: flex; gap: 0; }
.ef-pophero-stats > div { display: grid; gap: 4px; padding: 0 22px; }
.ef-pophero-stats > div:first-child { padding-left: 0; }
.ef-pophero-stats > div + div { border-left: 1px solid var(--line); }
.ef-pophero-stats b { font: 700 2.1rem/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ef-pophero-stats span { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* a build: weapon row, gear grid, skill levels */
.ef-build { display: grid; gap: 10px; }
.ef-bw { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); min-width: 0; }
.ef-bw-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ef-bw-body a, .ef-bw-body > span:first-child { color: var(--ink); font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-bw-body a:hover { color: var(--acc); }
.ef-bw-meta { font: 500 .72rem var(--f-mono); color: var(--ink-3); }
.ef-bw-tag { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ef-bg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ef-bg li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px 5px 5px; border-radius: 8px; background: var(--s1); border: 1px solid var(--line); font-size: .76rem; }
.ef-bg li a, .ef-bg li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ef-bg li a:hover { color: var(--acc); }
.ef-bs { display: flex; flex-wrap: wrap; gap: 5px; }
.ef-skill-lv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 6px; background: var(--s1); border: 1px solid var(--line); font-size: .72rem; color: var(--ink-3); }
.ef-skill-lv b { min-width: 20px; padding: 1px 5px; border-radius: 4px; text-align: center; font: 700 .72rem var(--f-mono); color: var(--ink); background: var(--s3); }
.ef-build.is-big .ef-bg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ef-build.is-big .ef-bg li { padding: 7px 10px 7px 7px; font-size: .82rem; }

.ef-history { list-style: none; margin: 0; padding: 0; display: grid; }
.ef-history li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.ef-history li:last-child { border-bottom: 0; }
.ef-hist-when { color: var(--ink-3); font-size: .76rem; }
.ef-hist-what a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); }
.ef-medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.ef-medal { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; text-align: center; color: var(--ink-2); }
.ef-medal > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .72rem; line-height: 1.3; }

/* -------------------------------------------------------------- accounts -- */
.ef-acc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ef-acc-head h3 { font-size: 1.05rem; }
.ef-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.ef-verify { margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--acc-a30); border-radius: var(--r); background: var(--acc-a08); display: grid; gap: 8px; font-size: .86rem; }
.ef-code { font-size: 1rem; padding: 3px 8px; color: var(--acc); background: var(--s1); border: 1px solid var(--acc-a30); letter-spacing: .06em; }
.ef-acc-actions { margin-top: 12px; flex-wrap: wrap; }
.ef-acc + .ef-acc { margin-top: 12px; }

/* ------------------------------------------------------------- companion -- */
.ef-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ef-bars li { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: .82rem; }
.ef-bar { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.ef-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-lo), var(--acc)); border-radius: 4px; }
.ef-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-bar-v { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ef-feature { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ef-feature li { display: flex; gap: 12px; }
.ef-feature li .material-icons { color: var(--acc); }
.ef-feature li div { display: flex; flex-direction: column; gap: 2px; }
.ef-feature li span { color: var(--ink-2); font-size: .86rem; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
  .ef-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ef-op-grid.is-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ef-hero-panel { max-width: 640px; }
  .ef-split { grid-template-columns: minmax(0, 1fr); }
  .ef-db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef-art { width: 60%; opacity: .6; }
  .ef-pgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'side'; }
  .ef-pgrid-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .ef-pgrid-side > * + * { margin-top: 0; }
}
@media (max-width: 860px) {
  .ef-phero-row { grid-template-columns: auto minmax(0, 1fr); }
  .ef-phero-actions { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
  .ef-kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ef-kpi-strip .ef-kpi:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .ef-hero { padding: 40px 0 28px; }
  .ef-hero-panel { padding: 16px; }
  .ef-op-grid.is-home { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ef-op-grid.is-home .ef-op-card { padding: 10px 4px; }
  .ef-op-grid.is-home .ef-op-pic { width: 64px; height: 64px; }
  .ef-op-grid.is-home .ef-op-tags { flex-wrap: wrap; }
  .ef-op-grid.is-home .ef-op-name { font-size: .8rem; }
  .ef-cta .card-body { padding: 18px; }
  .ef-cta .btn { width: 100%; justify-content: center; }
  /* Recipes: one stacked block per recipe instead of a wide table. */
  .ef-recipes thead { display: none; }
  .ef-recipes, .ef-recipes tbody, .ef-recipes tr, .ef-recipes td { display: block; width: 100%; }
  .ef-recipes tr { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ef-recipes td { padding: 0 !important; border: 0 !important; height: auto; }
  .ef-recipes .ef-rc-name { padding-right: 48px !important; margin-bottom: 8px; }
  .ef-recipes .ef-rc-time { position: absolute; top: 12px; right: 14px; width: auto; }
  .ef-recipes td:nth-child(3):not(.ef-rc-time) { margin-top: 6px; font-size: .78rem; color: var(--ink-3); }
  .ef-pophero { grid-template-columns: minmax(0, 1fr); }
  .ef-pophero-art { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ef-pophero-art img { width: 120px; height: 120px; }
  .ef-build.is-big .ef-bg { grid-template-columns: minmax(0, 1fr); }
  .ef-pophero-stats > div { padding: 0 14px; }
  .ef-bg { grid-template-columns: minmax(0, 1fr); }
  .ef-pop-grid { grid-template-columns: minmax(0, 1fr); }
  .ef-fan-item { width: 58px; height: 58px; margin-left: -12px; }
  .ef-hp-stats b { font-size: 1.2rem; }
  .ef-uid-form { flex-wrap: wrap; padding: 8px; }
  .ef-uid-form > .material-icons { display: none; }
  .ef-uid-form input { flex-basis: 100%; }
  .ef-uid-form .btn { width: 100%; justify-content: center; }
  .ef-db-grid { grid-template-columns: minmax(0, 1fr); }
  .ef-op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef-history li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ef-bars li { grid-template-columns: minmax(0, 1fr) 60px; }
  .ef-bars .ef-bar { grid-column: 1 / -1; grid-row: 2; }
  .ef-profile-actions { align-items: flex-start; }
  .ef-kpis > .ef-kpi + .ef-kpi { border-left: 0; }
  .ef-filter-label { flex-basis: 100%; }
  .ef-toolbar .seg { width: 100%; flex-wrap: wrap; }
  .ef-toolbar .seg a { flex: 1 1 auto; justify-content: center; }
  .ef-tb-q { flex-basis: 100%; min-width: 0; }
  .ef-tb-sel { flex: 1 1 140px; min-width: 0; }
  .ef-phero-inner { padding-top: 22px; padding-bottom: 22px; }
  .ef-phero-row { gap: 14px; }
  .ef-phero-av { width: 76px; height: 76px; border-radius: 16px; }
  .ef-phero h1 { font-size: 1.9rem; }
  .ef-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef-kpi-strip .ef-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ef-kpi-strip .ef-kpi { padding: 12px 14px; }
  .ef-kpi-strip .ef-kpi-v { font-size: 1.5rem; }
  .ef-text-part + .ef-text-part { padding-top: 6px; }
  .ef-art { display: none; }
  .ef-bstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .ef-bstats > div { padding: 8px 10px; border-top: 1px solid var(--line); }
  .ef-bstats > div:nth-child(-n+3) { border-top: 0; }
  .ef-bstats > div:nth-child(3n+1) { border-left: 0; }
  .ef-bstats b { font-size: 1.1rem; }
}

/* the player search under the home title: players on Arenyze by name or UID */
.ef-uid-form { position: relative; }
.ef-uid-form input::-webkit-search-cancel-button { display: none; }
.s-av.s-img { overflow: hidden; background: var(--s3); }
.s-av.s-img img { width: 100%; height: 100%; object-fit: cover; }
.s-av.is-round { border-radius: 50%; }
.s-av.s-kind .material-icons { font-size: 19px; color: var(--ink-2); }


/* ==========================================================================
   THE FINALS language (2026-10): flat slate cards without outlines, italic
   condensed titles and numbers, leaning tags, zebra rows — and no coloured
   edge stripes: a card's colour shows as a tint.
   ========================================================================== */
.drawer-link.is-active, .li.is-tier, .li[style*="--tier"] { box-shadow: none; }

/* headings and big numbers */
.ef-banner { background: transparent; }
.ef-kicker { font: 700 .9rem var(--f-display); letter-spacing: .12em; }
.ef-banner h1, .ef-hero-title, .ef-phero h1 { font-style: italic; font-weight: 800; }
.ef-hero-title { font-size: clamp(2.8rem, 6.4vw, 4.6rem); line-height: .88; }
.ef-cta h2 { font-style: italic; font-weight: 800; font-size: 2rem; }
.ef-h3 { font: 700 .9rem var(--f-display); letter-spacing: .08em; color: var(--ink-3); }
.ef-kpi-l, .ef-bstats span, .ef-hp-stats span, .ef-pop-lv span, .ef-pophero-stats span, .ef-text-k, .ef-tier-n, .ef-filter-label, .ef-bw-tag {
  font: 700 .74rem var(--f-display); letter-spacing: .08em; }
.ef-kpi-v, .ef-kpi-strip .ef-kpi-v { font: 700 2rem/1 var(--f-display); }
.ef-pophero-stats b, .ef-pop-lv b, .ef-hp-stats b, .ef-bstats b { font-family: var(--f-display); }
.ef-op-name, .ef-pop-name, .ef-player-name { font: 700 1.1rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }

/* home */
.ef-hero { border-bottom: 0; padding: 56px 0 40px; }
.ef-hero-art { display: none; }
.ef-hero-panel { border: 0; border-radius: var(--r-lg); background: var(--s1); box-shadow: none; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.ef-hp-kicker { font: 700 .95rem var(--f-display); letter-spacing: .08em; }
.ef-hp-stats { border-top: 0; padding: 12px 0 0; }
.ef-hp-rarity span { border: 0; border-radius: var(--r-xs); }
.ef-uid-form { border-radius: var(--r-sm); background: #1b1b22cc; border: 1px solid var(--acc); box-shadow: 0 0 0 4px #f5d40012; }
.ef-uid-form:focus-within { box-shadow: 0 0 0 4px var(--acc-a30); }
.ef-uid-form .btn { border-radius: var(--r-xs); }
.ef-recent-label { font: 700 .82rem var(--f-display); letter-spacing: .1em; }
.ef-recent-chip { border: 0; border-radius: 0; clip-path: var(--lean); padding: 0 12px; background: #ffffff14; font-weight: 700; }
.ef-recent-chip:hover { background: var(--acc); color: var(--acc-ink); }
.ef-db-tile { border: 0; background: var(--s1); }
.ef-db-tile:hover { border-color: transparent; background: var(--s2); }
.ef-db-tile .material-icons { color: var(--acc); }
.ef-db-tile b { font: italic 800 1.3rem/1.05 var(--f-display); text-transform: uppercase; }
.ef-cta .card-body { background: var(--stripes), linear-gradient(115deg, #2e2a0c 0%, #1d1b10 45%, var(--s1) 100%); }
.ef-cta { overflow: hidden; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.ef-player-card { border: 0; border-radius: var(--r-sm); background: var(--row-alt); }
.ef-player-card:hover { border-color: transparent; background: var(--row-hover); }

/* database cards and rows */
.ef-op-card { border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, var(--s1)), var(--s1) 60%); }
.ef-op-card:hover { border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, var(--s2)), var(--s2) 60%); }
.ef-set, .ef-result, .ef-piece, .ef-bw, .ef-bg li, .ef-skill-lv, .ef-io, .ef-fixed li { border: 0; }
.ef-set, .ef-result, .ef-piece { background: var(--s1); }
.ef-set:hover, .ef-result:hover, .ef-item:hover, .ef-piece:hover { border-color: transparent; background: var(--s2); }
.ef-item { border: 0; }
.ef-chip { border: 0; border-radius: 0; clip-path: var(--lean); padding: 2px 9px; background: #ffffff12; font-weight: 700; }
.ef-elem { border: 0; }
.ef-badge { border: 0; background: #0e0e1299; border-radius: var(--r-xs); }
.ef-badge.is-acc { border: 0; }
.ef-pill { border: 0; background: #2a2a33; border-radius: var(--r-xs); font-weight: 600; }
.ef-pill.on { border: 0; }
.ef-pot-n { border: 0; border-radius: 0; clip-path: var(--lean); background: var(--acc); color: var(--acc-ink); width: 36px; font-style: italic; font-weight: 800; }
.ef-subnav { border: 0; border-radius: var(--r-sm); background: #1b1b22e6; }
.ef-subnav a { font: 700 .95rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-xs); }
.ef-params .table-wrap { border: 0; }
.ef-tb-sel select { border-radius: var(--r-sm); background-color: #121217; border: 1px solid var(--line-3); }
.ef-tb-go { border-radius: var(--r-xs); }
.ef-bstats { border: 0; background: #1b1b22cc; }
.ef-search-form { border-radius: var(--r-sm); background: #121217; }
.ef-verify { border: 0; background: var(--acc-a08); border-radius: var(--r-sm); }
.ef-code { border: 0; }

/* player page: the cover card of the trackers */
.ef-phero { border-bottom: 0; background: transparent; }
.ef-phero-inner { padding-top: 22px; padding-bottom: 6px; }
.ef-phero-row { position: relative; isolation: isolate; padding: 28px 24px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--stripes), radial-gradient(600px 260px at 12% 110%, #f5d40024, transparent 70%), linear-gradient(120deg, #24221a, #18181d 55%, #121216); }
.ef-phero-av { border: 0; border-radius: 0; background: var(--s3); box-shadow: none;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); outline: 4px solid var(--acc); outline-offset: -4px; }
.ef-phero-actions .btn { border-radius: 0; clip-path: var(--cut-shape-2); }
.ef-kpi-strip { gap: 0; background: var(--s1); border: 0; padding: 6px 4px; }
.ef-kpi-strip .ef-kpi { background: transparent; }
.ef-kpis { border-top: 0; }
.ef-kpis > .ef-kpi + .ef-kpi { border-left: 0; }
.ef-pop { border: 0; background: linear-gradient(100deg, color-mix(in srgb, var(--rc) 12%, var(--s1)), var(--s1) 60%); }
.ef-pop:hover { border-color: transparent; background: linear-gradient(100deg, color-mix(in srgb, var(--rc) 18%, var(--s2)), var(--s2) 60%); }
.ef-pop-foot { border-top: 0; }
.ef-pop-lv em { border: 0; }
.ef-pophero-art { border-right: 0; }
.ef-history li { border-bottom: 0; padding: 9px 12px; }
.ef-history li:nth-child(even) { background: var(--row-alt); }
.ef-stats li { border-bottom: 0; padding: 7px 10px; }
.ef-stats li:nth-child(even) { background: var(--row-alt); }
.ef-kv > div { border-bottom: 0; padding: 8px 10px; }
.ef-kv > div:nth-child(even) { background: var(--row-alt); }
.ef-skill { border-bottom: 0; }
.ef-skill + .ef-skill { padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .ef-phero-row { padding: 20px 16px; }
  .ef-pophero-art { border-bottom: 0; }
}

/* Personal pages (My accounts, Companion history, a session): the scripts fill
   .ef-me after sign-in, so its children need the page's own rhythm — without
   it the cards, the period filter and the buttons sat flush against each other. */
.ef-me > * + * { margin-top: 20px; }
.ef-me > .sec-head { margin-top: 36px; }
.ef-me > .sec-head:first-child { margin-top: 0; }
.ef-me > .sec-head + * { margin-top: 14px; }
.ef-me > .ef-filters + * { margin-top: 16px; }
.ef-me .empty-state { padding-block: 40px; }
.card-body > .ef-uid-form + p { margin-top: 12px; }
.ef-acc-head + .row { margin-top: 12px; }

/* The More menu opens rightwards from the left edge of "More", as in
   thefinals. Where that would run past the screen's right edge (its TOOLS
   column was cut at 1281–1500px), app.js sets --drop-shift to slide it left
   just enough; `translate` adds to the slide-in `transform`. */
.nav-drop-menu { left: 0; right: auto; translate: var(--drop-shift, 0px) 0; }
@media (max-width: 1280px) {
  .nav-drop-menu { left: 0; right: auto; }
}

/* Home: the import box closes the page with the same space above it (from the
   operator cards) as below it (to the footer) — it was 20px above, 112px below. */
.page-home .ef-op-grid + .ef-cta { margin-top: 56px; }
.page-home .page { padding-bottom: 16px; }
