:root {
  /* Layout idea: a matchday programme. The kit (bottle green, gold trim) is the
     stage; the three lines of the team organise every chapter; dark chapters
     carry the argument, paper chapters carry the method. Single theme by choice. */
  --night: #0b1712;     /* page */
  --kit: #0f2a1f;       /* jersey green, hero and lineup */
  --pitch: #12231c;     /* raised surface */
  --pitch-2: #1a3127;   /* tiles, tracks */
  --line: #273a31;      /* rules on dark */
  --bone: #ede7da;      /* text on dark */
  --soft: #cfd3c8;      /* body text on dark */
  --moss: #8fa196;      /* secondary on dark */
  --falcon: #2bd08c;    /* kept and picked only */
  --gold: #c8a55d;      /* kit trim: frames, numerals */
  --paper: #ece6d8;     /* light chapters */
  --paper-ink: #13211b;
  --paper-soft: #3c4a42;
  --paper-line: #d2c9b5;
  --paper-gold: #8a6a2a;
  --display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --text: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4.2vw, 48px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: dark;
}
:root:lang(ar) { --text: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--bone); font-family: var(--text); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:lang(ar) body { line-height: 1.85; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--falcon); outline-offset: 3px; border-radius: 4px; }
bdi { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fabric { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 7px); }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 23, 18, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; min-height: 56px; }
.brand { font-family: var(--display); font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; min-width: 0; }
.brand-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--falcon); transform: rotate(45deg); flex: none; }
.draft { font-family: var(--text); font-weight: 500; font-size: .7rem; color: var(--moss); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 9px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; white-space: nowrap; font-size: .86rem; color: var(--moss); padding: 16px 11px 14px; border-bottom: 2px solid transparent; transition: color .2s; display: inline-flex; gap: 7px; align-items: baseline; }

.nav a:hover { color: var(--bone); }
.nav a[aria-current="true"] { color: var(--bone); border-bottom-color: var(--falcon); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.lang button { background: none; border: 0; border-radius: 999px; padding: 3px 12px; font-size: .8125rem; cursor: pointer; color: var(--moss); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--night); }
.progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: 100%; background: var(--falcon); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .progress { transform-origin: right; }
@media (max-width: 900px) {
  .top-in { column-gap: 12px; }
  .brand { flex: 1 1 0; }
  .brand > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: calc(var(--gutter) - 11px); border-top: 1px solid var(--line); }
  .nav a { padding-block: 10px 8px; }
}

/* ---------------- hero: the stage ---------------- */
.hero { position: relative; overflow: hidden; background-color: var(--kit); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(11, 23, 18, .85), rgba(11, 23, 18, 0)); pointer-events: none; }
.big27 { position: absolute; inset-inline-end: -2vw; top: 4%; font-family: var(--display); font-weight: 900; font-size: clamp(14rem, 40vw, 34rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(200, 165, 93, .22); letter-spacing: -.04em; pointer-events: none; user-select: none; direction: ltr; }
.hero-head { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 92px); display: grid; gap: 22px clamp(32px, 5vw, 80px); align-items: end; }
@media (min-width: 960px) { .hero-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.kicker { font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--gold); display: flex; align-items: center; gap: 12px; }

h1 { font-family: var(--display); font-weight: 900; text-wrap: balance; font-size: clamp(2.3rem, 6.6vw, 5.2rem); line-height: 1.02; letter-spacing: -.03em; margin-top: 14px; }
:lang(ar) h1 { line-height: 1.28; letter-spacing: 0; font-size: clamp(2.15rem, 6vw, 4.6rem); }
.lede { font-size: 1.0625rem; color: var(--soft); max-width: 46ch; }
.hero-side { display: grid; gap: 14px; padding-bottom: 8px; }
.disclaimer { font-size: .8rem; color: var(--moss); max-width: 52ch; }

.stage { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 56px); padding-inline: var(--gutter); }
.stage-rail { max-width: 1360px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.stage-line { display: grid; gap: 12px; }
.stage-line > h2 { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.stage-line > h2::after { content: ""; flex: 1; height: 1px; background: rgba(200, 165, 93, .35); }
.stage-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.pcard { position: relative; display: grid; text-decoration: none; }
.pcard-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 70% at 50% 100%, rgba(43, 208, 140, .16), rgba(43, 208, 140, 0) 60%), #0c2219; box-shadow: inset 0 0 0 1px rgba(200, 165, 93, .28); }
.pcard-photo::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(200, 165, 93, .18); border-radius: 9px; pointer-events: none; }
.pcard-photo img { position: absolute; bottom: 0; left: 50%; width: 112%; max-width: none; transform: translateX(-50%); transition: transform .5s var(--ease); filter: saturate(1.04) contrast(1.03); }
.pcard:hover .pcard-photo img { transform: translateX(-50%) scale(1.035); }
.pcard-name { position: absolute; inset-inline: 0; bottom: 0; padding: 30% 12px 12px; background: linear-gradient(to top, rgba(8, 20, 15, .95), rgba(8, 20, 15, 0)); font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.7vw, 1.55rem); line-height: 1.1; text-align: center; direction: ltr; overflow-wrap: anywhere; }
.pcard figcaption { margin-top: 10px; display: grid; gap: 1px; font-size: .8125rem; line-height: 1.5; color: var(--moss); }
.pcard figcaption b { color: var(--bone); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .pcard { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
  @keyframes rise { from { transform: translateY(22px); } to { transform: none; } }
}
@media (max-width: 860px) {
  .stage { padding-inline: 0; }
  .stage-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 6px; }
  .stage-rail::-webkit-scrollbar { display: none; }
  .stage-line { flex: none; width: min(84vw, 380px); scroll-snap-align: center; }
}
.swipe { display: none; font-size: .78rem; color: var(--moss); padding-inline: var(--gutter); margin-top: 10px; }
@media (max-width: 860px) { .swipe { display: block; } }

