@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../assets/fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../assets/fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../assets/fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../assets/fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== FA Village homepage (preview) ===== */
:root { --bg: #07080f; --ink: #eef2f7; --muted: #a9b4c6; --line: rgba(160, 200, 255, .28); --glass: rgba(9, 14, 26, .72); --accent: #e3262f; --blue: #5865f2; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
body.village { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* header */
.vh { position: fixed; z-index: 20; inset: 0 0 auto 0; height: 80px; display: flex; align-items: center; gap: 24px; padding: 0 28px;
  padding-top: env(safe-area-inset-top); background: linear-gradient(180deg, rgba(5, 8, 16, .92), rgba(5, 8, 16, .55) 70%, rgba(5, 8, 16, 0)); }
.vh-logo { display: block; flex: none; line-height: 0; }
.vh-logo img { height: 62px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.vh-nav { display: flex; gap: 4px; margin-left: auto; }
.vh-nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 8px 12px; border-radius: 8px; color: #dfe6f1; border-bottom: 2px solid transparent; }
.vh-nav a:hover { background: rgba(255, 255, 255, .08); }
.vh-nav a.is-active { color: #fff; border-bottom-color: var(--accent); border-radius: 8px 8px 0 0; }
.vh-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.vh-lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(5, 8, 16, .6); }
.vh-lang button { background: none; border: 0; padding: 7px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.vh-lang button.is-on { background: var(--accent); color: #fff; }
.vh-discord { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 14px;
  border-radius: 10px; background: rgba(88, 101, 242, .2); border: 1px solid rgba(120, 132, 255, .7); box-shadow: 0 0 18px rgba(88, 101, 242, .35); white-space: nowrap; }
.vh-discord:hover { background: var(--blue); }
.vh-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 8, 16, .6); cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.vh-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* map: always covers the viewport, keeps the image's aspect ratio so % hotspots stay on their sheds */
.map-wrap { position: fixed; inset: 0; overflow: hidden; }
.map-stage { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -42%);
  width: max(100vw, 100dvh * 16 / 9); height: max(100dvh, 100vw * 9 / 16); }
.map-stage picture, .map-img { display: block; width: 100%; height: 100%; }
.map-img { object-fit: cover; user-select: none; -webkit-user-drag: none; }
.map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(3, 5, 10, .55) 100%); }

.map-title { position: absolute; z-index: 5; left: 50%; top: 74px; transform: translateX(-50%); text-align: center; pointer-events: none; width: max-content; }
.map-logo { display: block; margin: 0 auto 2px; width: clamp(150px, 14vw, 240px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .75)); }
body:not(.page-about) .vh-logo { visibility: hidden; } /* the big centred logo replaces it on the village */
.map-title h1 { margin: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font-family: Oswald, Inter, sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; font-size: clamp(26px, 3.6vw, 50px); line-height: 1.1; color: #f4f6fb;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85), 0 0 34px rgba(255, 190, 120, .28); }
.map-title h1::before, .map-title h1::after { content: ""; width: clamp(24px, 4vw, 70px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(227, 38, 47, 0), rgba(227, 38, 47, .95)); }
.map-title h1::after { background: linear-gradient(90deg, rgba(227, 38, 47, .95), rgba(227, 38, 47, 0)); }

/* sheds: the whole shed area is clickable; its name plaque sits centred in front of it */
.hotspots { position: absolute; inset: 0; z-index: 4; }
.spot { position: absolute; display: block; padding: 0; border: 0; margin: 0; background: none; cursor: pointer; text-decoration: none; border-radius: 18px; color: inherit;
  -webkit-tap-highlight-color: transparent; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .2s;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 196, 120, .22), rgba(255, 196, 120, 0) 70%); }
