/* Teil W-WEB1: Hessian website — layout and colours of the approved design (claude.ai artifact 7z5YjAvpYpy87ZgKiMWr6B, 4 artboards).
   Dark site only (the game's look); phone layout below 900 px / 600 px. */
:root {
  --bg: #101316; --bar: #0a0c0e; --panel: #171b1f; --panel-2: #1b2025; --line: #262b31; --line-2: #3a4047; --line-3: #1f2429;
  --gold: #d0b32e; --gold-text: #e0c14a; --gold-hover: #f3d968; --sand: #ddcfae; --text: #e7e1d3; --text-2: #c9c2b2; --text-3: #d3ccbc;
  --muted: #9a958a; --muted-2: #7d786e; --dashed: #4a4f55; --heading: #f4efe2; --ink: #15130c;
  --west: #2d6db5; --west-text: #7fb0e8; --west-bg: #10243f; --rupeco: #c2462a; --rupeco-text: #ef8a6f; --rupeco-bg: #3a1611;
  --good: #9fd28a; --bad: #ef8a6f;
  --font-head: 'Barlow Condensed', 'Bahnschrift SemiCondensed', 'Bahnschrift', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
  --gutter: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--gold-hover); }
img, video { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); margin: 0; font-weight: 700; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.cond { font-family: var(--font-head); }