.facts { position: relative; z-index: 2; margin-top: clamp(30px, 4vw, 52px); padding-block: 22px clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fact { border-top: 1px solid rgba(200, 165, 93, .35); padding-top: 12px; display: grid; gap: 2px; }
.fact b { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.1; }
.fact span { font-size: .82rem; color: var(--moss); line-height: 1.45; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- chapters ---------------- */
.ch { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 100px; }
.ch.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.ch.deep { background-color: var(--kit); }
.ch-head { display: grid; gap: 14px clamp(32px, 5vw, 80px); margin-bottom: clamp(32px, 5vw, 60px); }
@media (min-width: 960px) { .ch-head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.ch-no { font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.ch-no::after { content: ""; width: 40px; height: 2px; background: currentColor; }
.paper .ch-no { color: var(--paper-gold); }
h2.title { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; margin-top: 12px; }
:lang(ar) h2.title { line-height: 1.3; letter-spacing: 0; }
.ch-head p { color: var(--soft); max-width: 46ch; padding-bottom: 8px; }
.paper .ch-head p { color: var(--paper-soft); }
h3.sub { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.4; }
.sub-note { font-size: .86rem; color: var(--moss); margin-top: 4px; }
.block { margin-top: clamp(44px, 6vw, 76px); }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 6px 24px; margin-bottom: 18px; }
.prose { display: grid; gap: 18px; max-width: 66ch; font-size: 1.05rem; color: var(--soft); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes reveal { from { transform: translateY(26px) scale(.985); } to { transform: none; } }
    .big27 { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(18vh); } }
  }
}

/* path timeline */
.path { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stop { padding: 16px 14px 4px 0; border-inline-start: 1px solid var(--line); padding-inline-start: 14px; display: grid; gap: 4px; align-content: start; }
.stop:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stop .place { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.1; direction: ltr; unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .stop .place { text-align: right; }
.stop .ev { font-size: .8rem; color: var(--moss); line-height: 1.45; }
.stop .kind { font-size: .72rem; color: var(--gold); }
.stop.win .place { color: var(--falcon); }
@media (max-width: 760px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } .stop { padding-inline-start: 10px; } .stop:nth-child(5) { border-inline-start: 0; padding-inline-start: 0; } }

/* slope chart */
.slope-wrap { display: grid; gap: 18px; }
@media (min-width: 960px) { .slope-wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); align-items: start; gap: 36px; } }
.slope { background: var(--pitch); border-radius: 18px; padding: clamp(14px, 2.4vw, 26px); direction: ltr; }
.slope { overflow-x: auto; }
.slope svg { width: 100%; min-width: 560px; height: auto; display: block; overflow: visible; }
.slope .grid line { stroke: var(--line); }
.slope .axis text { fill: var(--moss); font-size: 12px; font-family: var(--text); }
.slope .ln path { fill: none; stroke: #5d6f64; stroke-width: 2; transition: stroke .25s, opacity .25s, stroke-width .25s; }
.slope .ln circle { fill: var(--pitch); stroke: #5d6f64; stroke-width: 2; transition: stroke .25s; }
.slope .ln text { fill: var(--soft); font-size: 12.5px; font-family: var(--display); font-weight: 600; transition: fill .25s, opacity .25s; }
.slope .ln.small circle { stroke-dasharray: 2 2; }
.slope.focus .ln { opacity: .22; }
.slope.focus .ln.on { opacity: 1; }
.slope.focus .ln.on path { stroke-width: 3; stroke: var(--bone); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--moss); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--night); border-color: var(--bone); }
.legend-note { font-size: .82rem; color: var(--moss); }

