/* FTA clan pages — X-style dark feed + Clash chunky buttons + FTA ember. Builds on styles.css */
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lilita-one-latin.woff2") format("woff2"); }
.fta, .fta-nav a, .join-btn, .copy-btn {
  --x-bg: #000; --x-card: #0b0d10; --x-line: #2f3336; --x-text: #e7e9ea; --x-mute: #a4abb1;
  --ember: #ff6a1a; --ember-d: #b8420a; --gold: #ffc533; --gold-d: #b8860b; --blue: #2f8bff; --blue-d: #1553a8;
  --font-title: "Lilita One", "Source Sans 3", system-ui, sans-serif;
}
body[data-page] {
  background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255,106,26,.16), transparent 70%), radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,106,26,.07), transparent 70%), #000;
  background-attachment: scroll; background-repeat: no-repeat;
  color: #e7e9ea; font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.fta { max-width: 36rem; --hub-max: 36rem; padding-top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; padding: .6rem 1rem; background: #e7e9ea; color: #000; border-radius: 999px; z-index: 10; font-weight: 700; }
.skip:focus { top: .5rem; }

/* titles */
.fta .name { font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; font-size: clamp(2rem, 8vw, 2.6rem); color: #fff; text-shadow: 0 2px 0 #b8420a, 0 0 22px rgba(255,106,26,.45); line-height: 1.1; }
.fta .handle { color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.tagline { margin: .4rem 0 0; color: #a4abb1; font-size: 1rem; }

/* nav: sticky pill bar */
.fta-nav { position: sticky; top: 0; z-index: 5; margin: 0 -.25rem 1.1rem; padding: .6rem .25rem; background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #2f3336; }
.fta-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; justify-content: center; }
.fta-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border-radius: 999px; border: 1px solid #2f3336; color: #e7e9ea; text-decoration: none; font-size: 1rem; font-weight: 700; background: transparent; transition: background .15s, border-color .15s; }
.fta-nav a:hover { background: rgba(255,255,255,.08); border-color: #536471; }
.fta-nav a[aria-current="page"] { background: #e7e9ea; color: #000; border-color: #e7e9ea; }
.fta-nav a:focus-visible, .more:focus-visible, .back:focus-visible, .skip:focus, .join-btn:focus-visible, .copy-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* hero */
.fta-hero { text-align: center; margin-bottom: 1rem; }
.fta-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 1rem; border: 1px solid #2f3336; background: #0b0d10; box-shadow: 0 0 40px rgba(255,106,26,.18); }
.fta-hero h1 { margin: 1rem 0 0; }
.fta-sub { text-align: center; margin-bottom: .5rem; }
.fta-sub__logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,106,26,.5)); }
.fta-sub h1 { margin: .4rem 0 0; }

/* cards */
.card { margin-top: .9rem; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid #2f3336; background: #0b0d10; box-shadow: none; position: relative; }
.card::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #ff6a1a, transparent); opacity: .55; }
.card h2 { margin: 0 0 .75rem; font-family: var(--font-title); font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; color: #fff; }
.card h3 { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #a4abb1; font-weight: 700; }
.card p { line-height: 1.5; color: #e7e9ea; }
.about { margin: 0 0 .9rem; color: #e7e9ea; line-height: 1.5; }
.asof, .card .asof { margin: .8rem 0 0; color: #a4abb1; font-size: .8125rem; opacity: 1; }
.card .note { margin: .8rem 0 0; font-size: .875rem; color: #a4abb1; }
.ph-tag { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-family: "Source Sans 3", system-ui, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }

/* chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: flex; flex-direction: column; padding: .45rem .85rem; border-radius: .9rem; background: #16181c; border: 1px solid #2f3336; }
.chip__k { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #a4abb1; font-weight: 700; }
.chip__v { font-family: var(--font-title); font-weight: 400; font-size: 1.3rem; color: var(--gold); line-height: 1.25; }

/* chunky buttons */
.cta-row { display: grid; gap: .8rem; margin-top: 1.1rem; }
.join-btn { display: flex; align-items: center; justify-content: center; min-height: 3.4rem; margin: 0; padding: .8rem 1.25rem; border-radius: 999px; border: 0; background: linear-gradient(180deg, #ff8a3d, #ff6a1a); color: #1a0a00; font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; text-align: center; text-decoration: none; box-shadow: 0 5px 0 #b8420a, 0 8px 18px rgba(255,106,26,.3); transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, filter .15s; }
.join-btn:hover { filter: brightness(1.08); }
.join-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b8420a, 0 2px 6px rgba(255,106,26,.25); }
.cta-row a.join-btn.join-btn--game { background: linear-gradient(180deg, #4ba0ff, #2f8bff); color: #fff; box-shadow: 0 5px 0 #1553a8, 0 8px 18px rgba(47,139,255,.28); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.cta-row a.join-btn.join-btn--game:hover { background: linear-gradient(180deg, #4ba0ff, #2f8bff); filter: brightness(1.08); }
.cta-row a.join-btn.join-btn--game:active { box-shadow: 0 1px 0 #1553a8; }
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .6rem .8rem; border-radius: 1rem; background: #16181c; border: 1px solid #2f3336; }
.tagbox__k { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: #a4abb1; font-weight: 700; }
.tagbox__v { font-size: 1.1rem; letter-spacing: .06em; color: #fff; font-weight: 700; }
.copy-btn { margin-left: auto; min-height: 2.75rem; padding: .4rem 1.1rem; border-radius: 999px; border: 0; background: linear-gradient(180deg, #ffd35c, #ffc533); color: #2a1c00; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #b8860b; transition: transform .08s, box-shadow .08s; }
.copy-btn:hover { filter: brightness(1.06); }
.copy-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8860b; }

/* feed-like rows */
.rows { margin: 0; }
.rows .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; padding: .7rem 0; border-top: 1px solid #2f3336; }
.rows dt { color: #a4abb1; font-size: .875rem; font-weight: 600; }
.rows dd { margin: 0; text-align: right; color: #e7e9ea; font-weight: 600; }
.is-ph dd, .war.is-ph .war__res { color: #a4abb1; font-style: italic; }
.latest-war { display: flex; flex-direction: column; gap: .15rem; margin: 0 0 .5rem; padding: .85rem 1rem; border-radius: .9rem; background: #16181c; border: 1px solid #2f3336; }
.latest-war__k { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #a4abb1; font-weight: 700; }
.latest-war__v { font-family: var(--font-title); font-weight: 400; font-size: 1.9rem; color: #fff; line-height: 1.2; }
.latest-war.war--victory .latest-war__v { color: #5fe08a; }
.latest-war__d { color: #a4abb1; font-size: .9rem; }
.more { display: inline-block; margin-top: .6rem; color: #4ba0ff; font-weight: 700; text-underline-offset: 3px; }
.wars { list-style: none; margin: 0; padding: 0; }
.war { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; padding: .75rem 0; border-top: 1px solid #2f3336; }
.war__date { color: #a4abb1; font-size: .875rem; min-width: 6.5rem; }
.war__res { font-weight: 800; color: #e7e9ea; }
.war--victory .war__res { color: #5fe08a; }
.war--draw .war__res { color: var(--gold); }
.war--defeat .war__res, .war--loss .war__res { color: #ff7a7a; }
.war__detail { color: #a4abb1; font-size: .9rem; }

/* record */
.record { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; padding: .75rem .4rem; border-radius: .9rem; background: #16181c; border: 1px solid #2f3336; }
.stat dd { margin: 0; }
.stat__n { font-family: var(--font-title); font-weight: 400; font-size: 2.3rem; line-height: 1.1; color: var(--gold); }
.stat__l { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #a4abb1; font-weight: 700; margin-top: .2rem; }

/* leaderboards */
.lb { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.lb li { counter-increment: lb; display: flex; gap: .7rem; padding: .6rem 0; border-top: 1px solid #2f3336; align-items: center; }
.lb li::before { content: counter(lb); flex: none; min-width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #16181c; border: 1px solid #2f3336; color: #a4abb1; font-size: .8125rem; font-weight: 800; }
.lb li:nth-child(1)::before { background: var(--gold); border-color: var(--gold); color: #2a1c00; }
.lb li:nth-child(2)::before { background: #c9d1d9; border-color: #c9d1d9; color: #111; }
.lb li:nth-child(3)::before { background: #e08a4a; border-color: #e08a4a; color: #2a1000; }
.lb__n { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-right: 1rem; font-weight: 700; color: #fff; }
.lb__v { font-family: var(--font-title); font-weight: 400; font-size: 1.2rem; min-width: 4.5rem; text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }

.back { display: inline-block; margin-top: 1.5rem; color: #a4abb1; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.back-wrap { text-align: center; }
.noscript { text-align: center; color: #a4abb1; }
.footer p { color: #a4abb1; opacity: .8; }
@media (max-width: 400px) { .rows dd { text-align: left; } .join-btn { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .join-btn, .copy-btn { transition: none; } }
body[data-page] { min-height: 100vh; }