/* --- top bar -------------------------------------------------------------------------------------------------------------------- */
.topbar { height: 44px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: var(--bar); border-bottom: 1px solid var(--line); gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: .18em; color: var(--sand); }
.topbar-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.lang-pick { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-pick select { background: #15191d; color: var(--sand); border: 1px solid #333a41; border-radius: 4px; padding: 3px 6px; font-size: 12px; }
.account-slot { display: flex; align-items: center; gap: 10px; }
.account-slot .who { color: var(--sand); font-weight: 600; font-size: 13px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 11px 0; border: 1px solid #5d563f; border-radius: 3px; color: var(--gold-text); background: transparent; cursor: pointer; font-size: 15px; }
.btn-ghost.small { font-size: 12px; padding: 4px 10px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hover); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; background: var(--gold); color: var(--ink); font-weight: 700; border-radius: 3px; font-size: 15px; border: none; cursor: pointer; }
.btn:hover { background: var(--gold-hover); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }

/* --- banner slider (home) ------------------------------------------------------------------------------------------------------- */
.slider { position: relative; height: 420px; overflow: hidden; background: #0c0f12; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade) 0%, var(--shade) 28%, transparent 70%); }
.slide[data-theme=rupeco] { --shade: #1a0906e6; --kicker: var(--rupeco-text); }
.slide[data-theme=west] { --shade: #07111fe6; --kicker: var(--west-text); }
.slide[data-theme=update] { --shade: #15130be6; --kicker: var(--gold-text); }
.slide-text { position: absolute; z-index: 2; left: 120px; top: 96px; width: 620px; max-width: calc(100% - 160px); display: flex; flex-direction: column; gap: 14px; }
.slide-text .eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .2em; color: var(--kicker); }
.slide-text h1 { font-size: 64px; line-height: 1; color: var(--heading); text-wrap: balance; text-shadow: 0 2px 12px #000a; }
.slide-text p { margin: 0; font-size: 19px; line-height: 1.45; color: #d6cfbf; max-width: 520px; text-shadow: 0 1px 6px #000c; }
.slide-text .btn { align-self: flex-start; margin-top: 10px; }
.slider-arrow { position: absolute; z-index: 3; top: 186px; width: 48px; height: 48px; border-radius: 24px; border: 1px solid #ffffff55; background: #00000055; color: #fff; font-size: 22px; cursor: pointer; }
.slider-arrow.prev { left: 32px; } .slider-arrow.next { right: 32px; }
.slider-arrow:hover { background: #000000a0; }
.slider-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 4px; border: none; background: #ffffff66; cursor: pointer; padding: 0; transition: width .3s; }
.slider-dots button.active { width: 32px; background: var(--gold); }

/* --- main navigation ---------------------------------------------------------------------------------------------------------------- */
.mainnav { height: 58px; padding: 0 var(--gutter); display: flex; align-items: stretch; gap: 4px; background: var(--panel); border-bottom: 2px solid var(--gold); overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
body[data-page=news] .mainnav { padding-left: calc(var(--gutter) + 272px); }
.mainnav a { display: flex; align-items: center; padding: 0 26px; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: .08em; color: var(--sand); text-transform: uppercase; white-space: nowrap; }
.mainnav a:hover { background: #22282e; color: var(--heading); }
.mainnav a.active { color: var(--ink); background: var(--gold); }

/* --- page frame ------------------------------------------------------------------------------------------------------------------- */
main.page { flex: 1; padding: 32px var(--gutter) 48px; width: 100%; max-width: 1440px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 34px; letter-spacing: .04em; }
.tag { padding: 2px 8px; border-radius: 2px; background: #2a2f35; color: var(--gold-text); font-weight: 600; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.placeholder { border: 1px dashed var(--dashed); border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: 13px; text-align: center; padding: 10px; }
.notice { padding: 14px 16px; border-left: 3px solid var(--gold); background: #1d1b12; color: var(--text-3); border-radius: 0 4px 4px 0; }
.error-box { padding: 14px 16px; border-left: 3px solid var(--rupeco); background: #25130f; color: var(--text-3); border-radius: 0 4px 4px 0; }

/* --- home grid ---------------------------------------------------------------------------------------------------------------------- */
.home-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 10px; }
.game-start { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px; background: var(--gold); color: var(--ink); border-radius: 4px; text-align: center; border: none; cursor: pointer; width: 100%; }
.game-start:hover { background: var(--gold-hover); color: var(--ink); }
.game-start .big { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: .06em; line-height: 1.1; }
.game-start .sub { font-size: 12px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.linklist { display: flex; flex-direction: column; overflow: hidden; }
.linklist a { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--sand); font-size: 15px; }
.linklist a:last-child { border-bottom: none; }
.linklist a:hover { background: #1f2429; color: var(--heading); }
.war-mini { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.war-mini .label { font-family: var(--font-head); font-size: 15px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.war-bar-mini { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.war-bar-mini .w { background: var(--west); } .war-bar-mini .r { background: var(--rupeco); }
.war-mini .row { display: flex; justify-content: space-between; font-size: 13px; }
.west-text { color: var(--west-text); } .rupeco-text { color: var(--rupeco-text); }
.feed { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px; }
.news-card .thumb { width: 220px; height: 140px; border-radius: 3px; object-fit: cover; background: #0c0f12; display: block; }
.news-card .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-card .title { font-family: var(--font-head); font-weight: 600; font-size: 26px; color: var(--heading); line-height: 1.1; }
.news-card .title:hover { color: var(--gold-hover); }
.news-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.reactions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #1d2226; color: var(--sand); border: 1px solid var(--line-2); border-radius: 3px; font-size: 14px; cursor: pointer; }
.react:hover { border-color: #5d563f; color: var(--heading); }
.react.on-like { background: #3a3420; border-color: #6d6230; } .react.on-dislike { background: #3a2220; border-color: #6d3a30; }
.react svg { width: 15px; height: 15px; }
.ads { display: flex; flex-direction: column; gap: 16px; }
.ads .ad-600 { height: 600px; } .ads .ad-250 { height: 250px; }
.ads .placeholder span:first-child { letter-spacing: .2em; }

/* --- patch log ------------------------------------------------------------------------------------------------------------------- */
.patch-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.patch-list { display: flex; flex-direction: column; overflow: hidden; }
.patch-list .head { padding: 14px 16px; font-family: var(--font-head); font-size: 16px; letter-spacing: .14em; color: var(--muted); border-bottom: 1px solid var(--line); text-transform: uppercase; }
.patch-list a { padding: 12px 16px 12px 13px; color: var(--sand); font-size: 15px; border-top: 1px solid var(--line); border-left: 3px solid transparent; display: flex; flex-direction: column; gap: 2px; }
.patch-list a .d { font-size: 12px; color: var(--muted); }
.patch-list a.active { background: #22282e; border-left-color: var(--gold); color: var(--heading); }
.patch-list a:hover { background: #1f2429; }
.patch-filter { display: flex; gap: 6px; padding: 10px 12px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line-2); background: #1d2226; color: var(--sand); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
article.post { display: flex; flex-direction: column; gap: 20px; padding: 32px 36px; min-width: 0; }
article.post h1 { font-size: 48px; line-height: 1.02; text-wrap: balance; }
article.post .lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-3); max-width: 70ch; }
article.post .cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 3px; }
.rich { font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 75ch; }
.rich h2 { font-size: 28px; margin: 22px 0 8px; } .rich h3 { font-size: 22px; margin: 18px 0 6px; } .rich h4 { font-size: 18px; margin: 14px 0 4px; }
.rich p { margin: 0 0 12px; } .rich ul, .rich ol { padding-left: 22px; margin: 0 0 12px; } .rich li { margin-bottom: 6px; }
.rich strong { color: var(--heading); }
.rich blockquote { margin: 12px 0; padding: 4px 16px; border-left: 3px solid var(--gold); color: var(--text-2); }
.rich figure { margin: 18px 0; max-width: 100%; }
.rich figure img, .rich figure video, .rich > img, .rich p img { width: 100%; height: auto; border-radius: 3px; display: block; background: #0c0f12; }
.rich figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.rich code { background: #0c0f12; padding: 1px 5px; border-radius: 2px; }
.yt { position: relative; aspect-ratio: 16/9; background: #0c0f12; border: 1px dashed var(--dashed); border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; margin: 18px 0; padding: 16px; text-align: center; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt p { margin: 0; font-size: 13px; color: var(--muted); max-width: 46ch; }
.comments { display: flex; flex-direction: column; gap: 14px; }
.comments textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; padding: 10px; font-size: 15px; resize: vertical; width: 100%; }
.comment { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--panel-2); border-radius: 3px; }
.comment .who { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.comment .who b { color: var(--gold-text); }
.comment .who span { color: var(--muted-2); }
.comment p { margin: 0; font-size: 15px; color: var(--text-3); white-space: pre-wrap; overflow-wrap: anywhere; }
.link-btn { background: none; border: none; color: var(--muted-2); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }
.link-btn:hover { color: var(--rupeco-text); }
.divider { border-top: 1px solid var(--line); padding-top: 8px; }

/* --- jobs ----------------------------------------------------------------------------------------------------------------------- */
.soon { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: #1d1b12; border: 1px solid #5d563f; border-radius: 4px; color: var(--text-3); }
.soon b { font-family: var(--font-head); font-size: 22px; letter-spacing: .12em; color: var(--gold-text); white-space: nowrap; }
.war { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; }
.war h1 { font-size: 40px; letter-spacing: .04em; }
.war-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 20px; align-items: center; }
.faction { display: flex; align-items: center; gap: 12px; }
.faction.right { justify-content: flex-end; text-align: right; }
.faction .name { font-family: var(--font-head); font-weight: 700; font-size: 24px; display: block; }
.faction .done { font-size: 14px; color: var(--muted); }
.war-bar { display: flex; height: 34px; border-radius: 4px; overflow: hidden; border: 1px solid #33393f; }
.war-bar div { display: flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; }
.war-bar .w { background: var(--west); padding-left: 14px; } .war-bar .r { background: var(--rupeco); flex: 1; justify-content: flex-end; padding-right: 14px; }
.reward { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.reward img { width: 120px; height: 160px; object-fit: cover; border-radius: 3px; border: 1px solid #5d563f; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job { display: flex; flex-direction: column; gap: 12px; padding: 22px; min-height: 240px; border-radius: 6px; border: 1px solid; }
.job.west { background: var(--west-bg); border-color: var(--west); --accent: var(--west-text); }
.job.rupeco { background: var(--rupeco-bg); border-color: var(--rupeco); --accent: var(--rupeco-text); }
.job .top { display: flex; justify-content: space-between; align-items: center; }
.job .fac { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .18em; color: var(--accent); }
.job .kind { font-size: 13px; padding: 2px 8px; border-radius: 2px; background: #00000040; }
.job h3 { font-size: 28px; line-height: 1.05; color: #f7f2e6; }
.job p { margin: 0; font-size: 15px; color: #ddd6c6; }
.job .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.job .prog { height: 8px; border-radius: 4px; background: #00000055; overflow: hidden; }
.job .prog div { height: 8px; background: var(--accent); }
.job .nums { display: flex; justify-content: space-between; font-size: 14px; }
.job .nums b { color: var(--gold-text); }
.board-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.board { overflow: hidden; }
.board .r { display: grid; grid-template-columns: 80px minmax(0, 1fr) 160px 140px; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-3); font-variant-numeric: tabular-nums; }
.board .r.h { font-size: 13px; letter-spacing: .1em; color: var(--muted); border-bottom-color: var(--line); }
.board .rank { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--gold-text); }
.board .num { text-align: right; }
/* P19 (4): example vs. live — the note says which one the page shows; live cards of the other faction are dimmed */
.soon.loading b { color: var(--muted); }
.soon.live { background: #12201a; border-color: #3f6b52; } .soon.live b { color: #7fd6a0; }
.soon.error { background: #2a1512; border-color: var(--rupeco); } .soon.error b { color: var(--rupeco-text); }
.soon a { color: var(--gold-text); font-weight: 600; }
.war-bar .w { min-width: 3.4em; }
.job.other { opacity: .62; }
.job.completed { box-shadow: inset 0 0 0 2px var(--gold); }
.job .status { align-self: flex-start; font-size: 12px; letter-spacing: .08em; padding: 2px 8px; border-radius: 2px; background: #00000040; color: var(--accent); }
.job.completed .status { background: var(--gold); color: var(--ink); font-weight: 700; }
.board .r.empty { grid-template-columns: 1fr; padding: 18px 20px; }

/* --- profile --------------------------------------------------------------------------------------------------------------------- */
.profile-head { display: flex; align-items: center; gap: 24px; padding: 24px 28px; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 4px; border: 1px solid var(--line-2); background: #0c0f12; display: flex; align-items: center; justify-content: center; }
.profile-head h1 { font-size: 44px; line-height: 1.05; overflow-wrap: anywhere; }
.profile-head .sub { font-size: 16px; color: #b9b2a2; }
.profile-head .grow { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 5px; background: var(--good); margin-right: 6px; }
.search { display: flex; gap: 8px; }
.search input, .form input { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; padding: 9px 11px; font-size: 15px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile .l { font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.tile .v { font-family: var(--font-head); font-weight: 700; font-size: 40px; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .n { font-size: 13px; color: var(--muted-2); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { font-size: 26px; }
.card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vis { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.vis select { background: #1d2226; color: var(--sand); border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 6px; }
.vis-badge { font-size: 13px; color: var(--muted); }
.locked { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; padding: 12px 0; }
.table { display: flex; flex-direction: column; }
.table .r { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.table .r.h { font-size: 13px; letter-spacing: .1em; color: var(--muted); border-bottom-color: var(--line); padding-bottom: 6px; text-transform: uppercase; }
.table .num { text-align: right; } .pos { color: var(--good); } .neg { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; }
.zones { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; }
.zones .list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.zones .z { display: grid; grid-template-columns: 14px minmax(0, 1fr) 52px; gap: 10px; align-items: center; }
.zones .sw { width: 12px; height: 12px; border-radius: 2px; }
.friend { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-3); font-size: 15px; }
/* Part P12: result check of a booked match (profile "Last matches") */
.check { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 2px; font-size: 12px; letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--muted); vertical-align: 1px; }
.check-verified { color: var(--good); border-color: #3f5a36; }
.check-unverified { color: var(--bad); border-color: #5a2f25; }

/* --- account / forms / info --------------------------------------------------------------------------------------------------------- */
.narrow { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.form h2 { font-size: 28px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.form .msg { min-height: 1.2em; font-size: 14px; }
.form .msg.err { color: var(--bad); } .form .msg.ok { color: var(--good); }
.info { padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.info h1 { font-size: 40px; } .info h2 { font-size: 24px; margin-top: 10px; }
.info p, .info li { color: var(--text-3); max-width: 75ch; }
.steps { counter-reset: s; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 14px; background: var(--gold); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* --- footer, toast -------------------------------------------------------------------------------------------------------------- */
.footer { min-height: 56px; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bar); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #22282e; border: 1px solid var(--line-2); color: var(--text); padding: 10px 18px; border-radius: 4px; z-index: 30; max-width: calc(100% - 32px); box-shadow: 0 6px 24px #000a; }
.toast.ok { border-color: #4d6a3a; } .toast.err { border-color: var(--rupeco); }

/* --- tablet / phone -------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .ads { grid-column: 1 / -1; flex-direction: row; }
  .ads .ad-600 { height: 250px; flex: 2; } .ads .ad-250 { flex: 1; }
  body[data-page=news] .mainnav { padding-left: var(--gutter); }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .slider { height: 360px; }
  .slide-text { left: 20px; right: 20px; top: auto; bottom: 56px; width: auto; max-width: none; gap: 8px; }
  .slide::after { background: linear-gradient(0deg, var(--shade) 0%, var(--shade) 42%, transparent 88%); }
  .slide-text h1 { font-size: 38px; }
  .slide-text p { font-size: 16px; }
  .slide-text .btn { padding: 10px 16px; margin-top: 4px; }
  .slider-arrow { top: 16px; width: 40px; height: 40px; }
  .slider-arrow.prev { left: auto; right: 64px; } .slider-arrow.next { right: 16px; }
  .home-grid, .patch-grid, .two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ads { display: none; }
  .news-card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .news-card .thumb { width: 100%; height: auto; aspect-ratio: 440 / 280; }
  .news-card .title { font-size: 23px; }
  .mainnav { height: 50px; }
  .mainnav a { padding: 0 16px; font-size: 18px; }
  article.post { padding: 20px 16px; } article.post h1 { font-size: 34px; }
  .patch-list { max-height: 260px; overflow-y: auto; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .war { padding: 20px 16px; } .war h1 { font-size: 30px; }
  .war-row { grid-template-columns: 1fr 1fr; }
  .war-row .war-bar { grid-column: 1 / -1; grid-row: 2; }
  .faction svg { width: 32px; height: 32px; } .faction .name { font-size: 19px; }
  .board .r { grid-template-columns: 44px minmax(0, 1fr) 90px; padding: 10px 12px; }
  .board .r > :nth-child(3) { display: none; }
  .profile-head { padding: 18px 16px; gap: 16px; } .profile-head h1 { font-size: 34px; }
  .zones { grid-template-columns: 120px minmax(0, 1fr); }
  .zones svg { width: 120px; height: auto; }
  .table .r { grid-template-columns: 96px minmax(0, 1fr) 90px; font-size: 14px; }
  .topbar .lang-pick span { display: none; }
  .brand span { font-size: 19px; }
  .soon { flex-direction: column; align-items: flex-start; }
  .reward { grid-template-columns: 90px minmax(0, 1fr); } .reward img { width: 90px; height: 120px; }
  .info { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; } .tile .v { font-size: 30px; }
  .section-head h2 { font-size: 28px; }
  .card { padding: 16px; }
}

/* example values of the faction war until the Jobs system exists (the bar widths are set by script from data later) */
.war-bar-mini .w { width: 58%; } .war-bar-mini .r { flex: 1; }
body.logged-in .guest-only { display: none; }
body:not(.logged-in) .user-only { display: none; }
.gold-text { color: var(--gold); }

/* --- live matches + bets (Teil W-WEB2) ------------------------------------------------------------------------------------------------
   Faction colours = the tokens of the approved design (Jobs artboard: --west/--rupeco and their -text/-bg variants). */
.btn.small { padding: 7px 14px; font-size: 14px; }
.page-title { font-size: 44px; letter-spacing: .03em; line-height: 1.05; }
.page-lead { margin: 0; max-width: 80ch; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.live-side { position: sticky; top: 16px; }
.live-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 14px; }
.live-state .dot { width: 9px; height: 9px; border-radius: 5px; background: var(--muted-2); }
.live-state[data-state=live] { color: var(--good); border-color: #3d5a31; }
.live-state[data-state=live] .dot { background: var(--good); animation: livepulse 1.6s ease-in-out infinite; }
.live-state[data-state=reconnecting] .dot, .live-state[data-state=polling] .dot { background: var(--gold); }
@keyframes livepulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-state[data-state=live] .dot { animation: none; } }
.match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.match-list > .empty, .match-list > .error-box, .match-list > p { grid-column: 1 / -1; margin: 0; }
.match-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0; }
.match-card.mine { border-color: #5d563f; }
.mc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-map { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--heading); }
.mc-status { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; padding: 2px 9px; border-radius: 2px; }
.mc-status.live { background: #a3271f; color: #fff; }
.mc-status.finished { background: #2a2f35; color: var(--sand); }
.mc-status.aborted { border: 1px solid var(--rupeco); color: var(--rupeco-text); }
.mc-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mc-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.mc-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 4px; border: 1px solid; min-width: 0; }
.mc-side.west { background: var(--west-bg); border-color: var(--west); }
.mc-side.rupeco { background: var(--rupeco-bg); border-color: var(--rupeco); text-align: right; }
.mc-fac { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .16em; }
.mc-side.west .mc-fac { color: var(--west-text); } .mc-side.rupeco .mc-fac { color: var(--rupeco-text); }
.mc-num { font-family: var(--font-head); font-weight: 700; font-size: 52px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.mc-count { font-size: 13px; color: var(--text-2); }
.mc-names { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 104px; text-align: center; }
.mc-clock { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--heading); font-variant-numeric: tabular-nums; }
.mc-round, .mc-crit { font-size: 12px; color: var(--muted); }
.match-card.dm .mc-side.west, .match-card.dm .mc-side.rupeco { background: var(--panel-2); border-color: var(--line-2); }
.match-card.dm .mc-fac { color: var(--sand); }
.mc-forecast { display: flex; flex-direction: column; gap: 6px; }
.fc-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #0c0f12; }
.fc-bar .w { background: var(--west); } .fc-bar .d { background: #5a5f66; } .fc-bar .r { background: var(--rupeco); }
.fc-text { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.fc-text .fc-note { color: var(--muted); flex-basis: 100%; }
.mc-int { font-size: 13px; padding-left: 10px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.mc-int.ok { border-left-color: var(--good); } .mc-int.bad { border-left-color: var(--rupeco); color: var(--rupeco-text); }
.mc-int.wait { border-left-color: var(--gold); } .mc-int.muted { color: var(--muted); }
.mc-market { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.mc-market p { margin: 0; }
.mk-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-title { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .08em; color: var(--sand); text-transform: uppercase; }
.mk-status { font-size: 12px; padding: 1px 7px; border-radius: 2px; background: #2a2f35; color: var(--sand); }
.mk-status.open { background: #2f3b22; color: var(--good); } .mk-status.closed { background: #3a3420; color: var(--gold-text); }
.mk-status.void { background: #2a2f35; color: var(--muted); }
.mk-status.review { background: #3a3420; color: var(--gold-text); } /* user decision 2026-09-25: unverified -> admin review */
.pools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pool { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 6px 10px; background: var(--panel-2); border-radius: 3px; border-left: 3px solid; }
.pool.west { border-left-color: var(--west); } .pool.rupeco { border-left-color: var(--rupeco); }
.pool-fac { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.pool.west .pool-fac { color: var(--west-text); } .pool.rupeco .pool-fac { color: var(--rupeco-text); }
.pool b { font-family: var(--font-head); font-size: 22px; color: var(--heading); font-variant-numeric: tabular-nums; }
.pool .cur, .pool-n { font-size: 12px; color: var(--muted); }
.pool-q { margin-left: auto; font-weight: 600; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.pool-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--rupeco); }
.pool-split .w { background: var(--west); } .pool-split .r { flex: 1; background: var(--rupeco); }
.bar-track { height: 6px; border-radius: 3px; background: #0c0f12; overflow: hidden; }
.bar-fill { height: 6px; background: var(--gold); width: 0; }
.mk-close { display: flex; flex-direction: column; gap: 4px; }
.mk-mine { font-size: 14px; color: var(--gold-text); font-weight: 600; }
.mk-act { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.own-note { font-size: 13px; color: var(--muted); }
.rooms { overflow: hidden; }
.rooms .r { display: grid; grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 96px; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-3); font-size: 14px; }
.rooms .r.h { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; border-bottom-color: var(--line); }
.rooms .r:last-child { border-bottom: none; }
.rooms .room { color: var(--heading); overflow-wrap: anywhere; } .rooms .num { text-align: right; font-variant-numeric: tabular-nums; }
.rooms > .empty { padding: 14px 16px; margin: 0; }
.assets-card .assets-big { font-family: var(--font-head); font-weight: 700; font-size: 44px; color: var(--gold-text); line-height: 1.05; font-variant-numeric: tabular-nums; }
.assets-card .cur { font-size: 16px; color: var(--muted); font-weight: 400; }
.assets-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid #5d563f; border-radius: 13px; color: var(--gold-text); font-size: 13px; }
.assets-chip .cur { color: var(--muted); font-size: 12px; }
.assets-chip b { font-variant-numeric: tabular-nums; }
.explain h2 { font-size: 24px; }
.explain-lead { margin: 0; color: var(--text-3); }
.explain-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; }
/* bet slip (dialog) */
.bet-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 18px 60px #000c; }
.bet-dialog::backdrop { background: #05070acc; }
.bet-dialog form { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.bet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bet-head h2 { font-size: 30px; }
.bet-x { background: none; border: 1px solid var(--line-2); color: var(--sand); width: 34px; height: 34px; border-radius: 17px; font-size: 20px; cursor: pointer; }
.bet-match { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.bet-match .bet-score { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.bet-sides { border: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bet-sides legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.pick { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 2px solid; border-radius: 4px; cursor: pointer; position: relative; }
.pick.west { background: var(--west-bg); border-color: #24507f; } .pick.rupeco { background: var(--rupeco-bg); border-color: #7c3322; }
.pick input { position: absolute; top: 12px; right: 12px; accent-color: var(--gold); }
.pick-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.pick.west .pick-name { color: var(--west-text); } .pick.rupeco .pick-name { color: var(--rupeco-text); }
.pick-pool { font-size: 13px; color: var(--text-2); }
.pick:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.bet-stake { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.bet-stake input { background: var(--bg); color: var(--heading); border: 1px solid var(--line-2); border-radius: 3px; padding: 10px 12px; font-size: 22px; font-family: var(--font-head); font-weight: 700; width: 100%; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.bet-dialog p { margin: 0; }
.bet-estimate { padding: 10px 12px; background: #1d1b12; border-radius: 3px; color: var(--text-3); font-size: 14px; }
.bet-close { display: flex; flex-direction: column; gap: 4px; }
.bet-dialog .msg { min-height: 1.2em; font-size: 14px; } .bet-dialog .msg.err { color: var(--bad); }
.bet-foot { display: flex; justify-content: flex-end; gap: 10px; }
.bet-foot .btn-ghost { padding: 11px 18px; }
/* my bets */
.bet-table { overflow: hidden; }
.bet-table .r { display: grid; grid-template-columns: 138px minmax(0, 1.5fr) 76px 80px 150px minmax(0, 1.4fr); gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-3); font-size: 14px; align-items: baseline; font-variant-numeric: tabular-nums; }
.bet-table.ledger .r { grid-template-columns: 138px 190px minmax(0, 1fr) 96px 96px; }
.bet-table .r.h { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; border-bottom-color: var(--line); }
.bet-table .r:last-child { border-bottom: none; }
.bet-table .num { text-align: right; } .bet-table .when { color: var(--muted); font-size: 13px; }
.bet-table .match b { color: var(--heading); font-weight: 600; } .bet-table .side { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; }
.bet-table .why { color: var(--text-2); } .bet-table .memo { overflow-wrap: anywhere; }
.bet-table > .empty { padding: 16px; margin: 0; } .bet-table > .btn { margin: 0 16px 16px; }
.badge { font-size: 12px; padding: 1px 7px; border-radius: 2px; background: #2a2f35; color: var(--sand); }
.badge.open { background: #3a3420; color: var(--gold-text); } .badge.won { background: #2f3b22; color: var(--good); }
.badge.lost { background: #3a1d17; color: var(--bad); } .badge.refunded { background: #2a2f35; color: var(--muted); }
.badge.review { background: #3a3420; color: var(--gold-text); }
.tile.gold .v { color: var(--gold-text); } .tile.pos .v { color: var(--good); } .tile.neg .v { color: var(--bad); }
@media (max-width: 1180px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .live-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 900px) {
  .page-title { font-size: 34px; }
  .match-list { grid-template-columns: minmax(0, 1fr); }
  .live-side { grid-template-columns: minmax(0, 1fr); }
  .mc-num { font-size: 40px; } .mc-mid { min-width: 84px; } .mc-clock { font-size: 20px; }
  .rooms .r { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .rooms .r > :nth-child(3), .rooms .r > :nth-child(4) { display: none; }
  .topbar .assets-chip .cur { display: none; }
  .bet-table .r.h { display: none; }
  .bet-table .r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m m" "w s" "st res" "y y"; row-gap: 4px; }
  .bet-table .r > :nth-child(1) { grid-area: w; } .bet-table .r > :nth-child(2) { grid-area: m; } .bet-table .r > :nth-child(3) { grid-area: s; text-align: right; }
  .bet-table .r > :nth-child(4) { grid-area: st; text-align: left; } .bet-table .r > :nth-child(5) { grid-area: res; } .bet-table .r > :nth-child(6) { grid-area: y; }
  .bet-table.ledger .r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a am" "w b" "me me"; }
  .bet-table.ledger .r > :nth-child(1) { grid-area: w; } .bet-table.ledger .r > :nth-child(2) { grid-area: a; } .bet-table.ledger .r > :nth-child(3) { grid-area: me; }
  .bet-table.ledger .r > :nth-child(4) { grid-area: am; } .bet-table.ledger .r > :nth-child(5) { grid-area: b; }
  .bet-table.ledger .r > :nth-child(3) { text-align: left; }
  .bet-dialog form { padding: 16px; }
  .bet-head h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .pools { grid-template-columns: minmax(0, 1fr); }
  .bet-sides { grid-template-columns: minmax(0, 1fr); }
  /* logged in, the top bar carries brand + language + Assets + logout: the callsign moves out (it is on the profile page) */
  .topbar-right { gap: 8px; }
  .account-slot { gap: 8px; }
  body.logged-in .account-slot .who { display: none; }
  .lang-pick select { max-width: 96px; }
  .brand { gap: 8px; } .brand span { font-size: 16px; letter-spacing: .12em; }
}

/* Release downloads (user 2026-09-25) */
.downloads { display: grid; gap: 14px; margin: 18px 0 8px; }
.download { border: 1px solid var(--line, #3a3a3a); border-radius: 10px; padding: 14px 16px; }
.download-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.download p { margin: 8px 0 12px; }
.download .btn { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