/* current roster cards */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
@media (min-width: 1100px) { .roster { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 28px 14px; } }
.jersey { container-type: inline-size; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; --j-fabric: #182520; --j-ink: #aeb4ac; --j-trim: #6f7a72; background-color: var(--j-fabric); color: var(--j-ink); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 7px); }
.jersey.kit { --j-fabric: #0f3527; --j-ink: #f3f0e6; --j-trim: var(--gold); }
.jersey .collar { position: absolute; top: 0; left: 0; width: 100%; height: 34%; display: block; }
.jersey .jname { position: absolute; left: 4%; right: 4%; top: 50%; text-align: center; direction: ltr; font-family: var(--display); font-weight: 800; line-height: 1; white-space: nowrap; font-size: min(19cqw, calc(112cqw / var(--len, 6))); }
.jersey.photo { aspect-ratio: 4 / 3; background: radial-gradient(120% 80% at 50% 100%, rgba(43, 208, 140, .18), rgba(43, 208, 140, 0) 60%), #0c2219; }
.jersey.photo img { position: absolute; bottom: -38%; left: 50%; width: 92%; max-width: none; transform: translateX(-50%); }
.rcard figcaption { margin-top: 10px; display: grid; gap: 4px; font-size: .8125rem; line-height: 1.5; color: var(--moss); }
.rcard figcaption b { color: var(--bone); font-weight: 500; }
.stagenums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: .78rem; margin-top: 4px; }
.stagenums span { color: var(--soft); display: grid; justify-items: start; gap: 1px; white-space: nowrap; }
.stagenums i { font-style: normal; color: var(--moss); font-size: .7rem; }
.tag { justify-self: start; font-size: .74rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--moss); white-space: nowrap; }
.callout { border-inline-start: 3px solid var(--falcon); padding-inline-start: 22px; max-width: 66ch; display: grid; gap: 8px; }
.callout p { color: var(--soft); font-size: 1.05rem; }

/* criteria (paper) */
.crit-grid { display: grid; gap: 48px 72px; }
@media (min-width: 960px) { .crit-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.crit-list > h3, .crit-side > h3 { color: var(--paper-soft); margin-bottom: 8px; }
.crit { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 16px; padding-block: 20px; border-top: 1px solid var(--paper-line); }
.crit-i { font-family: var(--display); font-weight: 800; color: var(--paper-gold); font-size: 1.05rem; line-height: 1.5; }
.crit dt { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.35; }
.crit dd { grid-column: 2; color: var(--paper-soft); }
.crit .how { display: block; margin-top: 8px; font-size: .86rem; color: var(--paper-soft); background: rgba(138, 106, 42, .09); border-radius: 8px; padding: 8px 12px; }
.crit .how b { color: var(--paper-gold); font-weight: 600; }
.crit-side .crit { grid-template-columns: 1fr; }
.crit-side .crit dd { grid-column: 1; }
.scale { margin-top: 28px; display: grid; gap: 14px; }
.scale-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; direction: ltr; }
.scale-bar span { height: 34px; border-radius: 6px; background: var(--paper-ink); display: grid; place-items: center; color: var(--paper); font-family: var(--display); font-weight: 800; }
.scale-bar span:nth-child(1) { background: #cfc6b1; color: var(--paper-ink); }
.scale-bar span:nth-child(2) { background: #a9a38f; color: var(--paper-ink); }
.scale-bar span:nth-child(3) { background: #7b7e6f; }
.scale-bar span:nth-child(4) { background: #46524a; }
.scale p, .source-box p { font-size: .92rem; color: var(--paper-soft); }
.source-box { margin-top: 28px; border-top: 2px solid var(--paper-ink); padding-top: 16px; display: grid; gap: 10px; }
.src-rows { display: grid; gap: 0; font-size: .9rem; }
.src-rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--paper-line); }
.src-rows div span:not(:first-child) { color: var(--paper-soft); text-align: end; }

/* candidates */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.depth { display: grid; gap: 40px 34px; align-items: start; }
@media (min-width: 900px) { .depth { grid-template-columns: repeat(3, minmax(0, 1fr)); } .depth.one { grid-template-columns: 1fr; } .depth.one .dline-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dline > h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 14px; }
.dline-roles { display: grid; gap: 30px 34px; align-items: start; }
.drole-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 2px solid var(--bone); }
.drole-head h4 { margin: 0; font-family: var(--text); font-weight: 600; font-size: .95rem; }
.drole-head span { font-size: .78rem; color: var(--moss); }
.cand { position: relative; }
.cand-row { display: flex; align-items: center; gap: 8px; padding-block: 11px 9px; }
.cand-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 2px; text-align: start; cursor: pointer; border-radius: 8px; }
.tile { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--pitch-2); color: var(--moss); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .8rem; position: relative; }
.tile img { position: absolute; top: 0; left: 50%; width: 150%; max-width: none; transform: translateX(-50%); }
.cand-text { min-width: 0; flex: 1; display: grid; }
.cand-name { font-family: var(--display); font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.cand-team { font-size: .8125rem; color: var(--moss); line-height: 1.45; min-width: 0; }
.cand-team .team-l { display: flex; min-width: 0; }
.cand-team .team-l span { overflow-wrap: normal; }
.pick { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--falcon); color: var(--night); display: inline-grid; place-items: center; }
.pick svg { width: 11px; height: 11px; }
.sc { flex: none; display: grid; justify-items: end; line-height: 1.25; }
.sc b { font-family: var(--display); font-weight: 700; font-size: 1.04rem; }
.sc small { font-size: .7rem; color: var(--moss); white-space: nowrap; display: grid; justify-items: end; line-height: 1.3; }
.chev { flex: none; width: 16px; height: 16px; color: var(--moss); transition: transform .3s var(--ease); }
.cand.open .chev { transform: rotate(180deg); }
.cmp-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s; }
.cmp-btn:hover { border-color: var(--moss); }
.cmp-btn svg { width: 14px; height: 14px; }
.cmp-btn[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--night); }
.cand-meter { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cand-meter i { display: block; height: 100%; background: #7f9186; border-radius: 2px; transition: width .6s var(--ease); }
.cand.is-picked .cand-meter i { background: var(--falcon); }
.cand-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.cand.open .cand-fold { grid-template-rows: 1fr; }
.cand-fold > div { overflow: hidden; min-height: 0; }
.cand-body { padding: 18px 2px 26px; display: grid; gap: 20px; }
.cand-note { font-size: .93rem; color: var(--soft); }
.mini-h { margin: 0 0 8px; font-family: var(--text); font-size: .8rem; font-weight: 500; color: var(--moss); }
.trend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; direction: ltr; }
.trend div { display: grid; gap: 6px; }
.trend .bar { height: 64px; display: flex; align-items: flex-end; background: var(--pitch); border-radius: 6px; overflow: hidden; }
.trend .bar i { display: block; width: 100%; background: #6f8277; border-radius: 6px 6px 0 0; transition: height .6s var(--ease); }
.trend .small i { background: repeating-linear-gradient(135deg, #6f8277 0 3px, transparent 3px 6px); }
.cand.is-picked .trend .bar i, .lu .trend .bar i { background: var(--falcon); }
.trend b { font-family: var(--display); font-size: .95rem; text-align: center; }
.trend span { font-size: .7rem; color: var(--moss); text-align: center; line-height: 1.3; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--pitch); color: var(--soft); line-height: 1.5; }
[dir="rtl"] .tchip { padding: 3px 4px 3px 10px; }
.tchip i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: .72rem; min-width: 26px; height: 20px; padding-inline: 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--pitch-2); color: var(--bone); direction: ltr; }
.tchip.gold i { background: var(--gold); color: #1b1407; }
.rate { display: grid; grid-template-columns: minmax(7.5rem, 1fr) auto; gap: 7px 18px; font-size: .9rem; align-items: center; }
.rate dd { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.rate dd small { font-size: .72rem; color: var(--moss); flex-basis: 100%; text-align: end; line-height: 1.3; }
.seg { display: inline-flex; gap: 3px; align-items: center; direction: ltr; }
.seg i { width: 18px; height: 6px; border-radius: 2px; background: var(--line); transition: background .3s; }
.seg i.on { background: var(--bone); }
.lu .seg i.on, .cand.is-picked .seg i.on { background: var(--falcon); }
.seg-n { font-size: .8rem; color: var(--moss); margin-inline-start: 8px; }
.statgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.statgrid > div { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 2px; }
.statgrid dt { font-size: .76rem; color: var(--moss); line-height: 1.4; }
.statgrid dd { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
dt small, .cmp-label small { font-size: .7rem; color: var(--moss); font-weight: 400; }
.heroes { display: grid; gap: 7px; font-size: .86rem; }
.heroes li { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr) 2.6rem; gap: 10px; align-items: center; }
.heroes li > span:last-child { text-align: end; color: var(--moss); }
.hbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; direction: ltr; }
.hbar i { display: block; height: 100%; background: #b4bbb0; border-radius: 3px; }
.facts-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: .88rem; }
.facts-dl dt { color: var(--moss); }
.textbtn { justify-self: start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .86rem; cursor: pointer; }
.textbtn:hover { border-color: var(--moss); }
.pending { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: .85rem; color: var(--moss); }

/* compare */
.compare { margin-top: clamp(44px, 6vw, 72px); background: var(--pitch); border-radius: 20px; padding: clamp(18px, 3vw, 32px); scroll-margin-top: 110px; }
.compare-head { display: grid; gap: 4px; margin-bottom: 18px; }
.compare-head p { font-size: .9rem; color: var(--moss); }
.cmp-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); column-gap: 18px; }
.cmp-player { display: flex; align-items: center; gap: 10px; min-width: 0; padding-bottom: 6px; }
.cmp-player .cand-name { min-width: 0; }
.cmp-x { margin-inline-start: auto; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--moss); cursor: pointer; display: grid; place-items: center; }
.cmp-x:hover { color: var(--bone); background: var(--pitch-2); }
.cmp-x svg { width: 12px; height: 12px; }
.cmp-label { grid-column: 1 / -1; font-size: .8rem; color: var(--moss); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cmp-val { font-size: .93rem; line-height: 1.5; padding-top: 2px; overflow-wrap: anywhere; }
.cmp-val.yes { color: var(--falcon); }
.cmp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cbar { height: 8px; background: var(--line); border-radius: 2px; overflow: hidden; direction: ltr; }
.cbar i { display: block; height: 100%; background: #a3aea5; border-radius: 2px; transition: width .5s var(--ease); }
.cbar i.best { background: var(--gold); }
@media (max-width: 560px) { .cmp-player .tile { display: none; } .cmp-player .cand-name { font-size: .92rem; } .cmp-grid { column-gap: 12px; } }
.cmp-pill { position: fixed; z-index: 30; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--bone); color: var(--night); border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); white-space: nowrap; }
.cmp-pill[hidden] { display: none; }

