/* ABC Team — site styles. Single dark theme derived from the clan crest. */
/* Layout concept: a fortress wall. Each band is a rampart whose top edge is crenellated,
   echoing the tower in the crest. Red is the banner colour, used sparingly. */
:root {
  --ground: #131012;      /* night stone */
  --rampart: #1c181a;     /* wall face */
  --stone: #2b2528;       /* mortar lines, raised edges */
  --ash: #9d9598;         /* secondary text */
  --bone: #f2ede8;        /* primary text */
  --banner: #e2252b;      /* the flag red from the crest */
  --banner-deep: #7d1216;
  --win: #74c08e;
  --lose: #e0605a;
  --tie: #c9b26b;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --merlon: 34px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bone); color: var(--ground); padding: 8px 12px; }
body { background: var(--ground); color: var(--bone); font: 400 16px/1.6 var(--body); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--banner); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.num { font-variant-numeric: tabular-nums; }


/* header */
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stone); }
header.site .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font: 900 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand b span { color: var(--banner); }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ash); }
nav a:hover, nav a[aria-current] { color: var(--bone); }
.lang { display: flex; border: 1px solid var(--stone); border-radius: 4px; overflow: hidden; }
.lang a { text-decoration: none; display: block; color: var(--ash); font: 700 .78rem/1 var(--body); padding: 8px 10px; letter-spacing: .08em; }
.lang a[aria-current] { background: var(--bone); color: var(--ground); }

/* hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(60% 70% at 78% 45%, color-mix(in srgb, var(--banner) 26%, transparent), transparent 70%), var(--ground); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-block: 56px 72px; }
.hero h1 { font-size: clamp(3.6rem, 9vw, 7.4rem); font-weight: 900; }
.hero h1 em { font-style: normal; display: block; color: transparent; -webkit-text-stroke: 2px var(--banner); }
.hero p.lead { font-size: 1.12rem; color: var(--ash); max-width: 34em; margin: 22px 0 28px; }
.hero p.lead strong { color: var(--bone); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 .95rem/1 var(--body); padding: 14px 20px; border-radius: 4px; border: 1px solid var(--stone); cursor: pointer; background: none; color: var(--bone); }
.btn.primary { background: var(--banner); border-color: var(--banner); }
.btn.primary:hover { background: #c81d23; }
.btn:not(.primary):hover { border-color: var(--ash); }
.tag { font: 600 .9rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; }
.crest { justify-self: center; width: min(100%, 460px); aspect-ratio: 1; max-width: 100%;
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%); }
.crest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: .86rem; color: var(--ash); }
.reqs b { color: var(--bone); font-weight: 600; }

/* ramparts */
.rampart { position: relative; background: var(--rampart); margin-top: var(--merlon); }
.rampart::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--merlon) * -1 + 1px); height: var(--merlon);
  background: linear-gradient(90deg, var(--rampart) 0 58%, transparent 58% 100%) 0 0 / calc(var(--merlon) * 2.2) 100% repeat-x; }
.rampart > .wrap { padding-block: 40px 56px; }

/* war band */
.war { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.war .state { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--banner); }
.war .state i { width: 8px; height: 8px; border-radius: 50%; background: var(--banner); box-shadow: 0 0 0 0 var(--banner); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.versus { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.versus h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.versus .vs { font: 900 1.1rem/1 var(--display); color: var(--ash); }
.versus small { display: block; color: var(--ash); font-size: .85rem; margin-top: 6px; }
.clock { text-align: right; }
.clock .t { font: 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); }
.clock .eyebrow { display: block; margin-bottom: 8px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--stone); margin-top: 36px; }
.stat { padding: 22px 18px 0 0; border-right: 1px solid var(--stone); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 18px; }
.stat .v { font: 800 2.3rem/1 var(--display); margin: 10px 0 6px; }
.stat .v .w { color: var(--win); } .stat .v .l { color: var(--lose); } .stat .v .t { color: var(--tie); }
.stat .s { font-size: .85rem; color: var(--ash); }

/* sections on ground */
section.plain > .wrap { padding-block: 64px 24px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.head a { color: var(--ash); font-weight: 600; font-size: .9rem; text-decoration: none; }
.head a:hover { color: var(--bone); }
.cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; }
.cols > * { min-width: 0; }

/* war log */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.res { font: 800 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 7px 0; border-radius: 3px; border: 1px solid currentColor; }
.res.win { color: var(--win); } .res.lose { color: var(--lose); } .res.tie { color: var(--tie); }
.log .opp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .meta { font-size: .82rem; color: var(--ash); }
.log .score { text-align: right; font: 800 1.35rem/1 var(--display); }
.log .score span { color: var(--ash); font-weight: 600; }
.log .score small { display: block; font: 500 .78rem/1.4 var(--body); color: var(--ash); }

