/* ------------------------------------------------------------------
   Girls Echo Rechner – Look nach der Spieloberfläche:
   Sternenhimmel, dunkle Glas-Leisten, Limettengrün als Akzent,
   helle Lavendel-Zeilen, Creme- und Gold-Pillen, Hochkant-Charakterkarten.
   ------------------------------------------------------------------ */
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunito-sans.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --lime: #c8f04c;
  --lime-glow: #a6d62f;
  --text: #f1f2f8;
  --muted: #a3a8c6;
  --glass: rgba(16, 20, 46, .72);
  --glass-2: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .11);
  --row-ink: #262838;
  --row-bg: linear-gradient(90deg, #f6f7fc 0%, #f0f0fa 55%, #e2def5 100%);
  --cream: #f4efe4;
  --gold: linear-gradient(180deg, #fbe2a0 0%, #ecbc66 100%);
  --violet: #5751d6;
  --danger: #ff6b6b;
  --ok: #8fe05a;
  --r-ssrp: #e5453a; --r-ssr: #ef9b2a; --r-sr: #8d5ad6; --r-r: #3f8fe6; --r-ur: #b58cf0;
}
* { box-sizing: border-box; }
html { background: #080b1c; }
body {
  margin: 0; color: var(--text);
  font: 600 15px/1.5 "Nunito Sans", system-ui, sans-serif;
  background:
    radial-gradient(1px 1px at 7% 14%, #fffa, transparent), radial-gradient(1px 1px at 19% 61%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 36% 24%, #fff9, transparent), radial-gradient(1px 1px at 52% 78%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 68% 11%, #fffb, transparent), radial-gradient(1px 1px at 83% 43%, #fff7, transparent),
    radial-gradient(1px 1px at 93% 82%, #fff6, transparent), radial-gradient(1px 1px at 28% 91%, #fff6, transparent),
    radial-gradient(1px 1px at 61% 52%, #fff5, transparent), radial-gradient(1.5px 1.5px at 12% 37%, #fff8, transparent),
    linear-gradient(180deg, #080b1c 0%, #0d1230 55%, #26315f 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--lime); }
h1, h2, h3, h4 { font-weight: 800; }

/* ---------- Kopf mit Charakter-Banner ---------- */
header { position: relative; padding: 30px 24px 22px; max-width: 1280px; margin: 0 auto; display: flex; align-items: center;
  gap: 14px; min-height: 150px; overflow: hidden; }
header > *:not(.hero-art):not(.langs) { position: relative; z-index: 1; }
header .logo { width: 46px; height: 46px; flex: none; }
.hero-text { text-shadow: 0 2px 10px #000, 0 0 2px #000; }
/* Sprachwahl oben rechts */
.langs { position: absolute; top: 14px; right: 18px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: #0b0f24cc; box-shadow: 0 0 0 1px #ffffff22; backdrop-filter: blur(4px); }
.langs button { border: 0; background: none; color: #d6d9ea; font: 800 12px/1 "Nunito Sans", sans-serif; padding: 6px 11px;
  border-radius: 999px; cursor: pointer; }
.langs button.active { background: #6f8f1f88; color: var(--lime); }
.brand { font: 800 12px/1 "Nunito Sans", sans-serif; letter-spacing: .28em; color: var(--lime); text-transform: uppercase; }
h1 { margin: 3px 0 0; font: 900 32px/1.05 "Nunito Sans", sans-serif; color: #fff; }
header p { margin: 4px 0 0; color: #c3c7dd; font-size: 14px; }
.hero-art { position: absolute; right: 0; top: 0; height: 100%; width: 66%; display: flex; justify-content: flex-end; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-composite: intersect; }
.hero-art img { height: 260px; width: 150px; object-fit: cover; object-position: 50% 8%; margin-left: -34px; opacity: .9;
  transform: skewX(-8deg); border-left: 2px solid #ffffff22; }

/* ---------- Layout: Leiste links + Inhalt ---------- */
.layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 0 20px; }
nav#tabs { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 10px 0 10px 18px;
  border-left: 1px solid #ffffff2a; margin-top: 6px; }
nav#tabs button { position: relative; border: 0; background: none; color: #e8eaf4; text-align: left; cursor: pointer;
  font: 700 15px/1 "Nunito Sans", sans-serif; padding: 11px 16px 11px 34px; border-radius: 999px; }
/* Punkt auf der senkrechten Linie */
nav#tabs button::before { content: ""; position: absolute; left: -23px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: #0b0f24; border: 2px solid #d9dcef; }
/* Funkel-Stern vor dem Text */
nav#tabs button::after { content: "✦"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); font-size: 13px; color: #fff; }
nav#tabs button:hover { background: #ffffff0d; }
nav#tabs button.active { color: var(--lime); background: linear-gradient(90deg, #6f8f1f66, #3f521255); }
nav#tabs button.active::before { width: 22px; height: 22px; margin-top: -11px; left: -29px; border: 0;
  background: radial-gradient(circle, var(--lime) 0 22%, #7aa11e 23% 60%, #3e5410 61%); box-shadow: 0 0 14px #a6d62f88; }
nav#tabs button.active::after { color: var(--lime); }
main { min-width: 0; padding: 6px 0 24px; }
section { display: none; } section.active { display: block; }

footer { max-width: 1280px; margin: 0 auto; padding: 10px 24px 28px; color: #8d92b3; }
footer a { color: #c9cde3 !important; }
.official { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 0 16px; margin-bottom: 14px; border-bottom: 1px solid #ffffff1a; }
.official > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.official-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-right: 4px; }
a.olink { display: inline-block; padding: 5px 14px; border-radius: 10px; text-decoration: none; background: var(--cream);
  color: var(--row-ink) !important; font-size: 13px; font-weight: 800; box-shadow: inset 0 -2px 0 #0002; }
a.olink:hover { filter: brightness(1.05); }

/* ---------- Panels & Abschnittsleisten ---------- */
.card { position: relative; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 16px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px #0006; }
.card h3 { margin: 0 0 10px; font-size: 18px; color: #fff; }
.card h4 { margin: 14px 0 6px; font-size: 14px; color: var(--lime); }
/* Erste Überschrift = Leiste wie „Spiritueller Prototyp“ */
.card > h3:first-child, .card > .row:first-child h3, .card > div:first-child > h3:first-child {
  display: flex; align-items: center; gap: 8px; color: var(--lime); font-size: 20px; letter-spacing: .01em; }
.card > h3:first-child::before, .card > .row:first-child h3::before, .card > div:first-child > h3:first-child::before {
  content: "✦"; color: var(--lime); font-size: 15px; text-shadow: 0 0 10px #a6d62f; }
.card h3 .muted, .card h3 .small { color: var(--muted); font-weight: 700; }
main > section > h3 { font-size: 20px; color: var(--lime); margin: 18px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid > .card { margin-bottom: 0; min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > label { min-width: 0; max-width: 100%; }

/* ---------- Formulare & Knöpfe ---------- */
label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; font-weight: 700; }
input, select, textarea { font: inherit; color: #fff; background: #ffffff12; border: 1px solid #ffffff26; border-radius: 10px;
  padding: 7px 10px; min-width: 0; max-width: 100%; }
select option, select optgroup { color: #111; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; }
input[type=number] { width: 88px; }
input[type=date] { color-scheme: dark; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--lime-glow); }
textarea { width: 100%; min-height: 140px; font: 12px/1.4 ui-monospace, monospace; }
button.primary { background: var(--gold); color: #fff; border: 0; border-radius: 12px; padding: 8px 18px; cursor: pointer;
  font: 800 14px "Nunito Sans", sans-serif; text-shadow: 0 1px 2px #a46a1c; box-shadow: inset 0 -3px 0 #0001, 0 4px 12px #0004; }
button.primary:hover { filter: brightness(1.05); }
button.ghost { background: var(--cream); color: var(--row-ink); border: 0; border-radius: 10px; padding: 5px 12px; cursor: pointer;
  font: 800 13px "Nunito Sans", sans-serif; box-shadow: inset 0 -2px 0 #0002; }
button.ghost:hover { filter: brightness(1.04); }
button.ghost.active { background: #6f8f1f66; color: var(--lime); box-shadow: inset 0 0 0 1px #c8f04c66; }
button.link { background: none; border: 0; padding: 0; color: #fff; font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
button.link:hover { color: var(--lime); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid #ffffff14; vertical-align: middle; }
th { color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
th[data-sort] { cursor: pointer; } th[data-sort]:hover { color: #fff; }
table tr:hover td { background: #ffffff08; }
td.wrap { white-space: normal; min-width: 220px; }
tr.dim td { opacity: .5; }
/* Listen-Variante wie die Missions-Zeilen im Spiel */
table.list { border-collapse: separate; border-spacing: 0 8px; }
table.list th { border: 0; }
table.list td { background: #f3f3fa; color: var(--row-ink); border: 0; padding: 10px 12px; }
table.list td:first-child { border-radius: 12px 0 0 12px; }
table.list td:last-child { border-radius: 0 12px 12px 0; background: linear-gradient(90deg, #f3f3fa, #e3def6); }
table.list tr:hover td { background: #ffffff; }
table.list .muted { color: #6e7190; } table.list .bad { color: #d23b3b; } table.list .good { color: #3e8a1d; }
table.list button.link { color: var(--row-ink); }
table.list code { background: #e6e4f3; color: var(--violet); }

code { background: #ffffff14; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.chip { display: inline-block; background: #ffffff14; color: #dfe2f2; border-radius: 999px; padding: 0 8px; font-size: 12px; margin: 1px; white-space: nowrap; }
.el { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; }
.eli { display: inline-block; width: var(--s, 16px); height: var(--s, 16px); background: var(--c); flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.bad { color: var(--danger); } .good { color: var(--ok); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.big { display: block; font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--lime); font-variant-numeric: tabular-nums; }
.hl { color: var(--lime); font-weight: 800; }
mark { background: #c8f04c33; color: inherit; border-radius: 3px; padding: 0 2px; }
.ci { width: 14px; height: 14px; vertical-align: -2px; flex: none; }
img.rar { vertical-align: middle; width: auto; }

/* ---------- Kennzahlen (dunkle Balken wie Attribut-Zeilen) ---------- */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.kv div { background: #ffffff0c; border: 1px solid #ffffff12; border-radius: 10px; padding: 8px 12px; }
.kv b { display: block; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.kv .small { display: block; margin-top: 2px; }

/* ---------- Teams ---------- */
.team { border-top: 3px solid var(--elc, var(--lime)); }
.members { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.member { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #ffffff10; color: #fff; border-radius: 999px;
  padding: 3px 10px 3px 3px; cursor: pointer; font: 700 13px "Nunito Sans", sans-serif; }
.member:hover { background: #ffffff1c; }
.member.missing { opacity: .45; text-decoration: line-through; }
.order { counter-reset: o; list-style: none; padding: 0; margin: 0; }
.order li { counter-increment: o; padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.order li::before { content: counter(o); width: 18px; color: var(--lime); font-weight: 900; }

/* ---------- Runde Porträts mit Elementring (wie Seitenleiste im Spiel) ---------- */
.av { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%;
  overflow: hidden; vertical-align: middle; background: #2a2f55; color: #fff; font-size: 12px; font-weight: 900;
  box-shadow: 0 0 0 2px var(--elc); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

/* ---------- Tier ---------- */
.tier { display: inline-block; min-width: 28px; text-align: center; background: var(--tc); color: #fff; font-weight: 900; font-size: 11px;
  line-height: 1.6; border-radius: 6px; padding: 0 6px; vertical-align: middle; text-shadow: 0 1px 1px #0005; }
.big-tier { font-size: 17px; padding: 2px 12px; border-radius: 8px; }

/* ---------- Mein Kader: Hochkant-Karten wie im Spiel ---------- */
.group-head { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.pcard { position: relative; border-radius: 10px; overflow: hidden; background: #1c2146; box-shadow: 0 6px 18px #0007, 0 0 0 1px #ffffff1c;
  cursor: pointer; aspect-ratio: 0.6; display: flex; flex-direction: column; }
.pcard .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.pcard .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 900; color: #ffffff30; }
.pcard .elb { position: absolute; top: 7px; left: 7px; width: 30px; height: 30px; border-radius: 8px; transform: rotate(45deg);
  background: #0009; box-shadow: inset 0 0 0 1.5px var(--elc); display: grid; place-items: center; }
.pcard .elb .eli { transform: rotate(-45deg); --s: 18px; }
.pcard .tierb { position: absolute; top: 8px; right: 8px; }
.pcard .stars { position: absolute; left: 0; right: 0; bottom: 58px; text-align: center; font-size: 19px; letter-spacing: 1px;
  color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.pcard .stars .off { color: #ffffff55; }
.pcard .stars .t2 { color: #ffd65c; } .pcard .stars .t3 { color: #ff8ad8; }
.pcard .band { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; padding: 0 8px 6px;
  background: linear-gradient(180deg, transparent 0%, var(--rc) 38%); display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.pcard .band .rar { height: 30px; filter: drop-shadow(0 1px 2px #0006); margin-bottom: 1px; }
.pcard .band .nm { color: #fff; font-weight: 900; font-size: 14px; line-height: 1.1; text-align: right; text-shadow: 0 1px 2px #0008; padding-bottom: 3px; }
.pcard.off { filter: grayscale(.9); opacity: .55; }
.pcard.off .band { --rc: #555a6e !important; }
.pctl { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 6px; }
.pctl button { width: 34px; height: 30px; border: 0; border-radius: 9px; background: var(--cream); color: var(--row-ink);
  font: 900 18px/1 "Nunito Sans", sans-serif; cursor: pointer; box-shadow: inset 0 -2px 0 #0002; }
.pctl span { font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Anleitung für neue Besucher ---------- */
.onboard { border-color: #c8f04c55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; background: #ffffff08; border: 1px solid #ffffff12; border-radius: 14px; padding: 14px 12px 10px; text-align: center; }
.step .no { position: absolute; top: -10px; left: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #1b2405; font-weight: 900; box-shadow: 0 0 14px #a6d62f88; }
.step p { margin: 10px 0 0; font-size: 13px; color: #d9dcec; }
.step p b { color: #fff; font-size: 14px; }
.demo-pair { display: flex; align-items: center; justify-content: center; gap: 8px; height: 150px; }
.pcard.demo { width: 82px; cursor: default; }
.pcard.demo .stars { bottom: 40px; font-size: 11px; } .pcard.demo .band { height: 40px; padding: 0 4px 3px; }
.pcard.demo .band .nm { font-size: 10px; } .pcard.demo .elb { width: 20px; height: 20px; top: 5px; left: 5px; } .pcard.demo .elb .eli { --s: 12px; }
.demo-pair .arrow { color: var(--lime); font-size: 22px; font-weight: 900; }
.demo-ctl { height: 150px; display: grid; place-items: center; }
.demo-ctl .pctl { width: 150px; }
.onboard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.bar { width: 120px; height: 8px; border-radius: 99px; background: #ffffff1a; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
  .demo-pair, .demo-ctl { height: auto; padding: 4px 0; }
}

/* ---------- Empfehlungen ---------- */
.rec { border-color: #c8f04c55; }
.rec-team { background: #ffffff08; border: 1px solid #ffffff12; border-radius: 12px; padding: 8px 10px; }
.rec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rec table.list { border-spacing: 0 5px; }
.rec table.list td { padding: 6px 10px; }

/* ---------- Heute ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { background: #ffffff0c; border: 1px solid #ffffff12; border-radius: 10px; padding: 7px 2px; text-align: center; font-size: 12px; min-height: 54px; }
.day b { display: block; margin-bottom: 5px; }
.day.now { background: #6f8f1f55; border-color: #c8f04c88; color: var(--lime); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 1px; }

/* ---------- Detail-Fenster ---------- */
dialog { border: 1px solid #ffffff22; border-radius: 18px; background: #11163a; color: var(--text);
  width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; box-shadow: 0 20px 70px #000c; }
dialog::backdrop { background: rgba(4, 6, 18, .75); backdrop-filter: blur(3px); }
#detail-body { padding: 20px 22px; }
#detail-body h2 { font-size: 28px; font-weight: 900; }
.close { float: right; }
.portrait { float: right; width: 170px; max-width: 35%; margin: 0 0 10px 16px; border-radius: 12px; box-shadow: 0 0 0 1px #ffffff26, 0 8px 22px #0007; }
.skill { border-top: 1px solid #ffffff14; padding: 9px 0; }

/* ---------- Wiki & Guides ---------- */
.wiki-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.wiki-page h2 { font-size: 18px; color: var(--lime); margin: 20px 0 6px; }
.wiki-page h3 { font-size: 15px; margin: 12px 0 4px; }
.wiki-page p { margin: 4px 0; }
details summary { cursor: pointer; color: var(--lime); }
#shared-banner .card { border-color: var(--lime); }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding: 0 12px; gap: 6px; }
  nav#tabs { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid #ffffff1f;
    padding: 0 0 6px; margin: 0; gap: 2px; scrollbar-width: none; }
  nav#tabs button { white-space: nowrap; padding: 9px 13px; font-size: 14px; }
  nav#tabs button::before, nav#tabs button::after { display: none; }
  header { padding: 24px 14px 16px; min-height: 130px; }
  .hero-art { width: 80%; opacity: .55; }
  .hero-art img:nth-child(-n+3) { display: none; }
  h1 { font-size: 26px; }
  .card { padding: 14px; }
  th, td { padding: 6px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pcard .band { height: 44px; padding: 0 5px 4px; } .pcard .band .rar { height: 20px; }
  .pcard .stars { bottom: 44px; font-size: 13px; } .pcard .elb { width: 22px; height: 22px; } .pcard .elb .eli { --s: 13px; }
  .pctl button { width: 28px; height: 26px; font-size: 15px; } .pctl { font-size: 12px; }
  .pcard .band .nm { font-size: 11px; }
}
