/* ELME Player Guide – 2026 layout. Mobile first, no framework. */
:root {
  --bg: #0e0f13;
  --bg-2: #15171e;
  --card: #1b1e27;
  --line: #2a2e3a;
  --text: #eceef3;
  --muted: #a3a9b8;
  --red: #e0242c;
  --red-2: #ff4d55;
  --gold: #f2b53a;
  --ok: #3ccf6e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-2); }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Progress + nav */
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); z-index: 60; }
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 19, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.topnav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; white-space: nowrap; }
.topnav .brand img { height: 34px; width: auto; }
.topnav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.topnav nav::-webkit-scrollbar { display: none; }
.topnav nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.topnav nav a:hover, .topnav nav a.active { color: var(--text); background: var(--card); }
@media (max-width: 720px) {
  .topnav .wrap { flex-wrap: wrap; gap: 0; padding: 6px 0; }
  .topnav nav { margin: 0 -16px; padding: 4px 16px 8px; width: calc(100% + 32px); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red-2); color: #fff; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78ff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(224, 36, 44, .25), transparent 60%); pointer-events: none;
}
.hero .wrap { display: grid; gap: 32px; align-items: center; position: relative; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero h1 span { color: var(--red-2); }
.hero .lead { font-size: 1.12rem; color: #cfd3dc; max-width: 40em; }
.hero-art { position: relative; justify-self: center; }
.hero-art img { width: min(420px, 80vw); filter: drop-shadow(0 20px 40px rgba(224, 36, 44, .35)); }
.badge-updated {
  position: absolute; top: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: .8rem;
}
.badge-updated b { color: var(--text); }

/* Quick start */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px 62px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800;
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section-head p { color: var(--muted); }

/* Cards grid */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(224, 36, 44, .15); color: var(--red-2); font-size: 1.15rem; margin-bottom: 12px; }
.card ul { margin: .4em 0 0; padding-left: 1.1em; color: #cfd3dc; }
.card li { margin: .25em 0; }
.card p { color: #cfd3dc; }

/* Key/value settings */
.kv { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg); border-radius: 10px; margin: 0; }
.kv li span { color: var(--muted); }
.kv li b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Voice check */
.voice { display: grid; gap: 20px; }
@media (min-width: 900px) { .voice { grid-template-columns: 1.2fr .8fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: chk; }
.checklist li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 56px; position: relative; color: #cfd3dc;
}
.checklist li::before {
  counter-increment: chk; content: counter(chk);
  position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--gold); font-weight: 800;
}
.checklist li b { color: var(--text); }
.callout { border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 12px 12px 0; padding: 14px 16px; color: #cfd3dc; }

/* Hotkeys */
.keys { display: grid; gap: 16px; }
@media (min-width: 640px) { .keys { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .keys { grid-template-columns: repeat(3, 1fr); } }
.keys .card h3 { display: flex; align-items: center; gap: 10px; }
.keys .card h3 i { color: var(--red-2); }
.keyrow { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.keyrow:first-of-type { border-top: 0; }
.keyrow span { color: #cfd3dc; font-size: .95rem; }
kbd {
  display: inline-block; min-width: 2.2em; text-align: center; padding: 4px 8px; border-radius: 8px;
  background: linear-gradient(#2b2f3b, #20232c); border: 1px solid #3a3f4d; border-bottom-width: 3px;
  color: #fff; font: 700 .85rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; white-space: nowrap;
}

/* Officer tips */
.tips { display: grid; gap: 16px; }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tips { grid-template-columns: repeat(3, 1fr); } }
.tip { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tip blockquote { margin: 0; color: #dfe2e9; }
.tip .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tip .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.tip .who b { display: block; }
.tip .who small { color: var(--muted); }

/* Schedule */
.schedule { display: grid; gap: 14px; }
@media (min-width: 640px) { .schedule { grid-template-columns: repeat(2, 1fr); } }
.slot { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.slot .day { min-width: 72px; text-align: center; background: var(--red); color: #fff; border-radius: 12px; padding: 8px 6px; font-weight: 800; line-height: 1.1; }
.slot .day small { display: block; font-weight: 600; opacity: .85; }
.slot h3 { margin: 0 0 .2em; }
.slot p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Codes */
.codes { display: grid; gap: 10px; }
@media (min-width: 640px) { .codes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .codes { grid-template-columns: repeat(3, 1fr); } }
.code {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 10px 10px 14px;
}
.code > div { min-width: 0; flex: 1; }
.code code { display: block; font: 700 .95rem/1.3 ui-monospace, Menlo, monospace; color: #fff; word-break: break-all; }
.code small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.copy {
  flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-family: inherit; font-size: .85rem; font-weight: 600; line-height: 1; cursor: pointer; min-width: 74px;
}
.copy:hover { border-color: var(--red-2); }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* Discord */
.discord-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .discord-grid { grid-template-columns: 1.1fr .9fr; } }
.discordwidget { width: 100%; height: 420px; border: 0; border-radius: var(--radius); background: var(--card); }
.official { display: flex; flex-direction: column; gap: 12px; }

/* About + footer */
.about { text-align: center; }
.about img { width: 220px; margin: 0 auto 16px; border-radius: 20px; }
.about p { max-width: 760px; margin: 0 auto 1em; color: #cfd3dc; }
.social { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 1.1rem;
}
.social a:hover { border-color: var(--red-2); color: var(--red-2); }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }
footer.site a { color: var(--text); }

/* Back to top */
#to-top {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
#to-top.show { opacity: 1; pointer-events: auto; }

/* Maps & Dog Tags */
.anchor { display: block; position: relative; top: -72px; }
.dt-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.dt-tab {
  border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer;
}
.dt-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.dt-meta { text-align: center; margin-bottom: 18px; }
.dt-meta b { color: var(--gold); }
.dt-body { display: grid; gap: 20px; }
@media (min-width: 980px) { .dt-body { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.dt-body:has(.dt-side[hidden]) { grid-template-columns: 1fr; max-width: 880px; margin-inline: auto; }
.dt-maptools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.dt-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dt-opts label { display: flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.dt-zoom { display: flex; gap: 6px; }
.dt-zoom .copy { min-width: 40px; font-size: 1rem; }
.dt-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1018; }
.ps2map { display: block; width: 100%; aspect-ratio: 1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ps2map:active { cursor: grabbing; }
.ps2map * { vector-effect: non-scaling-stroke; }
.m-sea { fill: #0b1018; }
.m-region { fill: #183326; stroke: none; cursor: pointer; }
.m-region.k-small { fill: #16301f; }
.m-region.k-large { fill: #1b3a29; }
.m-region.k-major { fill: #214733; }
.m-region.k-gate { fill: #2b3140; }
.m-region:hover { fill: #2a5a40; }
.m-hexmesh { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: .6; pointer-events: none; }
.m-rborder { fill: none; stroke: rgba(225, 235, 230, .45); stroke-width: 1.1; pointer-events: none; }
.m-gridline { stroke: rgba(242, 181, 58, .16); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.m-gridlabel { fill: rgba(242, 181, 58, .75); font-weight: 700; font-family: ui-monospace, Menlo, monospace; text-anchor: middle; pointer-events: none; }
.m-link { stroke: #f2b53a; stroke-opacity: .6; stroke-width: 1.6; pointer-events: none; }
.m-base { cursor: pointer; }
.m-base * { stroke: #0b1018; stroke-width: 1.4; }
.m-base.k-gate circle { fill: #9aa4ff; }
.m-base.k-major rect { fill: #ffffff; }
.m-base.k-large circle { fill: #c9d0dc; }
.m-base.k-small circle { fill: #8e97a8; }
.m-base:hover *, .m-base:focus-visible * { fill: var(--gold); }
.m-label { fill: #e3e7ef; font-family: system-ui, sans-serif; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #0b1018; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.m-label.k-major, .m-label.k-gate { fill: #fff; font-weight: 800; }
.m-label.k-small { fill: #b3bac8; font-weight: 500; }
.dt-pin circle { fill: var(--gold); stroke: #0b1018; stroke-width: 2; }
.dt-pin.is-approx circle { fill: rgba(242, 181, 58, .25); stroke: var(--gold); stroke-dasharray: 3 2; }
.dt-pin:hover circle, .dt-pin:focus-visible circle { fill: #fff; }
.dt-pin.is-found circle { fill: var(--ok); opacity: .6; }
.dt-pin.is-sel circle { fill: var(--red-2); opacity: 1; stroke: #fff; }
.dt-info { margin: 8px 0 0; min-height: 1.6em; }
.dt-info b { color: var(--text); }
.dt-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 8px 0 4px; }
.dt-legend li { display: flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0b1018; }
.lg-gate { background: #9aa4ff; }
.lg-major { background: #fff; border-radius: 1px; transform: rotate(45deg); width: 9px; height: 9px; }
.lg-large { background: #c9d0dc; }
.lg-small { background: #8e97a8; width: 7px; height: 7px; }
.lg-link { width: 16px; height: 0; border: 0; border-top: 2px solid rgba(242, 181, 58, .7); border-radius: 0; }
.lg-tag { background: var(--gold); }
.lg-approx { background: rgba(242, 181, 58, .25); border: 1px dashed var(--gold); }
.dt-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.dt-tools input[type=search] {
  flex: 1 1 200px; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font: inherit;
}
.dt-tools label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.dt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 620px; overflow-y: auto; }
.dt-nogrid-wrap { margin-top: 18px; }
.dt-nogrid-wrap h3 { margin-bottom: .2em; }
.dt-nogrid { max-height: none; }
.dt-item {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.dt-item.is-sel { border-color: var(--red-2); }
.dt-item input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ok); }
.dt-item p { margin: 2px 0 0; color: #cfd3dc; font-size: .92rem; }
.dt-name { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.dt-name:hover { color: var(--red-2); }
.dt-grid {
  margin-left: 8px; font: 700 .78rem/1 ui-monospace, Menlo, monospace; color: var(--gold);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px;
}
.dt-empty { padding: 10px; }

/* Live territory control */
.dt-opts select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; font: inherit; }
.m-region.f-1 { fill: #45286f; }
.m-region.f-2 { fill: #1d4583; }
.m-region.f-3 { fill: #74202a; }
.m-region.f-4 { fill: #4a4f5a; }
.m-region.f-1:hover { fill: #5b3690; }
.m-region.f-2:hover { fill: #275aa8; }
.m-region.f-3:hover { fill: #962a36; }
.m-link.f-1 { stroke: #c9a7ff; stroke-opacity: .55; }
.m-link.f-2 { stroke: #9cc3ff; stroke-opacity: .55; }
.m-link.f-3 { stroke: #ff9ca3; stroke-opacity: .55; }
.m-link.is-front { stroke: #ffd36b; stroke-opacity: 1; stroke-width: 2.6; }
.dt-live { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 1.6em; }
.fx { font-weight: 800; padding: 1px 8px; border-radius: 999px; color: #fff; }
.fx.f-1 { background: #6b3fb0; }
.fx.f-2 { background: #2b64c4; }
.fx.f-3 { background: #b8323d; }
.lg-front { width: 16px; height: 0; border: 0; border-top: 3px solid #ffd36b; border-radius: 0; }

/* Map only: dog tags switched off */
.dt.no-tags .dt-side, .dt.no-tags .lg-tag, .dt.no-tags .lg-approx { display: none; }
.dt.no-tags .dt-legend li:has(.lg-tag), .dt.no-tags .dt-legend li:has(.lg-approx) { display: none; }
.dt.no-tags .dt-body { grid-template-columns: 1fr; max-width: 880px; margin-inline: auto; }

/* Terrain under the hexes: territories become translucent */
.ps2map .m-terrain { pointer-events: none; }
.ps2map.has-terrain .m-region { fill-opacity: 0; }
.ps2map.has-terrain .m-region:hover { fill: #ffffff; fill-opacity: .14; }
.ps2map.has-terrain .m-region.f-1, .ps2map.has-terrain .m-region.f-2, .ps2map.has-terrain .m-region.f-3, .ps2map.has-terrain .m-region.f-4 { fill-opacity: .42; }
.ps2map.has-terrain .m-region.f-1:hover, .ps2map.has-terrain .m-region.f-2:hover, .ps2map.has-terrain .m-region.f-3:hover { fill-opacity: .58; }
.ps2map.has-terrain .m-region.f-1 { fill: #7a3fd0; }
.ps2map.has-terrain .m-region.f-2 { fill: #2f6fe0; }
.ps2map.has-terrain .m-region.f-3 { fill: #d0303e; }
.ps2map.has-terrain .m-hexmesh { stroke: rgba(255, 255, 255, .10); }
.ps2map.has-terrain .m-rborder { stroke: rgba(255, 255, 255, .6); }

/* Icons: SVG-Sprite im Template (Font Awesome Free, CC BY 4.0) statt Font-Awesome-JS */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: inline-block; width: 1.15em; height: 1em; vertical-align: -.125em; fill: currentColor; overflow: visible; }
.heart { color: var(--red); }

/* Abstaende statt style-Attributen (CSP) */
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.center-row { justify-content: center; }

/* Naechste Termine aus Discord (serverseitig gerendert) */
.next-head { margin: 26px 0 10px; text-align: center; }
.next-events { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: grid; gap: 10px; }
.next-events li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.next-events li.live { border-color: var(--ok); }
.next-events a { color: var(--text); text-decoration: none; }
.next-events a:hover { color: var(--red-2); }