/* raid */
.raid-total { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.raid-total div .v { font: 800 2rem/1 var(--display); }
.raid-total div .s { font-size: .82rem; color: var(--ash); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .92rem; }
.bars .track { grid-column: 1 / -1; height: 6px; background: var(--stone); border-radius: 3px; overflow: hidden; }
.bars .fill { height: 100%; background: linear-gradient(90deg, var(--banner-deep), var(--banner)); }
.bars .amt { color: var(--ash); }

/* roster */
.roster { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.roster > * { min-width: 0; }
.th { display: grid; gap: 7px; }
.th .row { display: grid; grid-template-columns: 52px 1fr 26px; gap: 10px; align-items: center; font-size: .86rem; }
.th .row b { font: 800 1rem/1 var(--display); }
.th .bar { height: 14px; background: var(--stone); border-radius: 2px; }
.th .bar span { display: block; height: 100%; background: var(--bone); border-radius: 2px; }
.th .row.hi .bar span { background: var(--banner); }
.th .row em { font-style: normal; color: var(--ash); text-align: right; }
.board { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.board li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--stone); font-size: .94rem; }
.board li::before { content: counter(r); font: 800 1.05rem/1.5 var(--display); color: var(--ash); }
.board li:first-child::before { color: var(--banner); }
.board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who small { color: var(--ash); margin-left: 6px; }
.board .val { font-weight: 700; }
h3.sub { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone); }
.rule { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--stone); }
.rule:not(:nth-child(3n)) { border-right: 1px solid var(--stone); }
.rule:not(:nth-child(3n+1)) { padding-left: 24px; }
.rule h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.rule p { margin: 0; color: var(--ash); font-size: .94rem; }
.rule p b { color: var(--bone); font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: 0; margin: 0 2px; }

/* join */
.join .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.join h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.join p { color: var(--ash); margin: 12px 0 0; max-width: 40em; }

footer { border-top: 1px solid var(--stone); margin-top: 0; }
footer .wrap { padding-block: 28px 40px; display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: .82rem; color: var(--ash); }
footer p { margin: 0; max-width: 62em; }

@media (max-width: 960px) {
  nav { display: none; }
  .lang { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 56px; }
  .crest { order: -1; width: min(70%, 320px); }
  .war { grid-template-columns: 1fr; gap: 16px; }
  .clock { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--stone); padding: 18px 0 16px !important; }
  .stat:nth-child(odd) { padding-right: 12px !important; }
  .cols, .roster { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 20px 0 !important; border-right: 0 !important; }
  .join .wrap, footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .war .state i { animation: none; } }

/* ---- inner pages ---- */
.page-head { background:
  radial-gradient(50% 120% at 85% 0%, color-mix(in srgb, var(--banner) 18%, transparent), transparent 70%), var(--ground); }
.page-head .wrap { padding-block: 48px 8px; }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; }
.page-head p { color: var(--ash); max-width: 46em; margin: 14px 0 0; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: var(--ash); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--stone); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font: 600 .74rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); padding: 14px 12px 12px 0; border-bottom: 1px solid var(--stone); white-space: nowrap; }
table.data td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--stone); vertical-align: middle; }
table.data .r { text-align: right; }
table.data tbody tr:hover td { background: color-mix(in srgb, var(--rampart) 70%, transparent); }
table.data .name { font-weight: 600; }
table.data .muted, .muted { color: var(--ash); }
.role { display: inline-block; font: 700 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; border: 1px solid var(--stone); color: var(--ash); white-space: nowrap; }
.role.leader { border-color: var(--banner); color: var(--bone); background: var(--banner-deep); }
.role.coLeader { border-color: var(--banner); color: var(--bone); }
.role.admin { color: var(--bone); }
.thb { font: 800 1rem/1 var(--display); }
.kind { font: 700 .68rem/1 var(--body); letter-spacing: .1em; color: var(--tie); margin-left: 6px; }

.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ash); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--stone); margin-bottom: 40px; }
.summary .stat:first-child { padding-left: 0; }
.empty { color: var(--ash); padding: 18px 0; }

@media (max-width: 960px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  table.data .opt { display: none; }
}

/* player profile */
.player-head .who { display: flex; gap: 22px; align-items: center; }
.player-head h1 { overflow-wrap: anywhere; }
.th-badge { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border: 2px solid var(--banner); border-radius: 6px;
  font: 900 2.6rem/1 var(--display); background: var(--rampart); }
.th-badge small { font: 700 .7rem/1 var(--body); letter-spacing: .14em; color: var(--ash); margin-bottom: -14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; color: var(--ash); font-size: .9rem; }
.facts .btn.tag { padding: 7px 10px; font-size: .82rem; }
.facts a { text-decoration: none; font-weight: 600; }
.facts a:hover { color: var(--bone); }
.summary:has(+ .summary) { margin-bottom: 0; }
.summary + .summary { border-top: 0; }
.stat .v .of { color: var(--ash); font-size: 1.2rem; }
.heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hero-card { border: 1px solid var(--stone); border-radius: 6px; padding: 16px; background: var(--ground); }
.hero-card .lvl { display: flex; align-items: baseline; justify-content: space-between; }
.hero-card .lvl b { font: 900 2.4rem/1 var(--display); }
.hero-card .lvl small { color: var(--ash); font-size: .78rem; }
.hero-card h3 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 10px; }
.hero-card .track { display: block; height: 5px; background: var(--stone); border-radius: 3px; overflow: hidden; }
.hero-card .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--banner-deep), var(--banner)); }
.hero-card ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: .85rem; display: grid; gap: 4px; }
.hero-card li { display: flex; justify-content: space-between; gap: 10px; }
.hits { display: grid; gap: 4px; justify-items: end; }
.hit { font-size: .85rem; white-space: nowrap; }
.hit .stars { color: var(--tie); letter-spacing: -.04em; }
.hit .stars .off { color: var(--stone); }
.hit.miss { color: var(--lose); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
table.data .name a { text-decoration: none; }
table.data .name a:hover { text-decoration: underline; }
.board .who a { text-decoration: none; }
.board .who a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .th-badge { width: 64px; height: 64px; font-size: 2rem; }
  .player-head .who { gap: 14px; }
}