/* lineup */
.lu-total { font-family: var(--display); font-weight: 800; color: var(--gold); }
.lu-line { display: grid; gap: 18px; padding-block: 26px; border-top: 1px solid rgba(200, 165, 93, .3); }
@media (min-width: 900px) { .lu-line { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 22px; } }
.lu-line > h3 { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--gold); }
.lu { --mx: 50%; --my: 0%; position: relative; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%), rgba(9, 22, 16, .72); border-radius: 20px; padding: 16px; display: grid; gap: 18px; box-shadow: inset 0 0 0 1px rgba(200, 165, 93, .18); }
.lu-top { display: grid; grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); gap: 18px; align-items: end; }
.lu-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 70% at 50% 100%, rgba(43, 208, 140, .18), rgba(43, 208, 140, 0) 60%), #0c2219; box-shadow: inset 0 0 0 1px rgba(200, 165, 93, .28); }
.lu-photo img { position: absolute; bottom: 0; left: 50%; width: 114%; max-width: none; transform: translateX(-50%); }
.lu-text { display: grid; gap: 6px; min-width: 0; padding-bottom: 4px; }
.lu-name { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; overflow-wrap: anywhere; direction: ltr; text-align: start; }
[dir="rtl"] .lu-name { text-align: right; }
.lu-role { font-size: .9rem; color: var(--moss); }
.lu-role b { color: var(--bone); font-weight: 500; }
.lu-score { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.lu-score b { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; }
.lu-score span { font-size: .76rem; color: var(--moss); line-height: 1.45; }
.lu-note { font-size: .93rem; color: var(--soft); }
.lu-cols { display: grid; gap: 18px; }
@media (max-width: 420px) { .lu-top { grid-template-columns: 1fr; } .lu-photo { max-width: 240px; } }
.pool { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 22px; }
.pool-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .pool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pool-col h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.pool-col .who { display: flex; gap: 14px; font-size: .78rem; color: var(--moss); margin-bottom: 10px; }
.pool-col .who i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 6px; vertical-align: -1px; }
.prow { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); gap: 10px; align-items: center; padding-block: 5px; border-top: 1px solid rgba(200, 165, 93, .14); font-size: .84rem; }
.pbars { display: grid; gap: 3px; direction: ltr; }
.pbars span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pbars i { display: block; height: 100%; border-radius: 3px; }
.pa { background: var(--bone); }
.pb { background: var(--gold); }
.trophy { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 16px; }
.trophy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.trophy-list li { background: rgba(9, 22, 16, .72); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; box-shadow: inset 0 0 0 1px rgba(200, 165, 93, .18); }
.trophy-list b { font-family: var(--display); font-weight: 800; }
.trophy-list span { font-size: .84rem; color: var(--soft); }
.todo { margin-top: 32px; border: 1px dashed rgba(200, 165, 93, .4); border-radius: 14px; padding: 18px 22px; max-width: 66ch; display: grid; gap: 8px; }
.todo ul { display: grid; gap: 4px; color: var(--soft); font-size: .95rem; list-style: disc; padding-inline-start: 20px; }