.spot:hover::before, .spot:focus-visible::before { opacity: 1; }
.spot:focus-visible { outline: none; }
.spot-sign { width: 0; height: 0; border-radius: 0; }
.spot-sign::before { display: none; }
.spot-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 14px; font-size: 14px; font-weight: 600; letter-spacing: .03em; color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(16, 22, 38, .86), rgba(7, 10, 20, .86)); border: 1px solid rgba(255, 210, 150, .38); border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: background .15s, border-color .15s, box-shadow .2s; }
.spot-arrow { color: #ffc98a; transition: transform .15s; }
.spot:hover .spot-label, .spot:focus-visible .spot-label, .spot:hover + .spot-sign .spot-label { border-color: rgba(255, 200, 130, .95); background: linear-gradient(180deg, rgba(34, 30, 30, .94), rgba(16, 12, 14, .94));
  box-shadow: 0 0 0 1px rgba(255, 200, 130, .35), 0 0 22px rgba(255, 170, 90, .55), 0 6px 18px rgba(0, 0, 0, .5); }
.spot:hover .spot-arrow, .spot:focus-visible .spot-arrow { transform: translateX(3px); }
.spot-badge { position: absolute; right: -8px; top: -10px; font-size: 9px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 5px; border-radius: 5px; background: #d8232c; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.spot-soon .spot-label { color: #c9d2df; }
.spot-statue .spot-label { font-size: 13px; padding: 5px 11px; border-color: rgba(227, 38, 47, .6); }
.spot-statue:hover .spot-label, .spot-statue:focus-visible .spot-label { border-color: rgba(255, 80, 80, .95); box-shadow: 0 0 0 1px rgba(227, 38, 47, .4), 0 0 22px rgba(227, 38, 47, .6); }

/* coming soon popup */
.soon { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 10, .6); backdrop-filter: blur(3px); }
.soon[hidden] { display: none; }
.soon-card { position: relative; max-width: 420px; width: 100%; padding: 28px 26px 24px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 20, 36, .97), rgba(8, 10, 18, .97)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.soon-card h2 { margin: 8px 0 8px; font-family: Oswald, Inter, sans-serif; letter-spacing: .04em; font-size: 26px; }
.soon-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.soon-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: #fff !important; }
.soon-x { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }

/* footer */
.vf { position: fixed; z-index: 10; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; font-size: 12px; color: rgba(220, 228, 240, .7);
  padding: 6px 10px; border-radius: 8px; background: rgba(5, 8, 16, .55); }
.vf a { text-decoration: none; }
.vf a:hover { color: #fff; text-decoration: underline; }

/* tablet / small desktop */
@media (max-width: 1100px) {
  .vh { gap: 12px; padding: 0 16px; }
  .vh-nav a { padding: 8px 8px; font-size: 13px; }
}
/* phone & portrait: mobile map (9:16), burger menu */
@media (max-width: 900px) {
  .vh { height: 60px; }
  .vh-logo img { height: 40px; }
  .vh-burger { display: flex; }
  .vh-right { margin-left: auto; }
  .vh-nav { position: fixed; top: 60px; right: 10px; flex-direction: column; min-width: 200px; padding: 8px; border-radius: 12px; background: rgba(8, 12, 22, .96); border: 1px solid var(--line);
    margin: 0; display: none; }
  .vh-nav.is-open { display: flex; }
  .vh-nav a { font-size: 15px; padding: 11px 12px; }
  .vh-nav a.is-active { border-bottom-color: transparent; background: rgba(227, 38, 47, .25); border-radius: 8px; }
}
@media (max-width: 560px) {
  .vh { gap: 8px; padding: 0 10px; }
  .vh-right { gap: 8px; margin-left: auto; }
  .vh-discord { padding: 8px; }
  .vh-discord span { display: none; }
  .vh-lang button { padding: 6px 7px; font-size: 11px; }
  .map-title { top: 76px; }
  .map-title h1 { gap: 10px; letter-spacing: .12em; font-size: 24px; }
  .spot-label { font-size: 12px; padding: 5px 9px; gap: 5px; }
  .spot-statue .spot-label { font-size: 11px; padding: 4px 8px; }
  .spot-badge { font-size: 8px; padding: 2px 4px; top: -8px; right: -6px; }
  .vf { left: 50%; right: auto; transform: translateX(-50%); font-size: 11px; white-space: nowrap; }
}
@media (max-aspect-ratio: 3/4) {
  .map-stage { width: max(100vw, 100dvh * 9 / 16); height: max(100dvh, 100vw * 16 / 9); }
}

/* ===== About page ===== */
body.page-about { overflow: auto; background: #050608 url(../assets/village/about-bg.jpg) 72% 0 / cover fixed; }
@supports (background-image: image-set(url(x.webp) type("image/webp"))) {
  body.page-about { background-image: image-set(url(../assets/village/about-bg.webp) type("image/webp"), url(../assets/village/about-bg.jpg) type("image/jpeg")); }
}
body.page-about::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 5, 9, .88) 0%, rgba(4, 5, 9, .72) 55%, rgba(4, 5, 9, .35) 100%); }
.ab { position: relative; z-index: 1; padding: 110px 20px 60px; }
.ab-inner { max-width: 960px; margin: 0 auto; }
.ab-back { display: inline-flex; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 18px; }
.ab-back:hover { color: #fff; }
.ab h1 { margin: 0 0 14px; font-family: Oswald, Inter, sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.ab h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 12px; background: var(--accent); border-radius: 2px; }
.ab-inner > p { max-width: 720px; margin: 0 0 12px; line-height: 1.65; color: #cfd8e6; font-size: 16px; }
.ab-inner > p.ab-lead { font-size: 18px; color: #eef2f7; }
.ab-group { position: relative; display: block; margin: 28px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); line-height: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: box-shadow .2s, border-color .2s; }
.ab-dc { text-align: center; margin: 18px 0 40px; }
.ab-dc-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ab-dc-t small { font-size: 13px; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.ab-group-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px; font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1;
  background: linear-gradient(180deg, rgba(110, 120, 255, .92), rgba(78, 88, 230, .92)); border: 1px solid rgba(200, 205, 255, .7);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, .25), 0 0 34px rgba(88, 101, 242, .65), 0 10px 26px rgba(0, 0, 0, .5); transition: transform .15s, box-shadow .2s; }
.ab-group-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(88, 101, 242, .35), 0 0 44px rgba(88, 101, 242, .85), 0 12px 28px rgba(0, 0, 0, .5); }
.ab-group picture img { width: 100%; height: auto; display: block; }
.ab-pack h2 { margin: 0 0 6px; font-family: Oswald, Inter, sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 28px; }
.ab-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.ab-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }
.ab-m { aspect-ratio: 1; border-radius: 18px; padding: 3px; background: linear-gradient(145deg, rgba(160, 200, 255, .35), rgba(227, 38, 47, .35));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: transform .2s, box-shadow .2s; }
.ab-m img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 15px; background: #0b0e16; }
.ab-m:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 1px rgba(255, 200, 130, .6), 0 0 26px rgba(227, 38, 47, .55), 0 10px 24px rgba(0, 0, 0, .6); }
.ab-cta { margin: 44px 0 0; text-align: center; }
.ab-discord { font-size: 17px; padding: 14px 24px; border-radius: 12px; background: rgba(88, 101, 242, .85); }
.ab-legal { margin: 16px auto 0; max-width: 560px; font-size: 12px; color: rgba(200, 210, 225, .6); line-height: 1.5; }
.vf.vf-static { position: static; transform: none; justify-content: center; margin: 0 auto 24px; width: max-content; }
@media (max-width: 560px) {
  .ab { padding: 84px 16px 40px; }
  body.page-about { background-position: 78% 0; background-attachment: scroll; }
  body.page-about::before { background: linear-gradient(180deg, rgba(4, 5, 9, .7), rgba(4, 5, 9, .88) 40%); }
  .ab-wall { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .ab-m { border-radius: 14px; padding: 2px; }
  .ab-m img { border-radius: 12px; }
  .ab-inner > p.ab-lead { font-size: 16px; }
  .ab-inner > p { font-size: 15px; }
  .ab-discord span:not([aria-hidden]) { display: inline; }
  .ab-group { margin: 22px -16px 0; border-radius: 0; border-left: 0; border-right: 0; }
  .ab-dc { margin: 16px 0 32px; }
  .ab-group-btn { font-size: 16px; padding: 12px 20px; }
  .vf.vf-static { left: auto; }
}

/* ===== phones & portrait: tall scrolling village ===== */
.mv, .mv-tabbar { display: none; }
.spot-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: #ffc98a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 768px), (orientation: portrait) {
  body.village:not(.page-about) { overflow-x: hidden; overflow-y: auto; }
  .map-wrap, .map-title, .vf:not(.vf-static) { display: none; }
  .vh { height: 60px; background: linear-gradient(180deg, rgba(5, 8, 16, .9), rgba(5, 8, 16, 0)); }
  body:not(.page-about) .vh-logo { visibility: hidden; }
  .vh-burger { display: flex; }
  .vh-right { margin-left: auto; }
  .mv { display: block; position: relative; }
  .mv-map { position: relative; width: 100%; max-width: 820px; margin: 0 auto; }
  .mv-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
  .mv-hero { position: absolute; left: 0; right: 0; top: 64px; text-align: center; pointer-events: none; }
  .mv-hero img { width: min(58vw, 300px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .7)); }
  .mv-hero h1 { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: Oswald, Inter, sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em; font-size: clamp(24px, 7vw, 40px); color: #f4f6fb; text-shadow: 0 2px 16px rgba(0, 0, 0, .9), 0 0 30px rgba(255, 190, 120, .25); }
  .mv-hero h1::before, .mv-hero h1::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(227, 38, 47, 0), rgba(227, 38, 47, .95)); }
  .mv-hero h1::after { background: linear-gradient(90deg, rgba(227, 38, 47, .95), rgba(227, 38, 47, 0)); }
  .mv-spots { position: absolute; inset: 0; }
  .mv-spots .spot-label { font-size: 14px; padding: 8px 12px; gap: 8px; }
  .mv-spots .spot-name { white-space: nowrap; }
  .nav-desk-only { display: none !important; }
  .mv-spots .spot-statue .spot-label { font-size: 13px; padding: 7px 11px; }
  .mv-spots .spot-badge { font-size: 9px; top: -9px; right: -6px; padding: 3px 5px; }
  .mv-foot { margin: 0; padding: 14px 10px calc(86px + env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    font-size: 12px; color: rgba(220, 228, 240, .7); background: #0b0f17; }
  .mv-foot a { text-decoration: none; }
  .mv-tabbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(8, 12, 22, .94); border-top: 1px solid rgba(160, 200, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .mv-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 5px; text-decoration: none; font-size: 11px; font-weight: 600;
    color: #aab6c8; border-radius: 10px; min-width: 0; }
  .mv-tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mv-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mv-tabbar img { width: 24px; height: 24px; object-fit: contain; opacity: .8; }
  .mv-tabbar a.is-active { color: #fff; }
  .mv-tabbar a.is-active::after { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--accent); margin-top: 1px; }
}
@media (max-width: 380px) {
  .mv-spots .spot-label { font-size: 13px; padding: 7px 10px; gap: 6px; }
  .spot-ico { width: 16px; height: 16px; }
}

/* ---------- Tournament Board ---------- */
.tb .ab-inner { max-width: 1040px; }
.tb-filter { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 26px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 10, 16, .7); backdrop-filter: blur(6px); }
.tb-filter button { font: inherit; font-size: 14px; font-weight: 600; color: #cfd8e6; background: none; border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.tb-filter button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tb-filter button.is-on { color: #fff; background: var(--accent); }
.tb-sec { margin: 0 0 34px; }
.tb-sec h2 { margin: 0 0 14px; font-family: Oswald, Inter, sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 26px; }
.tb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tb-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 24, 36, .88), rgba(9, 11, 18, .9)); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tb-card:hover { transform: translateY(-2px); border-color: rgba(255, 200, 130, .35); box-shadow: 0 0 24px rgba(227, 38, 47, .25), 0 12px 28px rgba(0, 0, 0, .45); }
.tb-own { border-color: rgba(227, 38, 47, .55); background: linear-gradient(160deg, rgba(60, 14, 20, .85), rgba(12, 10, 16, .92)); }
.tb-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tb-game { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #dfe6f0; }
.tb-cs2 { background: rgba(240, 160, 40, .18); color: #ffc46b; }
.tb-cod { background: rgba(120, 200, 120, .16); color: #9fe29f; }
.tb-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: #cfd8e6; white-space: nowrap; }
.tb-b-open { border-color: rgba(80, 220, 140, .5); color: #7ef0ad; }
.tb-b-live { border-color: rgba(227, 38, 47, .7); color: #ff7a80; }
.tb-b-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ff3b45; vertical-align: 1px; }
.tb-card h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.3; color: #fff; }
.tb-org { margin: 0; font-size: 13px; color: var(--muted); }
.tb-meta { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #cfd8e6; }
.tb-when { color: #fff; font-weight: 600; }
.tb-go { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.tb-go:hover { background: var(--accent); border-color: var(--accent); }
.tb-own .tb-go { background: var(--accent); border-color: var(--accent); }
.tb-empty { color: var(--muted); font-size: 14px; padding: 10px 2px; }
.tb-legal { text-align: left; margin: 8px 0 0; max-width: none; }
@media (max-width: 768px) {
  .tb-list { grid-template-columns: 1fr; gap: 12px; }
  .tb-filter { display: flex; width: 100%; }
  .tb-filter button { flex: 1; padding: 9px 8px; }
  .tb-sec h2 { font-size: 22px; }
}
.tb-b-closed { border-color: rgba(200, 200, 210, .3); color: #a9b4c6; }
.op-gaming { background: rgba(240, 160, 40, .18); color: #ffc46b; }
.op-tech { background: rgba(90, 160, 255, .18); color: #9cc8ff; }
.op-cope { background: rgba(60, 200, 190, .16); color: #8ee8de; }
@media (max-width: 768px) { #op-filter { overflow-x: auto; } #op-filter button { flex: 0 0 auto; white-space: nowrap; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* hero: Latvian flag (carmine/white/carmine 2:1:2) around FOR ALL + hub subtitle */
.hub-sub { margin: 2px 0 10px; font-family: Inter, sans-serif; font-weight: 300; text-transform: uppercase; letter-spacing: .32em;
  font-size: clamp(11px, 1vw, 15px); color: rgba(232, 236, 244, .78); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); text-align: center; padding-left: .32em; }
.map-title h1, .mv-hero h1 { display: flex; flex-direction: column; align-items: stretch; width: max-content; margin-left: auto; margin-right: auto; gap: .14em; padding: 0 .3em; }
.map-title h1 { padding-left: calc(.3em + .16em); }
.map-title h1::before, .map-title h1::after, .mv-hero h1::before, .mv-hero h1::after {
  width: auto; height: .2em; border-radius: 1px; background: #9E3039; box-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
@media (max-width: 860px), (orientation: portrait) {
  .mv-hero .hub-sub { font-size: 11px; margin: 0 0 8px; letter-spacing: .28em; }
  .mv-hero h1 { margin-top: 0; }
}
/* v15: equal 1:1:1 red-white-red bands (line box of FOR ALL = middle band) */
.map-title h1, .mv-hero h1 { gap: 0; line-height: 1; padding: 0 .55em; padding-left: calc(.55em + .16em); }
.map-title h1 { font-size: clamp(20px, 2.6vw, 36px); }
.mv-hero h1 { font-size: clamp(18px, 5.6vw, 30px); padding-left: calc(.55em + .2em); }
.map-title h1::before, .map-title h1::after, .mv-hero h1::before, .mv-hero h1::after { height: 1em; border-radius: 2px; }
/* Training Ground chooser */
.tr-card { max-width: 640px; }
.tr-sub { margin: 0 0 16px !important; }
.tr-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.tr-opt { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.tr-opt h3 { margin: 0; font-family: Oswald, Inter, sans-serif; letter-spacing: .04em; font-size: 20px; }
.tr-opt p { font-size: 14px; }
.tr-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; margin-top: auto; padding: 0 16px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.tr-btn:focus-visible, .tr-copy:focus-visible, .tr-more:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tr-btn-off { background: rgba(255,255,255,.08); color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; }
.tr-cmd { display: flex; gap: 6px; align-items: center; }
.tr-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12.5px; padding: 9px 10px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.tr-copy { min-height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.tr-st { font-size: 13px !important; font-weight: 600; }
.tr-st::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #8a8f9c; vertical-align: 0; }
.tr-st-on::before { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.tr-st-off::before { background: #ff3b45; }
.tr-note { font-size: 12.5px !important; }
.tr-more { font-size: 13px; color: var(--muted); }
.tr-mob { display: none !important; }
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .tr-grid { grid-template-columns: minmax(0,1fr); }
  .tr-desk { display: none !important; }
  .tr-mob { display: flex !important; }
  p.tr-mob { display: block !important; }
  .tr-grid .tr-opt:first-child { order: 2; opacity: .8; }
  .tr-card { max-height: calc(100vh - 40px); overflow-y: auto; }
}
/* v18: desktop hero sized from the statue's position so it always sits above the wolf statue.
   --st = viewport y of the statue's ears (map-stage: cover 16:9, top 42%, ears at ~36.5% of the art). */
.map-title { --st: calc(42dvh - .055 * max(100dvh, 100vw * 9 / 16)); top: clamp(18px, calc(var(--st) * .19), 74px); }
.map-logo { width: clamp(76px, calc(var(--st) * .6), 240px); }
.map-title .hub-sub { font-size: clamp(10px, calc(var(--st) * .038), 15px); margin: 2px 0 8px; }
.map-title h1 { font-size: clamp(13px, calc(var(--st) * .105), 40px); }
/* v19: FOR ALL centred between the bands: the text line is trimmed to the cap height (text-box) and the rest of the
   1em middle band is split evenly above and below; older browsers get a small optical lift instead. */
.map-title h1 { font-size: round(clamp(13px, calc(var(--st) * .105), 40px), 1px); }
.mv-hero h1 { font-size: round(clamp(18px, 5.6vw, 30px), 1px); }
.map-title { top: round(clamp(18px, calc(var(--st) * .19), 74px), 1px); }
.map-logo { width: round(clamp(76px, calc(var(--st) * .6), 240px), 2px); height: round(calc(clamp(76px, calc(var(--st) * .6), 240px) * 157 / 320), 1px); object-fit: contain; }
.mv-hero img { width: round(min(58vw, 300px), 2px); height: round(calc(min(58vw, 300px) * 157 / 320), 1px); object-fit: contain; }
.hub-sub { line-height: round(calc(1.2em), 1px); }
.map-title .hub-sub { font-size: round(clamp(10px, calc(var(--st) * .038), 15px), 1px); }
.fa-t { display: block; transform: translateY(-.03em); }
@supports (text-box: trim-both cap alphabetic) {
  .fa-t { transform: none; text-box: trim-both cap alphabetic; margin: calc((1em - 1cap) / 2) 0; }
}
/* v20: hero subtitle wave (js/hub-wave.js) – letters lift + glow near the cursor; transform/opacity only */
.hub-sub.hub-wave { cursor: default; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hub-wave .hw { display: inline-block; position: relative; transform-origin: 50% 90%; will-change: transform; --hw: 0; }
.hub-wave .hw-sp { white-space: pre; }
.hub-wave .hw::after { content: attr(data-c); position: absolute; left: 0; top: 0; color: #fff; opacity: var(--hw);
  text-shadow: 0 0 3px #fff, 0 0 8px #fff, 0 0 16px rgba(255, 60, 75, 1), 0 0 28px rgba(255, 40, 60, 1), 0 0 44px rgba(200, 30, 50, .9); pointer-events: none; }
/* v22: wolf-eye glint on the logo (overlay added by js/village.js; 9 s glow -> dark -> relight like the old header) */
.lg-mark { position: relative; display: inline-block; vertical-align: baseline; } /* same line box as the bare logo, so nothing moves */
.map-title .lg-mark { display: block; width: max-content; margin: 0 auto; line-height: 0; }
.lg-glint { position: absolute; left: 91.2%; top: 0; margin-top: 10.15%; /* 20.7% of the logo height, as % of its width (157/320) */ width: 7.6%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.lg-glint i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.lg-glint .lg-g { width: 100%; height: 100%; mix-blend-mode: screen; opacity: .9;
  background: radial-gradient(circle, rgba(255,236,226,.95) 0 7%, rgba(255,45,30,.95) 16%, rgba(255,0,0,.4) 38%, rgba(255,0,0,0) 68%);
  animation: lg-glow 9s ease-in-out infinite; }
.lg-glint .lg-l { left: 52%; top: 52%; width: 62%; height: 36%; background: #07070a; transform: translate(-50%, -50%) rotate(-24deg); opacity: 0; animation: lg-lid 9s ease-in-out infinite; }
@keyframes lg-glow { 0%, 20% { opacity: .9; } 60%, 75% { opacity: 0; } 88%, 100% { opacity: .9; } }
@keyframes lg-lid { 0%, 30% { opacity: 0; } 60%, 75% { opacity: 1; } 85%, 100% { opacity: 0; } }
/* v24: no reduced-motion opt-out for the eye: it is a slow 9 s opacity fade, no movement (with Windows "animation effects" off the eye otherwise stayed lit and never pulsed) */
/* v23: FOR ALL joins the wave (js/hub-wave.js); stays white, small lift + soft white glow only */
.fa-t.hub-wave { white-space: nowrap; }
.hub-wave .hw.hw-soft { transform-origin: 50% 60%; }
.hub-wave .hw.hw-soft::after { color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, .75), 0 0 16px rgba(255, 255, 255, .35); }
/* v25: campfire flicker (js/village-fx.js) – canvas over the painted fire + warm ground light; below the labels */
.vfx-fire { position: absolute; z-index: 3; pointer-events: none; } /* v26: normal blending – the canvas carries the painted fire itself */
.vfx-glow { position: absolute; z-index: 3; pointer-events: none; width: var(--fw); aspect-ratio: 1.6; transform: translate(-50%, -55%);
  border-radius: 50%; mix-blend-mode: soft-light; opacity: .7;
  background: radial-gradient(closest-side, rgba(255, 150, 60, .55), rgba(255, 120, 40, .22) 45%, rgba(255, 100, 30, 0) 100%); }
/* Tournament card promo video (click-to-load X embed) */
.tb-promo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.tb-promo-h { margin: 0; align-self: stretch; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffc46b; text-align: center; }
.tb-promo-play, .tb-promo-video { position: relative; display: block; width: 100%; max-width: 220px; aspect-ratio: 9 / 16; padding: 0; border: 1px solid rgba(255, 200, 130, .25); border-radius: 12px; overflow: hidden; background: #07080c; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.tb-promo-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; filter: brightness(.85); }
.tb-promo-play:hover img, .tb-promo-play:focus-visible img { transform: scale(1.03); filter: brightness(1); }
.tb-promo-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-promo-btn { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(227, 38, 47, .92); box-shadow: 0 0 0 6px rgba(227, 38, 47, .25), 0 0 26px rgba(227, 38, 47, .6); }
.tb-promo-btn::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.tb-promo-video { cursor: auto; object-fit: contain; outline: none; }
.tb-promo-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-promo-x { font-size: 13px; font-weight: 600; color: #cfd8e6; text-decoration: none; }
.tb-promo-x:hover { color: #fff; text-decoration: underline; }
@media (min-width: 769px) {
  .tb-card:has(.tb-promo) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: repeat(6, auto) 1fr; column-gap: 28px; align-items: start; }
  .tb-card:has(.tb-promo) > :not(.tb-promo) { grid-column: 1; }
  .tb-card:has(.tb-promo) .tb-go { align-self: start; justify-self: start; margin-top: 6px; }
  .tb-card:has(.tb-promo) .tb-promo { grid-column: 2; grid-row: 1 / -1; margin-top: 0; width: 220px; }
  .tb-card:has(.tb-promo):hover { transform: none; }
}
/* 2v2 card: registered teams + countdown (Riga time) */
.tb-teams { margin: 2px 0 8px; font-size: 14px; color: #cfd8e6; }
.tb-teams b { color: #fff; font-size: 18px; }
.tb-cd { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(227, 38, 47, .45); border-radius: 10px; background: rgba(0, 0, 0, .35); align-self: stretch; max-width: 360px; }
.tb-cd-l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffc46b; }
.tb-cd-t { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; min-height: 1.3em; }
.tb-cd-t b { font-weight: 800; }
.tb-cd-t i { font-style: normal; font-size: 13px; color: #9aa6b8; margin-left: 2px; }
.tb-cd-n { font-size: 12px; color: #9aa6b8; }
.tb-cd.is-done .tb-cd-t { color: var(--accent); font-size: 18px; font-weight: 700; }