/* error pages */
.error-page .wrap { padding-block: 72px 80px; }
.error-page .code { font: 900 clamp(6rem, 22vw, 12rem)/.85 var(--display); color: transparent; -webkit-text-stroke: 2px var(--banner); }
.error-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; margin-top: 18px; }
.error-page p { color: var(--ash); max-width: 38em; font-size: 1.08rem; margin: 16px 0 28px; }
.error-page .links { margin-top: 36px; color: var(--ash); font-size: .9rem; }
.error-page .links a { color: var(--bone); font-weight: 600; margin-right: 18px; text-decoration: none; }
.error-page .links a:hover { text-decoration: underline; }

/* records */
.hall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.hall > * { min-width: 0; }
.board li.empty { display: block; }
.board li.empty::before { content: none; }
@media (max-width: 960px) { .hall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hall { grid-template-columns: 1fr; } }

/* mobile menu (nav is hidden below 960px) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 38px; border: 1px solid var(--stone); border-radius: 4px;
  display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--bone); position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--rampart); border: 1px solid var(--stone);
  border-radius: 6px; padding: 8px; display: grid; box-shadow: 0 12px 32px rgb(0 0 0 / .45); }
.menu-panel a { text-decoration: none; font-weight: 600; color: var(--ash); padding: 11px 12px; border-radius: 4px; }
.menu-panel a:hover, .menu-panel a[aria-current] { color: var(--bone); background: var(--stone); }
@media (max-width: 960px) { .menu { display: block; } }

/* guides */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; border: 1px solid var(--stone); border-radius: 6px;
  background: var(--rampart); padding: 0 0 20px; overflow: hidden; }
.guide-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; display: block; margin-bottom: 8px; }
.guide-card > :not(img) { margin: 0 20px; }
.guide-card h2 { font-size: 1.8rem; }
.guide-card p { color: var(--ash); font-size: .94rem; flex: 1; }
.guide-card .more { font-weight: 600; color: var(--banner); }
.guide-card:hover { border-color: var(--ash); }
.guide-card:hover h2 { color: var(--bone); text-decoration: underline; text-decoration-thickness: 2px; }
.guide-date { font-size: .85rem !important; margin-top: 10px !important; }
.guide { max-width: 60em; }
.guide-step + .guide-step { margin-top: 56px; }
.guide-step h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 16px; }
.guide-step p { color: var(--ash); max-width: 46em; }
.guide-step p strong, .guide-step li strong { color: var(--bone); font-weight: 600; }
.guide-step figure { margin: 0 0 20px; }
.guide-step figure img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--stone); }
/* Step numbers styled like the red markers on the screenshots */
ol.markers { list-style: none; counter-reset: marker; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; max-width: 46em; }
ol.markers li { counter-increment: marker; position: relative; padding-left: 44px; min-height: 30px; color: var(--ash); }
ol.markers li::before { content: counter(marker); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--banner); color: #fff; font: 800 .95rem/1 var(--body); }
.guide-others { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--stone); }
.guide-others a { font-weight: 600; text-decoration: none; }
.guide-others a:hover { text-decoration: underline; }

/* CWL */
.stat .v .of, .raid-total .v .of { color: var(--ash); font-size: 1.2rem; }
.stat .v.name-v { font-size: 1.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .v.name-v a { text-decoration: none; }
.league.up { color: var(--win); } .league.down { color: var(--lose); }
.plain-link { color: inherit; text-decoration: none; } .plain-link:hover { color: var(--bone); }
table.data img.badge { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
table.data tr.us td { background: color-mix(in srgb, var(--banner) 14%, transparent); }
.board.cwl-table li.us .who { color: var(--banner); font-weight: 700; }
.note { color: var(--ash); font-size: .85rem; margin: 12px 0 0; }
.pr { display: inline-flex; gap: 3px; }
.pr i { width: 20px; height: 20px; font: 700 .72rem/20px var(--body); font-style: normal; text-align: center; border-radius: 3px; background: var(--stone); color: var(--ash); }
.pr i.s3 { background: var(--banner); color: var(--bone); }
.pr i.s2 { background: color-mix(in srgb, var(--banner) 45%, var(--stone)); color: var(--bone); }
.pr i.miss { background: transparent; border: 1px solid var(--lose); color: var(--lose); line-height: 18px; }
.pr i.out { background: transparent; border: 1px dashed var(--stone); }