/* limits (paper) */
.limits { max-width: 72ch; counter-reset: lim; }
.limits li { padding-block: 20px; border-top: 1px solid var(--paper-line); display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 14px; }
.limits li::before { counter-increment: lim; content: counter(lim); grid-row: span 2; font-family: var(--display); font-weight: 800; color: var(--paper-gold); }
.limits b { font-family: var(--display); font-weight: 800; font-size: 1.12rem; }
.limits span { color: var(--paper-soft); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 8px 24px; color: var(--moss); font-size: .875rem; }
.foot-grid { display: grid; gap: 32px 64px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.foot h3 { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--bone); margin-bottom: 10px; }
.foot ul.foot-src { display: flex; }
.foot a { text-underline-offset: 3px; text-decoration-color: var(--line); }
.foot a:hover { color: var(--bone); text-decoration-color: var(--moss); }
.foot p + p { margin-top: 10px; }

/* photos, names on photos, team logos */
.tlogo { width: 16px; height: 16px; object-fit: contain; flex: none; display: inline-block; }
.team-l { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.lu-role .tlogo, .pcard figcaption .tlogo { width: 18px; height: 18px; }
.ph-init { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--moss); }
.rcard .pcard-photo { aspect-ratio: 4 / 5; }
.rcard .pcard-photo img { width: 108%; }
.rcard.stays .pcard-photo img { width: 94%; }
.rcard .pcard-name { font-size: clamp(.95rem, 1.4vw, 1.2rem); }
.rcard .pcard-photo { background: radial-gradient(120% 70% at 50% 100%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%), #142019; box-shadow: inset 0 0 0 1px var(--line); }
.rcard .pcard-photo::before { border-color: rgba(255, 255, 255, .06); }
.cand-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.pcard-photo.small { border-radius: 12px; }
.pcard-photo.small::before { inset: 6px; }
.pcard-photo.small .pcard-name { font-size: .95rem; padding: 34% 6px 8px; }
.concept { margin-top: 8px; font-size: .76rem; color: var(--gold); }
.lu-photo .pcard-name { font-size: clamp(1rem, 1.6vw, 1.25rem); }

.principles { grid-column: 1 / -1; display: grid; gap: 18px 40px; padding-bottom: 8px; }
@media (min-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.principle { background: var(--paper-ink); color: var(--paper); border-radius: 18px; padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 8px; }
.principle h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; color: #f1e2bd; }
.principle p { color: #d9d4c6; font-size: .98rem; }
.igl { flex: none; font-family: var(--display); font-weight: 800; font-size: .62rem; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--gold); color: #1b1407; line-height: 1.5; }
.igl.big { font-size: .78rem; padding: 2px 8px; }
.lu-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.excluded { margin-bottom: clamp(30px, 4vw, 44px); border-radius: 20px; padding: clamp(20px, 3vw, 32px); background: linear-gradient(0deg, rgba(200, 165, 93, .08), rgba(200, 165, 93, .08)), var(--pitch); box-shadow: inset 0 0 0 1.5px rgba(200, 165, 93, .55); display: grid; gap: 20px; }
.ex-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.ex-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #1b1407; font-family: var(--display); font-weight: 900; font-size: 1.5rem; display: grid; place-items: center; }
.ex-head h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3; color: #f1e2bd; }
.ex-head p { margin-top: 8px; color: var(--soft); font-size: 1.03rem; max-width: 70ch; }
.ex-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ex-list li { display: flex; gap: 12px; align-items: center; background: rgba(9, 22, 16, .6); border-radius: 14px; padding: 12px 14px; }
.ex-list li > div { display: grid; gap: 1px; font-size: .84rem; color: var(--soft); line-height: 1.5; }
.ex-list b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--bone); }
.ex-role { color: var(--moss); }
.ex-foot { font-size: .86rem; color: var(--moss); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }


/* ===== build your own six ===== */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.bld-card { position: sticky; top: 76px; background: linear-gradient(160deg, var(--kit), var(--pitch)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; overflow: hidden; }
.bld-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(200, 165, 93, .18); pointer-events: none; }
.bld-six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bld-slot { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--pitch-2); border: 1px dashed var(--line); display: grid; place-items: end center; transition: transform .35s var(--ease), border-color .3s; }
.bld-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.bld-slot::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(6, 14, 10, .92)); z-index: 1; }
.bld-slot.full { border-style: solid; border-color: rgba(200, 165, 93, .35); }
.bld-slot.ours { border-color: var(--falcon); }
.bld-slot.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.bld-slot span { position: relative; z-index: 2; padding: 0 6px 8px; text-align: center; line-height: 1.25; }
.bld-slot b { display: block; font-family: var(--display); font-size: .92rem; }
.bld-slot small { display: block; font-size: .7rem; color: var(--moss); }
.bld-slot .igl { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; }
.bld-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--line); border-radius: 12px; overflow: hidden; }
.bld-stats div { background: var(--pitch); padding: 12px 14px; }
.bld-stats dt { font-size: .76rem; color: var(--moss); }
.bld-stats dd { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--bone); }
.bld-msg { margin-top: 14px; font-size: .9rem; color: var(--soft); min-height: 1.6em; }
.bld-msg p + p { margin-top: 6px; }
.bld-msg .ok { color: var(--falcon); }
.bld-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bld-acts button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: .84rem; cursor: pointer; transition: background .2s, border-color .2s; }
.bld-acts button:hover { border-color: var(--gold); }
.bld-acts .main { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 600; }
.bld-roles { display: grid; gap: 18px; }
.bld-role h3 { font-family: var(--display); font-size: .95rem; color: var(--gold); margin-bottom: 8px; }
.bld-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bld-opt { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--pitch); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
[dir="rtl"] .bld-opt { padding: 5px 5px 5px 12px; }
.bld-opt:hover { border-color: var(--moss); transform: translateY(-1px); }
.bld-opt[aria-pressed="true"] { border-color: var(--falcon); background: rgba(43, 208, 140, .12); }
.bld-opt .tile { width: 30px; height: 30px; }
.bld-opt .num { font-size: .78rem; color: var(--moss); }
@media (max-width: 860px) { .bld { grid-template-columns: 1fr; } .bld-card { position: relative; top: 0; padding: 14px; } .bld-six { grid-template-columns: repeat(6, 1fr); gap: 6px; } .bld-slot { border-radius: 9px; } .bld-slot small { display: none; } .bld-slot b { font-size: .62rem; } .bld-slot span { padding: 0 2px 5px; } .bld-slot .igl { font-size: .5rem; padding: 1px 3px; top: 3px; inset-inline-start: 3px; } .bld-stats dd { font-size: 1.15rem; } }
/* ===== living background: drifting glows, rising wings, a light that follows the pointer ===== */
.hero, .ch { position: relative; isolation: isolate; }
.ch { overflow: clip; }
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx .orb { position: absolute; width: min(58vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(48px); opacity: .42; animation: orb 40s ease-in-out infinite alternate; will-change: transform; }
.fx .o1 { background: radial-gradient(circle, rgba(43, 208, 140, .55), transparent 64%); top: -18%; inset-inline-start: -14%; }
.fx .o2 { background: radial-gradient(circle, rgba(200, 165, 93, .50), transparent 64%); bottom: -24%; inset-inline-end: -16%; animation-duration: 52s; animation-delay: -14s; }
.fx .o3 { width: min(34vw, 440px); background: radial-gradient(circle, rgba(40, 160, 190, .45), transparent 64%); top: 38%; inset-inline-end: 22%; animation-duration: 34s; animation-delay: -7s; opacity: .22; }
@keyframes orb { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(9vw, 7vh, 0) scale(1.18); } 100% { transform: translate3d(-7vw, 12vh, 0) scale(.92); } }
.fx .wing { position: absolute; bottom: -90px; width: var(--w, 120px); color: var(--falcon); opacity: 0; animation: wing var(--d, 26s) linear infinite; animation-delay: var(--dl, 0s); }
.fx .wing.g { color: var(--gold); }
@keyframes wing { 0% { transform: translate3d(0, 0, 0) rotate(var(--r, -12deg)); opacity: 0; } 12% { opacity: var(--o, .22); } 85% { opacity: var(--o, .22); } 100% { transform: translate3d(var(--x, 40px), -125vh, 0) rotate(calc(var(--r, -12deg) + 18deg)); opacity: 0; } }
.fx .spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(43, 208, 140, .10), transparent 62%); }
.paper .fx .orb { opacity: .18; filter: blur(80px); }
.paper .fx .wing { color: var(--paper-gold); }
.paper .fx .spot { background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(138, 106, 42, .10), transparent 62%); }
/* cards lean toward the pointer, with a soft sheen */
.tilt { transition: transform .35s var(--ease); transform-style: preserve-3d; will-change: transform; }
.tilt .sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 255, 255, .16), transparent 62%); }
.tilt:hover .sheen { opacity: 1; }
/* numbers and bars come alive when they reach the screen */
.bar i, .hbar i, .pbars i { transition: height 1s var(--ease), width 1s var(--ease); }
.pending .bar i { height: 4% !important; } .pending .hbar i, .pending .pbars i { width: 0 !important; }
.brand-short { display: none; }
@media (max-width: 640px) { .brand-long { display: none; } .brand-short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .fx .orb, .fx .wing { animation: none; } .fx .wing { display: none; } .tilt { transition: none; } }

