:root {
  color-scheme: dark;
  --bg: #0a1111;
  --panel: #111a19;
  --panel-strong: #16201e;
  --edge: #2a3934;
  --ink: #f3f6ef;
  --muted: #b3c1b8;
  --accent: #c5fa58;
  --font: "Inter", "Aptos", system-ui, sans-serif;
  --display: "Arial Narrow", "Aptos Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 1280px); margin-inline: auto; }
.skip { left: 1rem; position: fixed; top: -12rem; z-index: 3; background: var(--accent); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

.site-header { border-bottom: 1px solid #22302c; background: #0a1111; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 1.25rem; }
.wordmark { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; color: white; font-size: 1.22rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.wordmark small { font-size: .66rem; font-weight: 760; letter-spacing: .14em; margin-left: .42rem; color: var(--muted); }
.wordmark-accent { color: var(--accent); }
.logo-mark { display: grid; place-items: center; width: 33px; height: 31px; background: var(--accent); color: var(--bg); border-radius: 4px; font: 900 1.3rem/1 var(--font); }
.header-inner nav { display: flex; gap: clamp(1rem, 3.7vw, 3rem); color: #d6dfd5; font-weight: 620; font-size: .91rem; }
.header-inner nav a:hover, .footer-links a:hover { color: var(--accent); }
.languages { justify-self: end; position: relative; z-index: 2; font-size: .86rem; }
.languages summary { list-style: none; border: 1px solid var(--edge); padding: .47rem .75rem; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: ""; display: inline-block; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.13rem) rotate(45deg); width: .38rem; height: .38rem; margin-left: .65rem; }
.languages ul { background: var(--panel-strong); border: 1px solid var(--edge); border-radius: 6px; list-style: none; margin: .25rem 0 0; min-width: max-content; padding: .3rem; position: absolute; right: 0; }
.languages a { display: block; padding: .45rem .65rem; }
.languages a:hover, .languages a[aria-current] { background: #25342d; color: var(--accent); }

.hero { min-height: clamp(450px, 47vw, 590px); overflow: hidden; position: relative; isolation: isolate; display: flex; align-items: center; margin-top: 1.5rem; border: 1px solid #294037; border-radius: 11px; background: #0b1920; }
.hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 67% 65%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(4,12,13,.96),rgba(4,12,13,.83) 27%, rgba(4,12,13,.47) 49%,transparent 71%),linear-gradient(0deg,rgba(3,11,12,.52),transparent 25%); }
.hero-inner { padding: 3rem clamp(1.65rem, 5.5vw, 5rem); max-width: min(780px, 70%); }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 740; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 1.1rem; }
h1, h2, p { margin-top: 0; }
html[lang=en] .hero h1 { text-transform: uppercase; }
.hero h1 { font: 900 clamp(2.6rem, 6.35vw, 7.4rem)/.98 var(--display); letter-spacing: -.07em; margin-bottom: 1.2rem; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-deck { color: #dde4d8; font-size: clamp(1rem, 1.55vw, 1.18rem); max-width: 28rem; margin-bottom: 1.7rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .58rem 1.1rem; border: 1px solid transparent; border-radius: 5px; font-weight: 730; font-size: .89rem; text-align: center; line-height: 1.3; }
.primary { color: #101709; background: var(--accent); }
.primary:hover { background: #defe9c; }
.secondary { color: #f5f8f0; background: #10201dbb; border-color: #64766c; }
.secondary:hover { border-color: var(--accent); color: var(--accent); }
.status-strip { display: grid; grid-template-columns: 1.24fr 1fr 1fr; margin: .75rem 0 0; padding: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 7px; }
.status-strip > div { padding: 1rem clamp(.8rem, 2.5vw, 2.2rem); min-width: 0; }
.status-strip > div + div { border-left: 1px solid var(--edge); }
.status-strip dt { color: var(--muted); font-size: .8rem; }
.status-strip dd { font-weight: 745; margin: .1rem 0 0; overflow-wrap: anywhere; }
.status-strip > div:first-child dd { color: var(--accent); }

.guides-section { padding: clamp(2.2rem, 5vw, 4rem) 0 3.5rem; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
h2 { font: 800 clamp(1.4rem, 3vw, 2.12rem)/1.2 var(--display); letter-spacing: -.03em; }
.section-bar h2 { margin: 0; }
.search { display: flex; align-items: center; gap: .45rem; color: var(--accent); background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; padding: .36rem .6rem; }
.search > span { font-size: 1.3rem; line-height: 1; }
.search input { color: var(--ink); width: min(24vw, 14rem); min-width: 0; border: 0; background: transparent; font-size: .9rem; }
.search input::placeholder { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.card { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .85rem; border: 1px solid var(--edge); background: var(--panel); border-radius: 8px; padding: 1.2rem; transition: background .15s,border-color .15s; }
.card:hover { background: var(--panel-strong); border-color: #678144; }
.card-icon { color: var(--accent); display: grid; place-items: center; width: 36px; height: 36px; font-size: 1.38rem; font-weight: 660; line-height: 1; border: 1px solid #4d6535; background: #1e2d1c; border-radius: 5px; }
.card-copy { display: grid; gap: .28rem; min-width: 0; }
.card-copy strong { font-size: 1.05rem; line-height: 1.32; }
.card-copy > span { color: var(--muted); font-size: .89rem; line-height: 1.45; }
.no-results { padding: 1.5rem 0 0; color: var(--muted); }

.article { padding: 3.5rem 0 1.6rem; }
.article-head { border-bottom: 1px solid var(--edge); padding-bottom: 1.5rem; margin-bottom: 1.8rem; }
.breadcrumb { color: var(--accent); font-size: .9rem; font-weight: 650; }
.breadcrumb:hover { text-decoration: underline; }
.article h1 { font: 900 clamp(2.5rem, 6.1vw, 5rem)/1.02 var(--display); letter-spacing: -.057em; margin: .5rem 0 .85rem; }
.article-deck { color: #d6e0d6; font-size: clamp(1.06rem, 2vw, 1.33rem); max-width: 52rem; margin-bottom: .95rem; }
.article-date { margin: 0; color: var(--muted); font-size: .88rem; }
.article-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,285px); gap: clamp(1.7rem,6vw,5rem); }
.prose { max-width: 75ch; }
.prose section { margin-bottom: 1.75rem; }
.prose h2, .sources h2 { margin-bottom: .45rem; }
.prose p { color: #d5ded5; margin-bottom: 0; }
.sources { align-self: start; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 1.1rem; }
.sources h2, .tip h2 { font-size: 1.1rem; }
.sources ul { padding-left: 1.1rem; margin-bottom: 0; }
.sources li + li { margin-top: .5rem; }
.sources a { color: #e3f6cc; text-decoration: underline; text-underline-offset: .15em; }
.tip { border-left: 3px solid var(--accent); background: var(--panel); padding: .9rem 1rem; margin-bottom: 1.6rem; }
.related { border-top: 1px solid var(--edge); padding-block: 1.6rem 3rem; }

.tactics-board { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(1.2rem, 5vw, 4rem); background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: clamp(1rem, 3vw, 2.2rem); margin-bottom: 2rem; max-width: 62rem; }
.board-copy p { color: var(--muted); margin: .85rem 0 0; }
.plan-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.plan-tabs button { font-weight: 750; background: #1d2d27; border: 1px solid #4b604e; color: var(--ink); padding: .44rem .66rem; border-radius: 4px; }
.plan-tabs button[aria-pressed=true] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.pitch { position: relative; padding: .9rem; min-height: 280px; display: grid; background: repeating-linear-gradient(#12382c 0 20%,#164133 20% 40%); border: 1px solid #5e9476; border-radius: 5px; }
.pitch::before { content: ""; position: absolute; inset: 6%; border: 1px solid #74a68b; pointer-events: none; }
.pitch-line { position: absolute; left: 6%; right: 6%; top: 50%; border-top: 1px solid #74a68b; }
.pitch-line::after { content: ""; position: absolute; left: 50%; transform: translate(-50%,-50%); width: 3.5rem; aspect-ratio: 1; border: 1px solid #74a68b; border-radius: 50%; }
.lineup { position: relative; display: grid; grid-auto-rows: 1fr; align-items: center; }
.players { display: flex; justify-content: space-evenly; }
.players span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0c1508; font-weight: 820; font-size: .74rem; }
.players:last-child span { background: #d3eee0; }

.ad-slot.populated { margin-block: .85rem; padding: .65rem; background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; }
.site-footer { border-top: 1px solid var(--edge); padding-block: 1.9rem; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.footer-inner p { font-size: .86rem; color: var(--muted); margin: .4rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center; font-size: .87rem; }
.link-button { border: 0; background: transparent; color: var(--ink); padding: 0; }
.link-button:hover { color: var(--accent); }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--edge); border-radius: 10px; max-width: min(100% - 2rem,550px); padding: 1.3rem; }
dialog::backdrop { background: #07120ecc; }

@media(max-width: 850px) {
  .wrap { width: min(100% - 2.5rem,1280px); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-inner { max-width: 77%; }
}
@media(max-width: 580px) {
  .wrap { width: min(100% - 1.5rem,1280px); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: 0 .65rem; padding-block: .7rem; }
  .header-inner nav { grid-column: span 2; grid-row: 2; margin-top: .7rem; gap: 1rem; flex-wrap: wrap; }
  .languages { grid-column: 2; grid-row: 1; }
  .hero { margin-top: .75rem; min-height: 470px; align-items: end; }
  .hero img { object-position: 65% 48%; }
  .hero::after { background: linear-gradient(0deg,#071110 6%,#071110e8 32%,#07111039 74%); }
  .hero-inner { padding: 1.3rem; max-width: 100%; }
  .hero h1 { font-size: clamp(2.3rem,10vw,3.65rem); }
  .eyebrow { margin-bottom: .55rem; font-size: .72rem; }
  .hero-deck { margin-bottom: .95rem; }
  .status-strip { grid-template-columns: 1fr; }
  .status-strip > div { padding: .55rem .8rem; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: .45rem; }
  .status-strip > div + div { border-top: 1px solid var(--edge); border-left: 0; }
  .section-bar { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .cards, .article-grid, .tactics-board { grid-template-columns: 1fr; }
  .article { padding-top: 1.7rem; }
  .footer-inner { display: grid; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
