/* =====================================================================
   CLANS SUITE  /clans/, /clan/<server>/<tag>/, /clans/leaderboards.html  -  prefix cl-
   Load AFTER /profile/profile.css (tokens, .pf-btn, .pf-empty, .pf-skel, .pf-i) and /players/players.css
   (.pd-hero, .pd-bar, .pd-chip, .pd-grid, .pd-view). Root: <main class="pf ..."> (container "pf").
   Per clan: --tag (its in-game tag color) and --pf-accent (the leader's accent, else the tag color).
   ===================================================================== */

/* ---------- shared atoms ---------- */
.cl-tag {
  --tag: #ffc24a;
  display: inline-flex; flex: none; align-items: center; gap: 0.08em; min-height: 26px; padding: 0.1rem 0.55rem;
  font-family: var(--pf-mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; line-height: 1.1; white-space: nowrap;
  color: var(--tag); border-radius: 7px;
  background: color-mix(in srgb, var(--tag) 13%, #0c0e14); border: 1px solid color-mix(in srgb, var(--tag) 55%, transparent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--tag) 55%, transparent);
}
.cl-tag::before { content: "["; opacity: 0.55; } .cl-tag::after { content: "]"; opacity: 0.55; }
.cl-tag.is-lg { min-height: 48px; min-width: 64px; justify-content: center; padding: 0.2rem 0.7rem; font-size: 1.12rem; border-radius: 12px; box-shadow: 0 0 22px color-mix(in srgb, var(--tag) 22%, transparent), inset 0 1px 0 rgba(255,255,255,0.08); }
.cl-srv { --srv: #aeb6c8; display: inline-flex; align-items: center; gap: 0.38rem; min-height: 24px; padding: 0.05rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--pf-ink); white-space: nowrap; background: color-mix(in srgb, var(--srv) 12%, transparent); border: 1px solid color-mix(in srgb, var(--srv) 35%, transparent); }
.cl-srv::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--srv); box-shadow: 0 0 8px var(--srv); }
.cl-recruit { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 24px; padding: 0.05rem 0.6rem; border-radius: 999px; font-family: var(--pf-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.cl-recruit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cl-recruit.is-open { color: #0b0c10; background: linear-gradient(180deg, #8ff0b4, #5fd48a); box-shadow: 0 0 14px rgba(95, 212, 138, 0.35); }
.cl-recruit.is-open::before { background: #0b3d1e; animation: cl-pulse 1.6s ease-in-out infinite; }
.cl-recruit.is-invite { color: #ffd88a; background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.4); }
.cl-recruit.is-full { color: var(--pf-mute); background: rgba(255,255,255,0.05); border: 1px solid var(--pf-line-2); }
@keyframes cl-pulse { 50% { opacity: 0.35; transform: scale(0.75); } }
.cl-k { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-family: var(--pf-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pf-faint); }
.cl-k .pf-i { color: var(--pf-a); }
.cl-dot { display: inline-block; width: 4px; height: 4px; margin: 0 0.35rem; border-radius: 50%; background: var(--pf-faint); vertical-align: middle; }

/* 16 seats: one per member slot */
.cl-seats { display: inline-grid; grid-template-columns: repeat(16, 1fr); gap: 3px; width: 100%; max-width: 220px; }
.cl-seats i { height: 6px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.cl-seats i.is-on { background: linear-gradient(180deg, color-mix(in srgb, var(--tag, var(--pf-a)) 60%, #fff), var(--tag, var(--pf-a))); box-shadow: 0 0 6px color-mix(in srgb, var(--tag, var(--pf-a)) 50%, transparent); }
.cl-seats.is-lg { max-width: 260px; gap: 4px; } .cl-seats.is-lg i { height: 9px; border-radius: 3px; }

/* achievement medallions, ringed by rarity */
.cl-medal { --ring: #8a93a6; position: relative; display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #262b38, #0d0f15); box-shadow: 0 0 0 2px var(--ring), 0 0 14px color-mix(in srgb, var(--ring) 35%, transparent); }
.cl-medal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cl-medal-glyph { font-family: var(--pf-display); font-weight: 900; font-size: 1.3em; color: var(--ring); }
.cl-medal.is-xs { width: 22px; height: 22px; font-size: 0.6rem; box-shadow: 0 0 0 1.5px var(--ring); vertical-align: middle; margin-left: 0.35rem; }
.cl-medal.is-sm { width: 34px; height: 34px; font-size: 0.75rem; }
.cl-medal.is-xl { width: 104px; height: 104px; font-size: 2rem; box-shadow: 0 0 0 3px var(--ring), 0 0 40px color-mix(in srgb, var(--ring) 55%, transparent); }
.cl-medal.is-uncommon, .is-uncommon > .cl-medal { --ring: #5fd48a; }
.cl-medal.is-rare, .is-rare > .cl-medal { --ring: #4aa8ff; }
.cl-medal.is-epic, .is-epic > .cl-medal { --ring: #a77bff; }
.cl-medal.is-mythic, .is-mythic > .cl-medal { --ring: #ff4a8a; }
.cl-medal.is-legendary, .is-legendary > .cl-medal { --ring: #ffc24a; }
.is-legendary > .cl-medal::after, .cl-medal.is-legendary::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255, 216, 138, 0.7), transparent 30%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%); mask: radial-gradient(circle, transparent 62%, #000 64%); animation: cl-spin 4s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }

/* hidden members: no avatar, no link */
.cl-hidden { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pf-faint); font-style: italic; }
.cl-hidden-av { display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; color: var(--pf-faint) !important; background: repeating-linear-gradient(45deg, #161a24 0 4px, #10131b 4px 8px) !important; box-shadow: 0 0 0 1px var(--pf-line-2) !important; }
.cl-hidden-name { color: var(--pf-faint); font-style: italic; }

.cl-empty { margin: 1.2rem 0 2rem; padding: 1.6rem 1rem 1.4rem; }
.cl-empty-art img { display: block; width: min(320px, 80vw); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 0.6rem; opacity: 0.92; -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, transparent 100%); }
.cl-emblem { width: 44px; height: 50px; color: var(--pf-a); filter: drop-shadow(0 0 10px var(--pf-glow)); }

/* ---------- directory hero ---------- */
.cl-hero { background: linear-gradient(180deg, rgba(7,8,13,0.25), rgba(7,8,13,0.92) 88%), image-set(url("/images/clans/hero.webp") type("image/webp"), url("/images/clans/hero.jpg") type("image/jpeg")) center 30% / cover no-repeat, #0b0d14; }
.cl-hero::before { opacity: 0.6; }
.cl-hero-inner { z-index: 1; }
.cl-hero-links { margin-top: 1rem; }
.cl-btn-glow { border-color: var(--pf-a-line); box-shadow: 0 0 22px var(--pf-a-dim); }
.cl-btn-glow .pf-i { color: var(--pf-a); }
.cl-hero-tags { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.cl-hero-tags span {
  position: absolute; font-family: var(--pf-mono); font-weight: 700; font-size: calc(1.1rem * var(--s, 1)); letter-spacing: 0.1em;
  color: var(--tag); opacity: 0; text-shadow: 0 0 16px var(--tag); animation: cl-float 9s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.cl-hero-tags span::before { content: "["; opacity: 0.5; } .cl-hero-tags span::after { content: "]"; opacity: 0.5; }
@keyframes cl-float { 0% { opacity: 0; transform: translateY(14px); } 25%, 70% { opacity: 0.42; } 100% { opacity: 0; transform: translateY(-22px); } }

/* sticky toolbar under the header */
.cl-dir .pd-bar, .cl-boards .pd-bar { top: var(--zl-header-bottom, 0px); }
.cl-srv-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--srv); box-shadow: 0 0 8px var(--srv); }
.cl-sort { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--pf-fs-sm); color: var(--pf-faint); }
.cl-select { width: auto; min-height: 40px; padding: 0.35rem 2rem 0.35rem 0.9rem; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--pf-bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aeb6c8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.8rem center; }
.cl-select option { background: #141721; color: var(--pf-ink); }
@container pf (max-width: 767px) { .cl-sort { flex: 1 1 auto; } .cl-sort .cl-select { flex: 1; } .cl-servers { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .cl-servers::-webkit-scrollbar { display: none; } .cl-servers .pd-chip { flex: none; } }

/* ---------- directory cards ---------- */
.cl-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)) !important; gap: 1rem !important; }
.cl-skel { height: 330px; border-radius: 18px; }
.cl-card {
  --tag: #ffc24a;
  --pf-a: var(--pf-accent, var(--tag));
  --pf-a-dim: color-mix(in srgb, var(--pf-a) 14%, transparent);
  --pf-a-line: color-mix(in srgb, var(--pf-a) 40%, transparent);
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 0.7rem; height: 100%; padding: 0 1rem 1rem; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pf-a) 10%, #141722), #0e1018 70%);
  border: 1px solid var(--pf-line); transition: transform 0.22s var(--pf-ease), border-color 0.2s ease, box-shadow 0.22s ease;
}
.cl-card:hover, .cl-card:focus-within { transform: translateY(-5px); border-color: color-mix(in srgb, var(--pf-a) 55%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 32px color-mix(in srgb, var(--pf-a) 22%, transparent); }
.cl-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%); transform: translateX(-100%); transition: transform 0.8s ease; }
.cl-card:hover::after { transform: translateX(100%); }
.cl-card.is-mine { border-color: var(--pf-a); box-shadow: 0 0 0 1px var(--pf-a), 0 0 28px color-mix(in srgb, var(--pf-a) 25%, transparent); }
.cl-card-banner { position: relative; z-index: -1; height: 96px; margin: 0 -1rem -48px; background: var(--banner) center / cover no-repeat, linear-gradient(135deg, color-mix(in srgb, var(--pf-a) 40%, #151822), #0b0d14); transition: transform 0.6s var(--pf-ease); }
.cl-card-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #12151e 4%, rgba(18,21,30,0.35) 60%, color-mix(in srgb, var(--pf-a) 18%, transparent)); }
.cl-card:hover .cl-card-banner { transform: scale(1.05); }
.cl-card-head { display: flex; align-items: flex-end; gap: 0.75rem; min-width: 0; }
.cl-card-id { min-width: 0; display: grid; gap: 0.35rem; }
.cl-card-name { font-family: var(--pf-display); font-weight: 800; font-size: 1.22rem; line-height: 1.15; color: var(--pf-ink); text-decoration: none; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.cl-card-name::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.cl-card-name:focus-visible { outline: none; } .cl-card-name:focus-visible::before { outline: 2px solid var(--pf-a); outline-offset: -2px; border-radius: 18px; }
.cl-card:hover .cl-card-name { color: #fff; }
.cl-card-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.cl-card-motto { margin: 0; font-size: var(--pf-fs-xs); font-style: italic; color: var(--pf-mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-card-size { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem; }
.cl-card-size b { font-family: var(--pf-mono); font-size: 1.7rem; line-height: 1; color: var(--pf-ink); font-variant-numeric: tabular-nums; }
.cl-card-size > span { color: var(--pf-faint); font-family: var(--pf-mono); font-size: 0.9rem; }
.cl-card-size .cl-seats { flex: 1 1 140px; align-self: center; margin-left: 0.3rem; }
.cl-card-leader { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; padding: 0.45rem 0.6rem; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.05); }
.cl-card-leader .cl-k { flex: none; } .cl-card-leader .cl-k .pf-i { color: #ffc24a; }
.cl-card-leader .zl-user { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; color: var(--pf-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.cl-card-leader a.zl-user:hover .zl-user-name { color: #fff; text-decoration: underline; }
.cl-card-leader .zl-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zl-user .zl-user-av { border-radius: 50%; object-fit: cover; }
.zl-user .zl-user-av-none { display: inline-grid; place-items: center; font-family: var(--pf-display); font-weight: 800; color: var(--pf-a-ink); background: radial-gradient(circle at 35% 30%, #2a2f3d, #10131b); font-size: 0.8em; }
.cl-card-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; margin: auto 0 0; }
.cl-card-stats > div { padding: 0.4rem 0.55rem; border-radius: 9px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.045); min-width: 0; }
.cl-card-stats dt { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-faint); }
.cl-card-stats dd { display: flex; align-items: center; margin: 0.1rem 0 0; font-family: var(--pf-mono); font-weight: 700; font-size: 0.92rem; color: var(--pf-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* list view */
.cl-grid[data-view="list"] { grid-template-columns: 1fr !important; gap: 0.45rem !important; }
.cl-grid[data-view="list"] .cl-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.6rem 0.9rem; border-radius: 14px; background: var(--pf-panel); }
.cl-grid[data-view="list"] .cl-card:hover { transform: translateX(3px); }
.cl-grid[data-view="list"] .cl-card-banner { position: absolute; inset: 0 auto 0 0; width: 6px; height: auto; margin: 0; background: var(--pf-a); z-index: 0; }
.cl-grid[data-view="list"] .cl-card-banner::after, .cl-grid[data-view="list"] .cl-card-motto, .cl-grid[data-view="list"] .cl-seats { display: none; }
.cl-grid[data-view="list"] .cl-card-head { flex: 1 1 260px; align-items: center; }
.cl-grid[data-view="list"] .cl-tag.is-lg { min-height: 36px; min-width: 52px; font-size: 0.92rem; }
.cl-grid[data-view="list"] .cl-card-name { font-size: 1.05rem; }
.cl-grid[data-view="list"] .cl-card-size b { font-size: 1.2rem; }
.cl-grid[data-view="list"] .cl-card-leader { flex: 0 1 220px; background: none; border: 0; padding: 0; }
.cl-grid[data-view="list"] .cl-card-stats { display: flex; gap: 1.1rem; margin: 0 0 0 auto; }
.cl-grid[data-view="list"] .cl-card-stats > div { padding: 0; background: none; border: 0; }
@container pf (max-width: 639px) { .cl-grid[data-view="list"] .cl-card-stats > div:nth-child(-n+2) { display: none; } .cl-grid[data-view="list"] .cl-card-leader { display: none; } }

/* ---------- clan page: hero ---------- */
.cl-page { --tag: #ffc24a; --pf-a: var(--pf-accent, var(--tag)); --pf-a-dim: color-mix(in srgb, var(--pf-a) 14%, transparent); --pf-a-line: color-mix(in srgb, var(--pf-a) 40%, transparent); --pf-glow: color-mix(in srgb, var(--pf-a) 45%, transparent); --pf-a-ink: color-mix(in srgb, var(--pf-a) 55%, #fff); }
.cl-top { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.4rem, 4cqi, 2.4rem) 0 clamp(1.4rem, 4cqi, 2rem); border-bottom: 1px solid var(--pf-line); min-height: 360px; }
.cl-top-art { position: absolute; inset: 0; z-index: -2; background: var(--banner, none) center / cover no-repeat, linear-gradient(135deg, color-mix(in srgb, var(--pf-a) 30%, #11141c), #07080d); transform: scale(1.04); animation: cl-drift 26s ease-in-out infinite alternate; }
.cl-top-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,13,0.2) 0%, rgba(7,8,13,0.55) 45%, var(--pf-bg) 100%), radial-gradient(70% 90% at 15% 100%, color-mix(in srgb, var(--pf-a) 22%, transparent), transparent 70%); }
@keyframes cl-drift { to { transform: scale(1.1) translateX(-1.5%); } }
.cl-top .pf-particles { z-index: -1; }
.cl-skel-head { height: 260px; border-radius: 18px; }
.cl-skel-block { height: 220px; margin: 1.4rem 0; border-radius: 18px; }
.cl-crumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; font-size: var(--pf-fs-sm); color: var(--pf-mute); }
.cl-crumb a { color: var(--pf-mute); text-decoration: none; } .cl-crumb a:hover { color: #fff; text-decoration: underline; }
.cl-id { display: flex; align-items: center; gap: clamp(1rem, 3cqi, 2rem); }
.cl-crest { position: relative; flex: none; display: grid; place-items: center; width: clamp(96px, 16cqi, 150px); aspect-ratio: 64 / 72; color: var(--tag); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--tag) 55%, transparent)); animation: cl-rise 0.7s var(--pf-ease) both; }
.cl-crest .cl-emblem { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tag); filter: none; }
.cl-crest .cl-emblem path:first-child { fill: color-mix(in srgb, var(--tag) 16%, rgba(7,8,13,0.85)); stroke-width: 2.4; }
.cl-crest .cl-emblem path:last-child { display: none; }
.cl-crest-tag { position: relative; margin-top: -8%; font-family: var(--pf-mono); font-weight: 700; font-size: clamp(1rem, 3.4cqi, 1.6rem); letter-spacing: 0.06em; color: #fff; text-shadow: 0 0 14px var(--tag), 0 0 2px var(--tag); }
.cl-id-text { min-width: 0; display: grid; gap: 0.5rem; animation: cl-rise 0.7s 0.08s var(--pf-ease) both; }
.cl-id-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; }
.cl-name { margin: 0; font-family: var(--pf-display); font-weight: 900; line-height: 1.02; letter-spacing: 0.02em; font-size: clamp(2rem, 7cqi, 4rem); overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff 20%, var(--pf-a-ink) 70%, var(--pf-a)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 2px 18px rgba(0,0,0,0.6)) drop-shadow(0 0 18px var(--pf-glow)); }
.cl-motto { margin: 0; font-size: clamp(1rem, 2.4cqi, 1.2rem); font-style: italic; color: var(--pf-ink); opacity: 0.9; }
.cl-id-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.2rem 0 0; font-size: var(--pf-fs-sm); color: var(--pf-mute); }
.cl-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.cl-discord .pf-i { color: #8f9bff; }
@keyframes cl-rise { from { opacity: 0; transform: translateY(14px); } }
.cl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin: clamp(1.2rem, 3cqi, 2rem) 0 0; }
.cl-facts > div { padding: 0.75rem 0.9rem; border-radius: 14px; background: rgba(12, 14, 20, 0.62); border: 1px solid var(--pf-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: cl-rise 0.6s var(--pf-ease) both; animation-delay: var(--d, 0ms); }
.cl-facts dt { font-family: var(--pf-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pf-faint); }
.cl-facts dd { margin: 0.25rem 0 0; display: flex; align-items: baseline; gap: 0.3rem; }
.cl-big { font-family: var(--pf-mono); font-weight: 700; font-size: clamp(1.3rem, 3.4cqi, 1.8rem); line-height: 1; color: var(--pf-ink); font-variant-numeric: tabular-nums; }
.cl-big.is-date { font-family: var(--pf-body); font-size: clamp(1.05rem, 2.6cqi, 1.3rem); }
.cl-big.is-live { color: #8ff0b4; }
.cl-of { font-family: var(--pf-mono); color: var(--pf-faint); }
@container pf (max-width: 639px) {
  .cl-id { flex-direction: column; align-items: flex-start; }
  .cl-crest { width: 92px; }
  .cl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* section nav */
.cl-secnav { position: sticky; top: var(--zl-header-bottom, 0px); z-index: 30; background: linear-gradient(180deg, rgba(7,8,13,0.97), rgba(7,8,13,0.9)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--pf-line); }
.cl-secnav[hidden] { display: none; }
.cl-secnav-inner { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding: 0.45rem 0; }
.cl-secnav-inner::-webkit-scrollbar { display: none; }
.cl-secnav a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: var(--pf-fs-sm); font-weight: 600; color: var(--pf-mute); text-decoration: none; }
.cl-secnav a:hover { color: var(--pf-ink); background: rgba(255,255,255,0.04); }
.cl-secnav a.is-on { color: #0b0c10; background: var(--pf-a); box-shadow: 0 0 16px var(--pf-a-dim); }
.cl-secnav a[hidden] { display: none; }

/* sections */
.cl-body { padding-bottom: 3rem; }
.cl-sec { margin-top: clamp(1.6rem, 4cqi, 2.6rem); scroll-margin-top: calc(var(--zl-header-bottom, 0px) + 64px); }
.cl-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--pf-line); }
.cl-sec-head h2 { margin: 0; font-family: var(--pf-display); font-weight: 800; font-size: clamp(1.35rem, 3.6cqi, 1.8rem); color: var(--pf-ink); display: flex; align-items: center; gap: 0.6rem; }
.cl-sec-head h2::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--pf-a); box-shadow: 0 0 12px var(--pf-a); }
.cl-sec-side { font-family: var(--pf-mono); font-size: var(--pf-fs-sm); color: var(--pf-faint); }

/* roster */
.cl-role { margin-bottom: 1.2rem; }
.cl-role-h { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-family: var(--pf-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pf-mute); }
.cl-role-h img { width: 26px; height: 26px; }
.cl-role.is-owner .cl-role-h { color: #ffc24a; }
.cl-role-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 0.35rem; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--pf-ink); font-size: 0.72rem; letter-spacing: 0; }
.cl-members { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0.55rem; margin: 0; padding: 0; }
.cl-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who rank" "stats stats"; align-items: center; gap: 0.45rem 0.6rem; padding: 0.7rem 0.8rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); animation: cl-rise 0.5s var(--pf-ease) both; animation-delay: var(--d, 0ms); transition: border-color 0.2s ease, transform 0.2s var(--pf-ease); }
.cl-member:hover { border-color: var(--pf-a-line); transform: translateY(-2px); }
.cl-role.is-owner .cl-member { background: linear-gradient(135deg, rgba(255, 194, 74, 0.1), var(--pf-panel) 55%); border-color: rgba(255, 194, 74, 0.35); }
.cl-member .zl-user { grid-area: who; display: flex; align-items: center; gap: 0.65rem; min-width: 0; color: var(--pf-ink); font-weight: 700; text-decoration: none; }
.cl-member a.zl-user:hover .zl-user-name { color: #fff; text-decoration: underline; }
.cl-member .zl-user-av { box-shadow: 0 0 0 2px #10131b, 0 0 0 3.5px var(--pf-a-line); flex: none; }
.cl-role.is-owner .cl-member .zl-user-av { box-shadow: 0 0 0 2px #10131b, 0 0 0 3.5px #ffc24a, 0 0 14px rgba(255, 194, 74, 0.45); }
.cl-member .zl-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-member.is-hidden .zl-user { font-weight: 600; }
.cl-rank { grid-area: rank; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--pf-a-ink); background: var(--pf-a-dim); border: 1px solid var(--pf-a-line); white-space: nowrap; }
.cl-member-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-family: var(--pf-mono); font-size: 0.8rem; color: var(--pf-mute); }
.cl-member-stats span { display: inline-flex; align-items: center; gap: 0.3rem; }
.cl-member-stats .pf-i { color: var(--pf-faint); }

/* achievements */
.cl-ach-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.cl-ach-top:empty { display: none; }
.cl-rarest { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem; border-radius: 18px; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--ring, #ffc24a) 18%, transparent), transparent 60%), var(--pf-panel); border: 1px solid var(--pf-line-2); }
.cl-rarest.is-legendary { --ring: #ffc24a; } .cl-rarest.is-mythic { --ring: #ff4a8a; } .cl-rarest.is-epic { --ring: #a77bff; } .cl-rarest.is-rare { --ring: #4aa8ff; } .cl-rarest.is-uncommon { --ring: #5fd48a; }
.cl-rarest-name { margin: 0.2rem 0 0; font-family: var(--pf-display); font-weight: 800; font-size: 1.3rem; color: var(--pf-ink); }
.cl-rarity { margin: 0.1rem 0 0; font-family: var(--pf-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ring, var(--pf-a)); }
.cl-firsts { padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 194, 74, 0.08), transparent 60%), var(--pf-panel); border: 1px solid rgba(255, 194, 74, 0.3); }
.cl-firsts .cl-k { color: #ffd88a; } .cl-firsts .cl-k .pf-i { color: #ffc24a; }
.cl-firsts ul { list-style: none; display: grid; gap: 0.5rem; margin: 0.6rem 0 0; padding: 0; }
.cl-firsts li { display: flex; align-items: center; gap: 0.6rem; }
.cl-firsts li > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; min-width: 0; font-size: var(--pf-fs-sm); }
.cl-firsts .zl-user { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--pf-mute); text-decoration: none; }
.cl-firsts small { color: var(--pf-faint); font-family: var(--pf-mono); }
.cl-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 0.6rem; margin: 0; padding: 0; }
.cl-wall-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.85rem 0.5rem 0.75rem; border-radius: 14px; text-align: center; background: var(--pf-panel); border: 1px solid var(--pf-line); overflow: hidden; animation: cl-rise 0.45s var(--pf-ease) both; animation-delay: var(--d, 0ms); transition: transform 0.2s var(--pf-ease), border-color 0.2s ease; }
.cl-wall-item::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--share, 0) * 100%); background: var(--ring, var(--pf-a)); box-shadow: 0 0 8px var(--ring, var(--pf-a)); }
.cl-wall-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ring, #8a93a6) 55%, transparent); }
.cl-wall-item.is-uncommon { --ring: #5fd48a; } .cl-wall-item.is-rare { --ring: #4aa8ff; } .cl-wall-item.is-epic { --ring: #a77bff; } .cl-wall-item.is-mythic { --ring: #ff4a8a; } .cl-wall-item.is-legendary { --ring: #ffc24a; }
.cl-wall-name { font-size: 0.82rem; font-weight: 700; line-height: 1.2; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-wall-meta { font-family: var(--pf-mono); font-size: 0.72rem; color: var(--pf-mute); }
.cl-wall-site { font-size: 0.68rem; color: var(--pf-faint); }
.cl-clanlevel { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 14px; border: 1px dashed var(--pf-line-2); color: var(--pf-mute); font-size: var(--pf-fs-sm); }
.cl-clanlevel p:last-child { margin: 0.35rem 0 0; }

/* stats */
.cl-about { margin-bottom: 0.9rem; padding: 1rem 1.15rem; border-radius: 16px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-left: 3px solid var(--pf-a); }
.cl-desc { margin: 0.45rem 0 0; white-space: pre-line; color: var(--pf-ink); line-height: 1.6; max-width: 75ch; overflow-wrap: anywhere; }
.cl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.6rem; }
.cl-tile { position: relative; padding: 0.9rem 1rem; border-radius: 16px; background: var(--pf-panel); border: 1px solid var(--pf-line); overflow: hidden; }
.cl-tile > .pf-i { position: absolute; right: 0.8rem; top: 0.8rem; font-size: 1.5rem; color: var(--pf-a); opacity: 0.35; }
.cl-tile-v { margin-top: 0.4rem; font-family: var(--pf-mono); font-weight: 700; font-size: 1.45rem; color: var(--pf-ink); font-variant-numeric: tabular-nums; }
.cl-tile-v .zl-user { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--pf-body); font-size: 1.05rem; color: var(--pf-ink); text-decoration: none; }
.cl-tile-v .is-up { color: #8ff0b4; } .cl-tile-v .is-down { color: #ff9a8c; }
.cl-tile-s { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--pf-faint); }

/* timeline */
.cl-tl { list-style: none; position: relative; margin: 0; padding: 0 0 0 0.2rem; }
.cl-tl::before { content: ""; position: absolute; left: 1.15rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: linear-gradient(180deg, var(--pf-a), rgba(255,255,255,0.06)); }
.cl-ev { position: relative; display: flex; gap: 0.85rem; padding: 0.45rem 0; }
.cl-ev-ico { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #11141c; border: 1.5px solid var(--pf-line-2); color: var(--pf-mute); }
.cl-ev.is-created .cl-ev-ico { color: #ffc24a; border-color: #ffc24a; box-shadow: 0 0 12px rgba(255, 194, 74, 0.4); }
.cl-ev.is-joined .cl-ev-ico { color: #8ff0b4; border-color: rgba(95, 212, 138, 0.6); }
.cl-ev.is-left .cl-ev-ico, .cl-ev.is-disbanded .cl-ev-ico, .cl-ev.is-purged .cl-ev-ico { color: #ff9a8c; border-color: rgba(255, 90, 74, 0.5); }
.cl-ev.is-promoted .cl-ev-ico { color: var(--pf-a); border-color: var(--pf-a-line); }
.cl-ev-b { min-width: 0; padding-top: 0.2rem; }
.cl-ev-b p { margin: 0; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-ev-b a { color: var(--pf-ink); font-weight: 700; text-decoration: none; } .cl-ev-b a:hover { text-decoration: underline; color: #fff; }
.cl-ev time { font-family: var(--pf-mono); font-size: 0.76rem; color: var(--pf-faint); }
.cl-tl-more { margin: 0.8rem 0 0 3rem; }

/* allies, wraith */
.cl-allies, .cl-wraith { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.6rem; margin: 0; padding: 0; }
.cl-ally, .cl-wraith-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); color: var(--pf-ink); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s var(--pf-ease); }
.cl-ally:hover, .cl-wraith-link:hover { transform: translateY(-2px); border-color: var(--pf-a-line); }
.cl-ally > span { display: grid; gap: 0.25rem; min-width: 0; flex: 1; }
.cl-ally > .pf-i, .cl-wraith-link > .pf-i:last-child { color: var(--pf-faint); }
.cl-wraith-lead { margin: 0 0 0.6rem; color: var(--pf-mute); font-size: var(--pf-fs-sm); }
.cl-wraith-link > .pf-i:first-child { font-size: 1.4rem; color: #a77bff; }
.cl-wraith-link > span { flex: 1; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .cl-card, .cl-card::after, .cl-card-banner, .cl-member, .cl-wall-item, .cl-ally, .cl-wraith-link { transition: none; }
  .cl-card:hover, .cl-member:hover, .cl-wall-item:hover { transform: none; }
  .cl-top-art, .cl-hero-tags span, .cl-recruit.is-open::before, .cl-medal::after, .is-legendary > .cl-medal::after { animation: none; }
  .cl-hero-tags span { opacity: 0.3; }
  .cl-crest, .cl-id-text, .cl-facts > div, .cl-member, .cl-wall-item { animation: none; }
}
.cl-ally small { font-size: 0.76rem; color: var(--pf-faint); }
.cl-ally.is-gone { opacity: 0.6; border-style: dashed; cursor: default; }
.cl-ally.is-gone:hover { transform: none; border-color: var(--pf-line); }
.cl-ally-gone { color: #ff9a8c !important; }
.cl-ev.is-allied .cl-ev-ico { color: #6fd3ff; border-color: rgba(111, 211, 255, 0.55); }
.cl-ev.is-unallied .cl-ev-ico { color: var(--pf-faint); }

/* ---------- leaderboards ---------- */
.cl-tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; padding-bottom: 2px; }
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tab { appearance: none; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.3rem 0.95rem 0.3rem 0.6rem; border-radius: 999px; font: inherit; font-size: var(--pf-fs-sm); font-weight: 700; color: var(--pf-mute); background: rgba(255,255,255,0.04); border: 1px solid var(--pf-line); transition: all 0.16s ease; }
.cl-tab img { width: 22px; height: 22px; opacity: 0.75; }
.cl-tab:hover { color: var(--pf-ink); border-color: var(--pf-a-line); }
.cl-tab.is-on { color: #0b0c10; border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--pf-a) 55%, #fff), var(--pf-a)); box-shadow: 0 0 18px var(--pf-a-dim); }
.cl-tab.is-on img { opacity: 1; filter: brightness(0.15); }
.cl-range[hidden] { display: none; }
.cl-boards .pd-kicker a { color: inherit; text-decoration: none; } .cl-boards .pd-kicker a:hover { text-decoration: underline; }
.cl-lb-body { padding: 1.4rem 0 3rem; }
.cl-mine { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.cl-mine-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--pf-a-dim); border: 1px solid var(--pf-a-line); color: var(--pf-ink); font-size: var(--pf-fs-sm); text-decoration: none; }
.cl-mine-item:hover { border-color: var(--pf-a); }
.cl-mine-item b { color: var(--pf-a-ink); font-family: var(--pf-mono); }

.cl-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(0.5rem, 2cqi, 1.2rem); max-width: 920px; margin: 0.6rem auto 1.8rem; }
.cl-podium[data-n="1"] { grid-template-columns: minmax(0, 320px); justify-content: center; }
.cl-podium[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.cl-pod { --tag: #ffc24a; --pf-a: var(--pf-accent, var(--tag)); position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.4rem 0.6rem 0; border-radius: 20px 20px 8px 8px; text-align: center; color: var(--pf-ink); text-decoration: none; overflow: hidden; border: 1px solid var(--pf-line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pf-a) 14%, #141722), #0e1018 75%); animation: cl-rise 0.6s var(--pf-ease) both; transition: transform 0.22s var(--pf-ease), box-shadow 0.22s ease; }
.cl-pod:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 30px color-mix(in srgb, var(--pf-a) 25%, transparent); }
.cl-pod.is-1 { animation-delay: 0.15s; border-color: rgba(255, 194, 74, 0.6); box-shadow: 0 0 40px rgba(255, 194, 74, 0.18); }
.cl-pod.is-2 { animation-delay: 0.05s; } .cl-pod.is-3 { animation-delay: 0.25s; }
.cl-pod.is-mine { outline: 2px solid var(--pf-a); outline-offset: 2px; }
.cl-pod-art { position: absolute; inset: 0 0 auto; height: 110px; z-index: -1; background: var(--banner) center / cover no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.cl-pod-rank { position: absolute; top: 0.55rem; left: 0.75rem; font-family: var(--pf-display); font-weight: 900; font-size: 1.6rem; color: var(--pf-ink); text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.cl-pod.is-1 .cl-pod-rank { color: #ffd88a; } .cl-pod.is-2 .cl-pod-rank { color: #dfe3ec; } .cl-pod.is-3 .cl-pod-rank { color: #e8a878; }
.cl-pod-crown { position: absolute; top: 0.45rem; left: 50%; transform: translateX(-50%); color: #ffc24a; filter: drop-shadow(0 0 10px rgba(255, 194, 74, 0.7)); animation: cl-bob 2.6s ease-in-out infinite; }
.cl-pod-crown .pf-i { width: 1.6rem; height: 1.6rem; }
@keyframes cl-bob { 50% { transform: translate(-50%, -3px); } }
.cl-pod-crest { position: relative; display: grid; place-items: center; width: clamp(64px, 12cqi, 92px); aspect-ratio: 64 / 72; margin-top: 0.9rem; color: var(--tag); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tag) 55%, transparent)); }
.cl-pod.is-1 .cl-pod-crest { width: clamp(76px, 15cqi, 112px); }
.cl-pod-crest .cl-emblem { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--tag); filter: none; }
.cl-pod-crest .cl-emblem path:first-child { fill: color-mix(in srgb, var(--tag) 16%, rgba(7,8,13,0.85)); }
.cl-pod-crest .cl-emblem path:last-child { display: none; }
.cl-pod-crest b { position: relative; margin-top: -8%; font-family: var(--pf-mono); font-size: clamp(0.8rem, 2.4cqi, 1.05rem); color: #fff; text-shadow: 0 0 10px var(--tag); }
.cl-pod-name { max-width: 100%; font-family: var(--pf-display); font-weight: 800; font-size: clamp(0.92rem, 2.4cqi, 1.15rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-pod-v { display: flex; flex-direction: column; align-items: center; font-family: var(--pf-mono); font-weight: 700; font-size: clamp(1.15rem, 3.4cqi, 1.6rem); color: var(--pf-a-ink); line-height: 1.1; }
.cl-pod-v small { font-family: var(--pf-body); font-size: 0.7rem; font-weight: 600; color: var(--pf-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.cl-pod-step { display: block; align-self: stretch; margin: 0.6rem -0.6rem 0; height: 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--pf-a) 26%, transparent), transparent); border-top: 1px solid color-mix(in srgb, var(--pf-a) 40%, transparent); }
.cl-pod.is-1 .cl-pod-step { height: 70px; } .cl-pod.is-3 .cl-pod-step { height: 22px; }
@container pf (max-width: 639px) { .cl-pod .pd-you { display: none; } .cl-pod .cl-srv { font-size: 0.66rem; padding: 0 0.4rem; min-height: 20px; } .cl-pod { padding-top: 1.2rem; } .cl-pod-name { font-size: 0.82rem; } }

.cl-lb { list-style: none; display: grid; gap: 0.35rem; max-width: 920px; margin: 0 auto; padding: 0; }
.cl-lb-row { --tag: #ffc24a; position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto auto; grid-template-areas: "rank clan srv v" "rank bar bar move"; align-items: center; gap: 0.3rem 0.7rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); animation: cl-rise 0.4s var(--pf-ease) both; }
.cl-lb-row:hover { border-color: color-mix(in srgb, var(--tag) 45%, transparent); }
.cl-lb-row.is-mine { border-color: var(--pf-a); box-shadow: 0 0 0 1px var(--pf-a), 0 0 20px var(--pf-a-dim); }
.cl-lb-rank { grid-area: rank; font-family: var(--pf-mono); font-weight: 700; font-size: 1.05rem; color: var(--pf-faint); text-align: center; }
.cl-lb-clan { grid-area: clan; display: flex; align-items: center; gap: 0.55rem; min-width: 0; color: var(--pf-ink); text-decoration: none; }
.cl-lb-clan:hover .cl-lb-name { color: #fff; text-decoration: underline; }
.cl-lb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-lb-row > .cl-srv { grid-area: srv; }
.cl-lb-row > .pd-you { position: absolute; right: 0.6rem; top: -0.55rem; }
.cl-lb-bar { grid-area: bar; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.05); overflow: hidden; }
.cl-lb-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tag) 45%, transparent), var(--tag)); transform-origin: left; animation: cl-grow 0.8s var(--pf-ease) both; }
@keyframes cl-grow { from { transform: scaleX(0); } }
.cl-lb-v { grid-area: v; font-family: var(--pf-mono); font-weight: 700; color: var(--pf-ink); text-align: right; white-space: nowrap; }
.cl-lb-row > .cl-move { grid-area: move; justify-self: end; }
.cl-move { display: inline-flex; align-items: center; gap: 0.15rem; font-family: var(--pf-mono); font-size: 0.74rem; font-weight: 700; }
.cl-move.is-up { color: #8ff0b4; } .cl-move.is-down { color: #ff9a8c; } .cl-move.is-same { color: var(--pf-faint); }
@container pf (max-width: 639px) { .cl-lb-row { grid-template-columns: 2rem minmax(0, 1fr) auto; grid-template-areas: "rank clan v" "rank srv move" "rank bar bar"; } .cl-lb-row > .cl-srv { justify-self: start; font-size: 0.7rem; min-height: 20px; } }
@media (prefers-reduced-motion: reduce) { .cl-pod, .cl-lb-row, .cl-lb-bar i, .cl-pod-crown { animation: none; } .cl-pod:hover { transform: none; } }

/* ---------- clan page edit mode: a docked panel, the page behind it is the live preview ---------- */
.cl-edit-btn { border-color: var(--pf-a-line); } .cl-edit-btn .pf-i { color: var(--pf-a); }
.cl-edit-btn.is-staff { border-color: rgba(255, 194, 74, 0.5); } .cl-edit-btn.is-staff .pf-i { color: #ffc24a; }
.cl-locked { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.84rem; color: var(--pf-mute); border: 1px dashed var(--pf-line-2); }
.cl-ribbon { position: absolute; z-index: 3; top: 0.8rem; right: 0.8rem; display: inline-flex; align-items: center; gap: 0.45rem; max-width: calc(100% - 1.6rem); margin: 0; padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: #0b0c10; background: linear-gradient(180deg, #ffe08a, #ffb020); box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.cl-ribbon.is-draft { background: linear-gradient(180deg, #bfe9ff, #6fd3ff); }
.cl-ribbon.is-bad { color: #fff; background: linear-gradient(180deg, #ff7a6a, #d8432f); }
.cl-editing .cl-crest, .cl-editing .cl-id-text, .cl-editing .cl-facts > div { animation: none; }

.cl-ed {
  --pf-a: var(--cl-ed-a, #ff6a1a);
  position: fixed; z-index: 90; right: 0; top: var(--zl-header-bottom, 0px); bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; color: var(--pf-ink); font-family: var(--pf-body);
  background: linear-gradient(180deg, #131620, #0c0e15); border-left: 1px solid var(--pf-line-2); box-shadow: -20px 0 50px rgba(0,0,0,0.55);
  animation: cl-slide 0.32s var(--pf-ease, ease) both;
}
.cl-ed[hidden] { display: none; }
@keyframes cl-slide { from { transform: translateX(30px); opacity: 0; } }
.cl-ed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem 0.8rem; border-bottom: 1px solid var(--pf-line); }
.cl-ed-head h2 { margin: 0.15rem 0 0; font-family: var(--pf-display); font-weight: 800; font-size: 1.35rem; }
.cl-ed-x { appearance: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pf-line-2); background: rgba(255,255,255,0.04); color: var(--pf-mute); cursor: pointer; }
.cl-ed-x:hover { color: #fff; border-color: var(--pf-a-line); }
.cl-ed-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.9rem 1.1rem 1.2rem; }
.cl-ed-lead { margin: 0 0 0.9rem; font-size: 0.86rem; color: var(--pf-mute); }
.cl-ed-lock { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.86rem; color: #ffd88a; background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.35); }
.cl-ed-sec { padding: 0.85rem 0; border-top: 1px solid var(--pf-line); }
.cl-ed-sec:first-of-type { border-top: 0; padding-top: 0.2rem; }
.cl-ed-sec h3, .cl-ed-label span { margin: 0 0 0.55rem; font-family: var(--pf-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pf-faint); }
.cl-ed-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.cl-ed-label small { font-family: var(--pf-mono); font-size: 0.74rem; color: var(--pf-faint); }
.cl-ed-input { width: 100%; padding-left: 0.9rem; border-radius: 12px; }
.cl-ed-text { min-height: 120px; resize: vertical; line-height: 1.5; padding-top: 0.6rem; }
.cl-ed-input[aria-invalid="true"] { border-color: var(--pf-bad); box-shadow: 0 0 0 3px rgba(255, 90, 74, 0.18); }
.cl-ed-input:disabled { opacity: 0.55; }
.cl-ed-err { margin: 0.35rem 0 0; font-size: 0.82rem; color: #ff9a8c; }
.cl-ed-err:empty { display: none; }
.cl-ed-note, .cl-ed-sub { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--pf-faint); }
.cl-ed-sub { margin-top: 0.8rem; color: var(--pf-mute); }
.cl-ed-up, .cl-ed-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cl-ed-file { position: relative; overflow: hidden; cursor: pointer; }
.cl-ed-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cl-ed-file:focus-within { outline: 2px solid var(--pf-a); outline-offset: 2px; }
.cl-ed-crop { margin-top: 0.7rem; padding: 0.7rem; border-radius: 12px; background: rgba(111, 211, 255, 0.06); border: 1px solid rgba(111, 211, 255, 0.3); }
.cl-ed-crop[hidden] { display: none; }
.cl-ed-range { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; font-size: 0.84rem; color: var(--pf-mute); }
.cl-ed-range input { flex: 1; accent-color: #6fd3ff; }
.cl-ed-save { color: #0b0c10; background: linear-gradient(180deg, #8ff0b4, #5fd48a); border-color: transparent; }
.cl-ed-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.6rem; }
.cl-ed-preset { appearance: none; cursor: pointer; display: grid; gap: 0.45rem; padding: 0.35rem 0.35rem 0.5rem; margin: 0; border-radius: 14px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--pf-line-2); color: var(--pf-ink-2, var(--muted)); font: inherit; text-align: left; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.cl-ed-preset-art { display: block; aspect-ratio: 16 / 5; border-radius: 10px; overflow: hidden; background: #1a1d27; }
.cl-ed-preset-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl-ed-preset-name { display: flex; align-items: center; gap: 0.35rem; padding: 0 0.25rem; font-weight: 700; font-size: 0.92rem; }
.cl-ed-preset-name svg { width: 16px; height: 16px; color: var(--pf-a); flex: none; }
.cl-ed-preset:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--pf-a-dim, var(--pf-line-2)); }
.cl-ed-preset:focus-visible { outline: 2px solid var(--pf-a); outline-offset: 3px; }
.cl-ed-preset.is-on { border-color: var(--pf-a); box-shadow: 0 0 0 3px var(--pf-a-dim), 0 0 18px var(--pf-a-dim); color: var(--pf-ink); }
@media (max-width: 720px) { .cl-ed-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cl-ed-presets { grid-template-columns: minmax(0, 1fr); } }
.cl-ed-preset:disabled { opacity: 0.5; cursor: not-allowed; }
.cl-ed-color { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cl-ed-color input[type="color"] { width: 52px; height: 40px; padding: 0; border: 1px solid var(--pf-line-2); border-radius: 10px; background: none; cursor: pointer; }
.cl-ed-hex { font-family: var(--pf-mono); font-size: 0.86rem; color: var(--pf-mute); }
.cl-ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.75rem 1.1rem; border-top: 1px solid var(--pf-line); background: rgba(7,8,13,0.6); }
.cl-ed-status { font-size: 0.84rem; color: var(--pf-mute); }
.cl-ed-status.is-ok { color: #8ff0b4; } .cl-ed-status.is-bad { color: #ff9a8c; }
/* desktop: the page makes room so the preview stays visible beside the panel */
@media (min-width: 1100px) { body.cl-editing .cl-page { padding-right: 420px; } body.cl-editing .cl-page .pf-wrap { width: min(1240px, 100% - 48px); } }
/* phones and tablets: a bottom sheet over the lower part of the page */
@media (max-width: 1099px) {
  .cl-ed { top: auto; left: 0; width: 100%; height: min(72vh, 640px); border-left: 0; border-top: 1px solid var(--pf-line-2); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,0.6); animation-name: cl-sheet; }
  @keyframes cl-sheet { from { transform: translateY(40px); opacity: 0; } }
  body.cl-editing .cl-page { padding-bottom: min(72vh, 640px); }
}
@media (prefers-reduced-motion: reduce) { .cl-ed { animation: none; } .cl-ed-preset { transition: none; } }

/* ---------- stat tile info: a small "i" with a one sentence popover on hover or focus (20261002d) ---------- */
.cl-tile .cl-k { position: relative; }
.cl-info { position: relative; display: inline-flex; margin-left: 0.15rem; }
.cl-info-btn { appearance: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--pf-line-2); background: rgba(255,255,255,0.05); color: var(--pf-mute); font: italic 700 0.68rem/1 Georgia, serif; letter-spacing: 0; text-transform: none; cursor: help; }
.cl-info-btn:hover, .cl-info-btn:focus-visible { color: #0b0c10; background: var(--pf-a); border-color: var(--pf-a); outline: none; }
.cl-info-pop { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: min(260px, 70vw); padding: 0.55rem 0.7rem; border-radius: 10px; font-family: var(--pf-body); font-size: 0.82rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--pf-ink); background: #1a1e2a; border: 1px solid var(--pf-line-2); box-shadow: 0 12px 30px rgba(0,0,0,0.55); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; pointer-events: none; }
.cl-info:hover .cl-info-pop, .cl-info-btn:focus-visible + .cl-info-pop, .cl-info.is-open .cl-info-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* keep the popover inside the tile on narrow screens */
@container pf (max-width: 639px) {
  .cl-tile .cl-info { position: static; }
  .cl-tile { overflow: visible; }
  .cl-info-pop { left: 0.5rem; right: 0.5rem; bottom: calc(100% + 6px); width: auto; max-width: none; transform: translateY(4px); }
  .cl-info:hover .cl-info-pop, .cl-info-btn:focus-visible + .cl-info-pop, .cl-info.is-open .cl-info-pop { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cl-info-pop { transition: none; } }

/* =====================================================================
   CLAN HUB (20261003a): tabs, Home, Events, Recruitment, Manage
   ===================================================================== */
.cl-page[data-tab]:not([data-tab="home"]) .cl-top { min-height: 0; padding-bottom: 1.2rem; }
.cl-page[data-tab]:not([data-tab="home"]) .cl-motto, .cl-page[data-tab]:not([data-tab="home"]) .cl-id-meta { display: none; }
.cl-page[data-tab]:not([data-tab="home"]) .cl-crest { width: clamp(64px, 10cqi, 92px); }
.cl-page[data-tab]:not([data-tab="home"]) .cl-name { font-size: clamp(1.6rem, 5cqi, 2.6rem); }

/* tab bar under the header */
.cl-tabs-bar { position: sticky; top: var(--zl-header-bottom, 0px); z-index: 30; background: linear-gradient(180deg, rgba(7,8,13,0.97), rgba(7,8,13,0.92)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--pf-line); }
.cl-tabs-bar[hidden] { display: none; }
.cl-tabs-inner { display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; padding: 0.45rem 0; }
.cl-tabs-inner::-webkit-scrollbar { display: none; }
.cl-tabs-inner a { flex: none; position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 42px; padding: 0.3rem 0.95rem; border-radius: 12px; font-size: var(--pf-fs-sm); font-weight: 700; color: var(--pf-mute); text-decoration: none; transition: color 0.15s ease, background 0.15s ease; }
.cl-tabs-inner a:hover { color: var(--pf-ink); background: rgba(255,255,255,0.04); }
.cl-tabs-inner a .pf-i { opacity: 0.75; }
.cl-tabs-inner a.is-on { color: var(--pf-ink); background: var(--pf-a-dim); }
.cl-tabs-inner a.is-on::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -0.45rem; height: 3px; border-radius: 3px 3px 0 0; background: var(--pf-a); box-shadow: 0 0 12px var(--pf-a); }
.cl-tabs-inner a.is-on .pf-i { opacity: 1; color: var(--pf-a); }
.cl-tabs-inner a:focus-visible { outline: 2px solid var(--pf-a); outline-offset: -2px; }
.cl-tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 0.35rem; border-radius: 999px; font-family: var(--pf-mono); font-size: 0.7rem; color: #0b0c10; background: var(--pf-a); }
.cl-panel { padding-top: 0.4rem; animation: cl-rise 0.35s var(--pf-ease) both; }

/* shared blocks */
.cl-card-b { position: relative; padding: 1rem 1.1rem; border-radius: 18px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.cl-card-b + .cl-card-b, .cl-home-main > * + *, .cl-home-side > * + * { margin-top: 1rem; }
.cl-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.7rem; }
.cl-card-h h3 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-family: var(--pf-display); font-weight: 800; font-size: 1.12rem; color: var(--pf-ink); }
.cl-card-h h3 .pf-i { color: var(--pf-a); }
.cl-more { flex: none; font-size: 0.84rem; font-weight: 700; color: var(--pf-a-ink); text-decoration: none; white-space: nowrap; }
.cl-more:hover { color: #fff; text-decoration: underline; }
.cl-sec-head .cl-more { margin-left: auto; }
.cl-muted { margin: 0; font-size: 0.86rem; color: var(--pf-faint); }
.cl-gap { margin: 0.8rem 0; }
.cl-ok { display: flex; align-items: center; gap: 0.4rem; margin: 0.4rem 0 0; font-weight: 700; font-size: 0.9rem; color: #8ff0b4; }
.cl-quote { margin: 0.35rem 0 0; font-style: italic; color: var(--pf-mute); overflow-wrap: anywhere; }
.cl-subh { margin: 1.4rem 0 0.6rem; font-family: var(--pf-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pf-faint); }
.cl-vis { display: inline-flex; align-items: center; padding: 0.02rem 0.45rem; border-radius: 999px; font-family: var(--pf-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c9b8ff; border: 1px solid rgba(167, 123, 255, 0.45); background: rgba(167, 123, 255, 0.1); vertical-align: middle; }
.cl-btn-go { color: #0b0c10; border-color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--pf-a) 55%, #fff), var(--pf-a)); box-shadow: 0 0 16px var(--pf-a-dim); }
.cl-btn-go .pf-i { color: #0b0c10; }
.cl-btn-go:hover { filter: brightness(1.08); }
.pf-btn.is-danger { color: #fff; background: #b3261e; border-color: #b3261e; }
.cl-inline-err { margin: 0.4rem 0 0; font-size: 0.84rem; color: #ff9a8c; }
.cl-tag.is-masked { letter-spacing: 0.2em; }
code { font-family: var(--pf-mono); font-size: 0.86em; padding: 0.05rem 0.35rem; border-radius: 6px; background: rgba(255,255,255,0.07); color: var(--pf-ink); }

/* HOME: balanced two columns, nothing dominates */
.cl-home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; margin-top: 1.2rem; }
@container pf (max-width: 899px) { .cl-home { grid-template-columns: 1fr; } }
.cl-tiles.is-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.cl-tiles.is-home .cl-tile { padding: 0.75rem 0.85rem; }
.cl-tiles.is-home .cl-tile-v { font-size: 1.25rem; display: flex; align-items: baseline; gap: 0.3rem; }
.cl-tiles.is-home .cl-tile-v .is-date { font-family: var(--pf-body); font-size: 1.02rem; }
.cl-announce { border-color: color-mix(in srgb, var(--pf-a) 45%, transparent); background: radial-gradient(120% 140% at 0% 0%, var(--pf-a-dim), transparent 60%), var(--pf-panel); }
.cl-announce-b { margin: 0; white-space: pre-line; line-height: 1.6; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-announce-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; font-weight: 700; color: var(--pf-a-ink); text-decoration: none; }
.cl-announce-link:hover { text-decoration: underline; color: #fff; }
.cl-announce-more { margin-top: 0.7rem; }
.cl-announce-more summary { cursor: pointer; font-size: 0.86rem; font-weight: 700; color: var(--pf-mute); }
.cl-announce-old { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--pf-line); }
.cl-announce-old b { margin-right: 0.5rem; }
.cl-announce-old p { margin: 0.25rem 0 0; color: var(--pf-mute); white-space: pre-line; }
.cl-next-b { display: flex; gap: 0.9rem; align-items: flex-start; }
.cl-ev-type { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; color: var(--pf-a); background: var(--pf-a-dim); border: 1px solid var(--pf-a-line); }
.is-raid .cl-ev-type { color: #ff8a6a; background: rgba(255, 90, 60, 0.12); border-color: rgba(255, 90, 60, 0.4); }
.is-build .cl-ev-type { color: #ffd88a; background: rgba(255, 194, 74, 0.12); border-color: rgba(255, 194, 74, 0.4); }
.is-wraith .cl-ev-type { color: #c9a2ff; background: rgba(167, 123, 255, 0.14); border-color: rgba(167, 123, 255, 0.45); }
.is-social .cl-ev-type { color: #8ff0b4; background: rgba(95, 212, 138, 0.12); border-color: rgba(95, 212, 138, 0.4); }
.cl-next-t { margin: 0; font-family: var(--pf-display); font-weight: 800; font-size: 1.25rem; color: var(--pf-ink); }
.cl-next-w { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--pf-mute); }
.cl-countdown { margin: 0.35rem 0 0; display: inline-flex; padding: 0.1rem 0.55rem; border-radius: 999px; font-family: var(--pf-mono); font-size: 0.78rem; font-weight: 700; color: #0b0c10; background: var(--pf-a); }
.cl-event-k .cl-countdown { margin: 0 0 0 0.4rem; }
.cl-next-foot, .cl-event-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.85rem; }
.cl-rsvp-n { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--pf-mute); }
.cl-rsvp-n b { font-family: var(--pf-mono); color: var(--pf-ink); }
.cl-rsvp-n b.is-going { color: #8ff0b4; }
.cl-rsvp { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cl-rsvp .pd-chip { min-height: 36px; }
.cl-rsvp .cl-rsvp-going[aria-pressed="true"] { color: #0b0c10; background: linear-gradient(180deg, #8ff0b4, #5fd48a); border-color: transparent; }
.cl-rsvp .cl-rsvp-no[aria-pressed="true"] { color: #ffd0c8; background: rgba(255, 90, 74, 0.15); border-color: rgba(255, 90, 74, 0.5); }
.cl-rsvp-names { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; margin: 0.6rem 0 0; font-size: 0.84rem; }
.cl-rsvp-names > span { font-family: var(--pf-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-faint); }
.cl-rsvp-names .zl-user { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--pf-mute); text-decoration: none; }
.cl-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.cl-strip a { position: relative; display: block; }
.cl-strip-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 35% 30%, #2a2f3d, #10131b); box-shadow: 0 0 0 2px #10131b, 0 0 0 3.5px var(--pf-a-line); font-family: var(--pf-display); font-weight: 800; color: var(--pf-a-ink); transition: transform 0.15s ease; }
.cl-strip a:hover .cl-strip-av { transform: translateY(-2px); box-shadow: 0 0 0 2px #10131b, 0 0 0 3.5px var(--pf-a); }
.cl-strip .cl-role-ico { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #10131b; padding: 1px; }
.cl-strip-sum { margin: 0.6rem 0 0; font-size: 0.84rem; color: var(--pf-faint); }
.cl-rare-row { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; }
@container pf (max-width: 639px) { .cl-rare-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cl-rare-row a { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.5rem 0.2rem; border-radius: 12px; text-align: center; color: var(--pf-mute); text-decoration: none; font-size: 0.74rem; font-weight: 600; line-height: 1.2; }
.cl-rare-row a:hover { background: rgba(255,255,255,0.04); color: var(--pf-ink); }
.cl-rare-row .cl-medal { width: 48px; height: 48px; }
.cl-rare-row li.is-uncommon .cl-medal { --ring: #5fd48a; } .cl-rare-row li.is-rare .cl-medal { --ring: #4aa8ff; } .cl-rare-row li.is-epic .cl-medal { --ring: #a77bff; } .cl-rare-row li.is-mythic .cl-medal { --ring: #ff4a8a; } .cl-rare-row li.is-legendary .cl-medal { --ring: #ffc24a; }
.cl-rare-row span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-tl.is-compact::before { left: 0.95rem; }
.cl-tl.is-compact .cl-ev { padding: 0.3rem 0; }
.cl-tl.is-compact .cl-ev-ico { width: 1.6rem; height: 1.6rem; }
.cl-recruit-state { margin: 0 0 0.5rem; }
.cl-recruit-pitch { margin: 0; color: var(--pf-ink); line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; white-space: pre-line; }
.cl-recruit-pitch.is-big { display: block; font-size: 1.08rem; -webkit-line-clamp: unset; }
.cl-ptags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.cl-ptag { display: inline-flex; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--pf-a-ink); background: var(--pf-a-dim); border: 1px solid var(--pf-a-line); }
.cl-recruit-card .pf-btn { margin-top: 0.4rem; }

/* MEMBERS */
.cl-msearch { margin: 1rem 0 1.1rem; max-width: 340px; }
.cl-new { display: inline-flex; align-items: center; padding: 0.02rem 0.45rem; border-radius: 999px; font-family: var(--pf-body); font-size: 0.7rem; font-weight: 700; color: #0b0c10; background: linear-gradient(180deg, #8ff0b4, #5fd48a); }

/* HISTORY */
.cl-hfilters { margin: 0 0 1rem; }

/* EVENTS */
.cl-sec-act { display: flex; justify-content: flex-end; margin: -0.3rem 0 0.9rem; }
.cl-events { list-style: none; display: grid; gap: 0.8rem; margin: 0; padding: 0; }
.cl-event { display: flex; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.cl-event.is-editing { display: block; }
.cl-event.is-past { opacity: 0.72; }
.cl-event-b { flex: 1; min-width: 0; }
.cl-event-k { margin: 0; font-family: var(--pf-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-faint); }
.cl-event h3 { margin: 0.25rem 0 0; font-family: var(--pf-display); font-weight: 800; font-size: 1.2rem; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-event-w { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--pf-mute); }
.cl-event-d { margin: 0.5rem 0 0; white-space: pre-line; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-event-lead { display: flex; gap: 0.4rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed var(--pf-line); }
@container pf (max-width: 639px) { .cl-event { flex-direction: column; } .cl-ev-type { width: 42px; height: 42px; font-size: 1.2rem; } }

/* FORMS */
.cl-form { display: grid; gap: 0.75rem; margin: 0 0 1.2rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,0.025); border: 1px solid var(--pf-line-2); }
.cl-form h3 { margin: 0; font-family: var(--pf-display); font-size: 1.1rem; }
.cl-f { display: grid; gap: 0.3rem; min-width: 0; }
.cl-f > span { font-family: var(--pf-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-faint); }
.cl-f .pd-input { width: 100%; padding-left: 0.9rem; border-radius: 12px; }
.cl-f textarea.pd-input { min-height: 90px; resize: vertical; line-height: 1.5; padding-top: 0.6rem; }
.cl-f input[type="datetime-local"] { color-scheme: dark; }
.cl-f em { font-style: normal; font-size: 0.82rem; color: #ff9a8c; }
.cl-f em:empty { display: none; }
.cl-f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@container pf (max-width: 639px) { .cl-f-row { grid-template-columns: 1fr; } }
.cl-count { justify-self: end; font-family: var(--pf-mono); font-size: 0.74rem; color: var(--pf-faint); }
.cl-form-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cl-form-msg { font-size: 0.86rem; color: var(--pf-mute); }
.cl-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--pf-ink); }
.cl-check input { width: 18px; height: 18px; accent-color: var(--pf-a); }
.cl-interest { margin: 0.8rem 0 0; padding: 0.8rem; }
.cl-interest-done { margin-top: 0.6rem; }

/* RECRUITMENT */
.cl-recruit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@container pf (max-width: 899px) { .cl-recruit-grid { grid-template-columns: 1fr; } }
.cl-recruit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.cl-recruit-head p { margin: 0; color: var(--pf-mute); }
.cl-reqs { list-style: none; display: grid; gap: 0.4rem; margin: 0; padding: 0; }
.cl-reqs li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--pf-ink); }
.cl-reqs .pf-i { color: #8ff0b4; margin-top: 0.15rem; }
.cl-howto { margin: 0 0 0.4rem; font-family: var(--pf-display); font-size: 1.05rem; }
.cl-recruit-side p { color: var(--pf-mute); font-size: 0.92rem; line-height: 1.55; }
.cl-lead-note { display: flex; align-items: center; gap: 0.4rem; margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px dashed var(--pf-line); }
.cl-lead-note a { color: var(--pf-a-ink); font-weight: 700; }

/* MANAGE */
.cl-manage { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
@container pf (max-width: 899px) { .cl-manage { grid-template-columns: 1fr; } }
.cl-msub { position: sticky; top: calc(var(--zl-header-bottom, 0px) + 70px); display: grid; gap: 0.25rem; padding: 0.5rem; border-radius: 16px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
@container pf (max-width: 899px) { .cl-msub { position: static; display: flex; flex-wrap: wrap; } .cl-msub-who, .cl-msub-lock { flex-basis: 100%; } }
.cl-msub-b { appearance: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; min-height: 40px; padding: 0.3rem 0.75rem; border-radius: 10px; border: 0; background: none; font: inherit; font-size: var(--pf-fs-sm); font-weight: 700; color: var(--pf-mute); text-align: left; }
.cl-msub-b:hover { color: var(--pf-ink); background: rgba(255,255,255,0.04); }
.cl-msub-b.is-on { color: var(--pf-ink); background: var(--pf-a-dim); box-shadow: inset 3px 0 0 var(--pf-a); }
.cl-msub-b.is-on .pf-i { color: var(--pf-a); }
.cl-msub-who { margin: 0.4rem 0.4rem 0.2rem; font-size: 0.8rem; color: var(--pf-faint); }
.cl-msub-lock { display: flex; gap: 0.4rem; margin: 0.2rem 0.4rem; font-size: 0.82rem; color: #ffd88a; }
.cl-mbody { min-width: 0; }
.cl-mhead { margin-bottom: 1rem; }
.cl-mhead h2 { margin: 0; font-family: var(--pf-display); font-weight: 800; font-size: clamp(1.3rem, 3.4cqi, 1.7rem); }
.cl-mhead p { margin: 0.35rem 0 0; color: var(--pf-mute); max-width: 70ch; }
.cl-alist, .cl-ilist { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.cl-aitem { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); margin-bottom: 0.8rem; }
.cl-aitem.is-pinned { border-color: var(--pf-a-line); }
.cl-aitem p { margin: 0.3rem 0 0; white-space: pre-line; color: var(--pf-mute); overflow-wrap: anywhere; }
.cl-aitem-t { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0 !important; color: var(--pf-ink) !important; }
.cl-pin { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--pf-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pf-a); }
.cl-aitem-act { flex: none; display: flex; align-items: flex-start; gap: 0.35rem; }
.cl-reqlines { display: grid; gap: 0.4rem; margin-bottom: 0.4rem; }
.cl-reqline { display: flex; gap: 0.35rem; }
.cl-x { appearance: none; flex: none; display: grid; place-items: center; width: 40px; border-radius: 10px; border: 1px solid var(--pf-line-2); background: rgba(255,255,255,0.03); color: var(--pf-faint); cursor: pointer; }
.cl-x:hover { color: #ff9a8c; border-color: rgba(255, 90, 74, 0.5); }
.cl-irow { padding: 0.85rem 1rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-left: 3px solid var(--pf-a); }
.cl-irow.is-done { border-left-color: #5fd48a; } .cl-irow.is-no { border-left-color: var(--pf-faint); opacity: 0.75; }
.cl-irow-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cl-irow-who .zl-user { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--pf-ink); text-decoration: none; }
.cl-irow .pd-chips { margin-top: 0.6rem; }
.cl-perm { width: 100%; max-width: 560px; border-collapse: collapse; }
.cl-perm th, .cl-perm td { padding: 0.7rem 0.6rem; text-align: left; border-bottom: 1px solid var(--pf-line); }
.cl-perm thead th { font-family: var(--pf-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-faint); }
.cl-perm tbody th { font-weight: 600; color: var(--pf-ink); }
.cl-perm td { width: 120px; }
.cl-switch { appearance: none; position: relative; width: 50px; height: 28px; padding: 0; border-radius: 999px; border: 1px solid var(--pf-line-2); background: rgba(255,255,255,0.08); cursor: pointer; transition: background 0.15s ease; }
.cl-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c8cede; transition: transform 0.18s var(--pf-ease); }
.cl-switch[aria-checked="true"] { background: var(--pf-a); border-color: var(--pf-a); }
.cl-switch[aria-checked="true"] span { transform: translateX(22px); background: #0b0c10; }
.cl-switch:focus-visible { outline: 2px solid var(--pf-a); outline-offset: 2px; }
.cl-switch:disabled { opacity: 0.5; cursor: not-allowed; }
.cl-danger { margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px dashed rgba(255, 90, 74, 0.45); background: rgba(255, 90, 74, 0.05); }
.cl-danger h3 { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.4rem; font-size: 1rem; color: #ffb4a8; }
.cl-danger p { margin: 0; color: var(--pf-mute); line-height: 1.6; }

/* the page look editor inside Manage (no drawer) */
.cl-ed.is-inline { position: static; width: auto; height: auto; animation: none; border: 1px solid var(--pf-line-2); border-radius: 18px; box-shadow: none; background: var(--pf-panel); }
.cl-ed.is-inline .cl-ed-head { display: none; }
.cl-ed.is-inline .cl-ed-body { overflow: visible; }
.cl-ed.is-inline [data-ed="close"] { display: none; }
.cl-ed.is-inline .cl-ed-foot { border-radius: 0 0 18px 18px; }

@media (prefers-reduced-motion: reduce) { .cl-panel { animation: none; } .cl-switch span, .cl-strip-av { transition: none; } }

/* ---------- clan gallery (20261003b) ---------- */
.cl-shots { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; margin: 0; padding: 0; }
@container pf (max-width: 639px) { .cl-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-shots a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #10131b; }
.cl-shots img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--pf-ease); }
.cl-shots a:hover img { transform: scale(1.06); }
.cl-gtools { display: grid; gap: 0.6rem; margin-bottom: 1rem; justify-items: start; }
.cl-gtools .cl-form { justify-self: stretch; }
.cl-gnote { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; padding: 0.6rem 0.85rem; border-radius: 12px; font-size: 0.9rem; color: var(--pf-ink); background: rgba(111, 211, 255, 0.07); border: 1px solid rgba(111, 211, 255, 0.3); }
.cl-gnote.is-warn { background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.4); }
.cl-gnote.is-bad { display: block; background: rgba(255, 90, 74, 0.06); border-color: rgba(255, 90, 74, 0.4); }
.cl-gnote.is-bad p { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 700; color: #ffb4a8; }
.cl-gnote ul { margin: 0.4rem 0 0; padding-left: 1.4rem; color: var(--pf-mute); }
.cl-link { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--pf-a-ink); cursor: pointer; text-decoration: underline; }
.cl-link.is-danger { color: #ff9a8c; }
.cl-upload-prev { display: flex; align-items: center; gap: 0.8rem; }
.cl-upload-prev img { max-width: 220px; max-height: 160px; border-radius: 10px; object-fit: contain; background: #0b0d12; }
.cl-gal { columns: 3 260px; column-gap: 0.8rem; }
.cl-shot { position: relative; break-inside: avoid; margin: 0 0 0.8rem; border-radius: 16px; overflow: hidden; background: var(--pf-panel); border: 1px solid var(--pf-line); animation: cl-rise 0.45s var(--pf-ease) both; }
.cl-shot.is-pending { border-color: rgba(255, 176, 32, 0.55); }
.cl-shot-open { appearance: none; display: block; width: 100%; padding: 0; border: 0; background: #0b0d12; cursor: zoom-in; }
.cl-shot-open img { display: block; width: 100%; height: auto; transition: filter 0.2s ease; }
.cl-shot.is-pending .cl-shot-open img { filter: saturate(0.6) brightness(0.8); }
.cl-shot-open:hover img { filter: brightness(1.08); }
.cl-shot-open:focus-visible { outline: 2px solid var(--pf-a); outline-offset: -2px; }
.cl-shot figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; padding: 0.6rem 0.75rem; }
.cl-shot-cap { flex-basis: 100%; font-weight: 600; color: var(--pf-ink); overflow-wrap: anywhere; }
.cl-shot-meta { flex: 1; min-width: 0; font-size: 0.78rem; color: var(--pf-faint); }
.cl-shot-ribbon { position: absolute; z-index: 1; top: 0.5rem; left: 0.5rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #0b0c10; background: linear-gradient(180deg, #ffe08a, #ffb020); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.cl-shot-ribbon.is-inline { position: static; margin: 0.5rem 0 0; }
.cl-like { appearance: none; display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--pf-line-2); background: rgba(255,255,255,0.04); color: var(--pf-mute); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.cl-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cl-like:hover { color: #ff9ad5; border-color: rgba(255, 154, 213, 0.5); }
.cl-like.is-on { color: #ff6fb7; border-color: rgba(255, 111, 183, 0.55); background: rgba(255, 111, 183, 0.1); }
.cl-like.is-on svg { fill: currentColor; }
.cl-like:disabled { opacity: 0.6; cursor: default; }
/* lightbox: fixed, does not move the page behind it */
html.cl-lightbox-on { overflow: hidden; }
.cl-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3.5rem 4rem 1.5rem; }
.cl-lightbox[hidden] { display: none; }
.cl-lightbox-scrim { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cl-lightbox-fig { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.6rem; max-width: min(1400px, 100%); max-height: 100%; margin: 0; }
.cl-lightbox-fig img { max-width: 100%; max-height: calc(100vh - 11rem); border-radius: 12px; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.cl-lightbox-fig figcaption { display: grid; justify-items: center; gap: 0.35rem; text-align: center; color: var(--pf-ink); }
.cl-lightbox-cap { margin: 0; font-weight: 700; font-size: 1.05rem; }
.cl-lightbox-meta { margin: 0; font-size: 0.86rem; color: var(--pf-mute); }
.cl-lightbox-meta a { color: var(--pf-ink); }
.cl-lightbox-x { position: absolute; z-index: 2; top: 0.8rem; right: 0.8rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pf-line-2); background: rgba(20, 23, 33, 0.8); color: #fff; font-size: 1.2rem; cursor: pointer; }
.cl-lightbox-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 12px; border: 1px solid var(--pf-line-2); background: rgba(20, 23, 33, 0.7); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.cl-lightbox-nav.is-prev { left: 0.6rem; } .cl-lightbox-nav.is-next { right: 0.6rem; }
.cl-lightbox-x:focus-visible, .cl-lightbox-nav:focus-visible { outline: 2px solid var(--pf-a); outline-offset: 2px; }
@media (max-width: 640px) { .cl-lightbox { padding: 3.5rem 0.6rem 1rem; } .cl-lightbox-nav { top: auto; bottom: 0.8rem; transform: none; width: 44px; height: 44px; font-size: 1.6rem; } }
/* Manage > Gallery */
.cl-gset { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 1rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.cl-meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.cl-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pf-a), color-mix(in srgb, var(--pf-a) 60%, #fff)); }
.cl-prune { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.86rem; color: var(--pf-mute); }
.cl-prune input { width: 70px; min-height: 36px; padding: 0.2rem 0.5rem; }
.cl-gq { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.cl-gq-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0.8rem; padding: 0.7rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid rgba(255, 176, 32, 0.4); }
.cl-gq-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.cl-gq-row p { margin: 0 0 0.3rem; overflow-wrap: anywhere; }
.cl-rej { margin: 0.4rem 0 0; padding: 0.7rem; }
@container pf (max-width: 639px) { .cl-gq-row { grid-template-columns: 1fr; } }
.cl-gm { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; margin: 0; padding: 0; }
.cl-gm li { padding: 0.5rem; border-radius: 12px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.cl-gm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cl-gm-cap { display: flex; gap: 0.35rem; margin: 0.45rem 0 0.3rem; }
.cl-gm-cap .pd-input { min-height: 36px; padding: 0.3rem 0.6rem; font-size: 0.86rem; border-radius: 9px; }
.cl-gm p { margin: 0; font-size: 0.8rem; }
@media (prefers-reduced-motion: reduce) { .cl-shot, .cl-shots img, .cl-shot-open img { animation: none; transition: none; } }

/* ---------- Manage > Discord webhooks (20261003c) ---------- */
.cl-hbudget { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8rem 1.4rem; margin-bottom: 1rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--pf-panel); border: 1px solid var(--pf-line); }
.cl-hbudget > div { flex: 1 1 260px; display: grid; gap: 0.35rem; }
.cl-meter.is-hot i { background: linear-gradient(90deg, #ffb020, #ff5a4a); }
.cl-hooks { list-style: none; display: grid; gap: 0.8rem; margin: 0 0 1rem; padding: 0; }
.cl-hook { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--pf-panel); border: 1px solid var(--pf-line); border-left: 3px solid #5865f2; }
.cl-hook.is-unconfirmed { border-left-color: #ffb020; } .cl-hook.is-paused { border-left-color: var(--pf-faint); } .cl-hook.is-disabled { border-left-color: #ff5a4a; }
.cl-hook-head { display: flex; gap: 0.75rem; align-items: flex-start; }
.cl-hook-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.25rem; color: #c7ccff; background: rgba(88, 101, 242, 0.18); border: 1px solid rgba(88, 101, 242, 0.45); }
.cl-hook-t { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0 0 0.2rem; font-weight: 800; font-size: 1.02rem; color: var(--pf-ink); }
.cl-hstate { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.08rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; border: 1px solid; }
.cl-hstate::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cl-hstate.is-good { color: #8ff0b4; border-color: rgba(95, 212, 138, 0.4); background: rgba(95, 212, 138, 0.08); }
.cl-hstate.is-warn { color: #ffd88a; border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.08); }
.cl-hstate.is-off { color: var(--pf-mute); border-color: var(--pf-line-2); }
.cl-hstate.is-bad { color: #ff9a8c; border-color: rgba(255, 90, 74, 0.45); background: rgba(255, 90, 74, 0.08); }
.cl-hook-what { margin: 0; font-size: 0.88rem; color: var(--pf-mute); }
.cl-hook-why { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0; padding: 0.55rem 0.75rem; border-radius: 10px; font-size: 0.88rem; color: #ffb4a8; background: rgba(255, 90, 74, 0.07); border: 1px solid rgba(255, 90, 74, 0.35); }
.cl-hook-code { margin: 0; border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.05); }
.cl-hook-code p { margin: 0; color: var(--pf-ink); font-size: 0.9rem; }
.cl-code { max-width: 180px; font-family: var(--pf-mono); font-size: 1.2rem !important; letter-spacing: 0.3em; text-transform: uppercase; }
.cl-hook-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; }
.cl-hook-stats dt { font-family: var(--pf-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-faint); }
.cl-hook-stats dd { margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--pf-ink); }
.cl-hook-stats dd.is-bad { color: #ff9a8c; font-weight: 700; }
.cl-hook-act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--pf-line); }
.cl-hook-log { list-style: none; display: grid; gap: 0.2rem; margin: 0; padding: 0.6rem 0.75rem; border-radius: 10px; background: rgba(0,0,0,0.25); font-size: 0.82rem; }
.cl-hook-log li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 0.6rem; }
.cl-hook-log time { font-family: var(--pf-mono); color: var(--pf-faint); }
.cl-hook-log li.is-ok b { color: #8ff0b4; font-weight: 600; } .cl-hook-log li.is-bad b { color: #ff9a8c; font-weight: 600; }
@container pf (max-width: 639px) { .cl-hook-log li { grid-template-columns: 1fr auto; } .cl-hook-log time { grid-column: 1 / -1; } }
.cl-ferr { font-style: normal; font-size: 0.82rem; color: #ff9a8c; } .cl-ferr:empty { display: none; }

/* clans named after their tag show the tag once, in its color (20261003d) */
.cl-card-name.is-tag { font-family: "JetBrains Mono", monospace; letter-spacing: 0.06em; color: var(--tag, var(--pf-ink)); }

/* Newest member tile: who, then "joined 3 days ago" under it (20261003e) */
.cl-tile.is-who .cl-tile-v, .cl-tiles.is-home .cl-tile.is-who .cl-tile-v { display: grid; gap: 0.2rem; align-items: start; min-width: 0; }
.cl-tile.is-who .zl-user { max-width: 100%; overflow: hidden; }
.cl-tile.is-who .zl-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-tile-sub { font-family: var(--pf-body); font-weight: 600; font-size: 0.82rem; color: var(--pf-ink-2, var(--muted)); }