.lower { display: block; font-size: .72rem; color: var(--moss); opacity: .85; }

/* ===== pages ===== */
main > section[hidden] { display: none !important; }
body[data-page="home"] #top { min-height: auto; }
#home { padding-top: clamp(36px, 5vw, 64px); }
.home-t { margin-bottom: 10px; }
.home-lede { color: var(--soft); max-width: 60ch; margin-bottom: 24px; }
.home-six { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 34px; }
.hs { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--pitch-2); border: 1px solid var(--line); display: grid; place-items: end center; text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.hs:hover { transform: translateY(-3px); border-color: var(--falcon); }
.hs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hs::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(6, 14, 10, .92)); z-index: 1; }
.hs span { position: relative; z-index: 2; text-align: center; padding-bottom: 10px; line-height: 1.3; }
.hs b { display: block; font-family: var(--display); }
.hs small { color: var(--moss); font-size: .74rem; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--pitch); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.hcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.hcard h3 { font-family: var(--display); font-size: 1.2rem; color: var(--bone); }
.hcard p { color: var(--soft); font-size: .92rem; flex: 1; }
.hcard .go { color: var(--gold); font-size: .85rem; font-weight: 600; }
@media (max-width: 860px) { .home-six { grid-template-columns: repeat(3, 1fr); } .home-grid { grid-template-columns: 1fr; } }

