/* 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; }

/* --- 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; }

/* --- 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); }