.brand { text-decoration: none; color: inherit; }

body:not([data-page="home"]) main > .ch { padding-top: clamp(28px, 4vw, 52px); }
.home-h { font-family: var(--display); font-size: 1.25rem; margin: 6px 0 12px; color: var(--gold); }
.home-why { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 0 0 30px; padding: 0; }
.home-why li { position: relative; padding-inline-start: 18px; color: var(--soft); }
.home-why li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--falcon); }
@media (max-width: 860px) { .home-why { grid-template-columns: 1fr; } }

/* ===== footer ===== */
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 26px; }
.foot-main p { color: var(--soft); font-size: .86rem; max-width: 70ch; margin: 0 0 10px; }
.foot-src { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.foot-src a { display: inline-block; font-size: .76rem; color: var(--moss); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; transition: color .2s, border-color .2s; }
.foot-src a:hover { color: var(--bone); border-color: var(--gold); }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
[dir="rtl"] .foot-side { align-items: flex-start; }
.foot-x { display: inline-flex; align-items: center; gap: 8px; color: var(--bone); text-decoration: none; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; transition: border-color .2s; }
.foot-x:hover { border-color: var(--falcon); }
.foot-side small { color: var(--moss); font-size: .76rem; }
.home-note { display: inline-block; margin: 0 0 14px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(200,165,93,.35); background: rgba(200,165,93,.08); color: var(--bone); font-weight: 500; }
/* soft entrance when a page opens */
main > section:not([hidden]) { animation: pagein .38s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main > section:not([hidden]) { animation: none; } }

/* ===== hand-made layer ===== */
body::after { content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.read-line { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 90; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--falcon), var(--gold)); }
[dir="rtl"] .read-line { transform-origin: 100% 50%; }
.title-rule { display: flex; gap: 4px; height: 3px; margin: 14px 0 6px; }
.title-rule i { display: block; height: 100%; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .title-rule i { transform-origin: 100% 50%; }
.title-rule i:nth-child(1) { width: 56px; background: var(--gold); }
.title-rule i:nth-child(2) { width: 22px; background: var(--falcon); transition-delay: .12s; }
.title-rule i:nth-child(3) { width: 8px; background: currentColor; opacity: .5; transition-delay: .22s; }
.title-rule.drawn i, .rule-still .title-rule i { transform: none; }
.paper .title-rule i:nth-child(1) { background: var(--paper-gold, #8a6a2a); }
.bld-acts .main, .hcard, .foot-x { transition: translate .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, transform .25s var(--ease), background .2s; }
.hcard .go { display: inline-block; transition: transform .25s var(--ease); }
.hcard:hover .go { transform: translateX(-6px); }
[dir="ltr"] .hcard:hover .go { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .read-line { display: none; } }

/* clickable note next to a candidate */
.alert-btn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(200,165,93,.14); color: var(--gold); font-weight: 800; font-family: var(--display); cursor: pointer; align-self: center; margin-inline-end: 6px; position: relative; transition: background .2s, transform .2s; }
.alert-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.alert-btn:hover, .alert-btn[aria-expanded="true"] { background: var(--gold); color: #1a1408; }
.alert-btn[aria-expanded="true"]::after { animation: none; }
.alert-pop { margin: 8px 0 4px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(200,165,93,.4); background: rgba(200,165,93,.1); color: var(--bone); font-size: .9rem; }
.alert-pop { line-height: 1.85; }
.alert-pop b { display: block; color: var(--gold); font-size: .8rem; margin-bottom: 2px; }
.alert-pop span { display: block; }
.alert-chip { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; padding-block: 4px; padding-inline: 6px 12px; border-radius: 999px; border: 1px solid rgba(200,165,93,.45); background: rgba(200,165,93,.1); color: var(--gold); font: 600 .8rem var(--text); cursor: pointer; transition: background .2s, color .2s; }
.alert-chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #1a1408; display: inline-grid; place-items: center; font-style: normal; font-weight: 800; font-size: .72rem; }
.alert-chip:hover, .alert-chip[aria-expanded="true"] { background: var(--gold); color: #1a1408; }
.alert-chip:hover i, .alert-chip[aria-expanded="true"] i { background: #1a1408; color: var(--gold); }
.alert-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .alert-btn::after { animation: none; } }
.lu-name-row .alert-btn { width: 26px; height: 26px; font-size: .85rem; margin-inline-start: 8px; }

.home-aim { margin: 4px 0 22px; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(200,165,93,.28); background: linear-gradient(180deg, rgba(200,165,93,.07), rgba(200,165,93,.02)); max-width: 78ch; }
.home-aim .home-h { margin-top: 0; }
.home-aim p { margin: 8px 0 0; line-height: 1.85; color: var(--bone); }
.seventh { margin: 28px 0 8px; padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(200,165,93,.45); background: rgba(200,165,93,.05); max-width: 78ch; }
.seventh p { margin: 8px 0 0; line-height: 1.85; }
