/* =====================================================================
   Captain on Board – Gestaltung „Konsole bei Nacht“
   Bernstein = du kannst handeln · Türkis = Zustand · Rot = Gefahr
   Schriften liegen auf dem eigenen Server (keine externen Dienste).
   ===================================================================== */

@font-face { font-family: "Tektur"; src: url("../fonts/Tektur-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tektur"; src: url("../fonts/Tektur-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #05080F;
  --panel: #111A2B;
  --panel-2: #0C1220;
  --line: #223049;
  --line-hi: #33476B;
  --text: #E8ECF4;
  --text-2: #C9D2E3;
  --soft: #8E9AB3;
  --amber: #F2B544;
  --amber-hi: #FFD27A;
  --amber-lo: #C98A1E;
  --cyan: #7FE3EA;
  --cyan-lo: #2E8E99;
  --danger: #F07A6A;
  --ok: #A5EBD1;
  --violet: #C7B8FF;
  --display: "Tektur", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 12px;
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.55 var(--body);
  background: var(--bg) url("../graphics/bg-nebula.svg") center / cover fixed;
}
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 5vw, 34px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.lbl, .kicker {
  display: block; font: 500 11px/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--soft);
}
.kicker { color: var(--amber); margin-bottom: 8px; }
.todo { padding: 14px; border: 1px dashed var(--amber-lo); border-radius: 8px; color: var(--amber-hi); }

/* ---------------------------------------------------------------- Bausteine */
.panel, .card {
  background: linear-gradient(180deg, rgba(19, 28, 46, .94), rgba(12, 18, 32, .94));
  border: 1px solid var(--line); border-top-color: var(--line-hi); border-radius: var(--r);
}
.card { padding: 24px; }
.card.narrow { max-width: 480px; margin: 24px auto; }
.msg .btn { margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--amber-hi), #E0A033); color: #1A1405;
  font: 500 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 22px rgba(242, 181, 68, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: #1A1405; box-shadow: 0 0 30px rgba(242, 181, 68, .4), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn:active { transform: translateY(1px); }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--amber); border: 1px solid var(--amber-lo); box-shadow: none; }

.flash {
  max-width: 720px; margin: 12px auto; padding: 12px 16px; border-radius: 10px; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel);
}
.flash.ok { border-color: #275C4E; background: #0E241F; color: var(--ok); }
.flash.error { border-color: #6E3A36; background: #241212; color: #F8C4BA; }
.flash.inline { margin: 0 0 16px; }
.flash.info { border-color: #2D5A66; background: #0E1E26; color: #BFE9EE; }
.mail-wait .story p { margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(127, 227, 234, .35); border-radius: 12px; background: rgba(14, 30, 38, .7); color: #BFE9EE; }
.mail-wait .story b { color: #FFD27A; }
.btn.is-waiting, .btn[disabled][data-wait] { opacity: .5; pointer-events: none; cursor: default; font-variant-numeric: tabular-nums; }
ul.flash { padding-left: 32px; }

/* ---------------------------------------------------------------- Formulare */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label, .create label:not(.choice):not(.sw):not(.seg label) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--soft); font-size: 13px; }
input[type=text], input:not([type]), input[type=email], input[type=password], select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; font: 16px var(--body); color: var(--text);
  background: #070B14; border: 1px solid var(--line-hi);
}
input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 181, 68, .2); }
input::placeholder { color: #5E6B86; }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 4px; top: 4px; width: 44px; height: 40px; border: 0; border-radius: 8px;
  background: transparent; color: var(--soft); cursor: pointer; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text); }
.form .check, .create .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }

/* ---------------------------------------------------------------- Rahmen außerhalb des Spiels */
.outbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1160px; margin: 0 auto; padding: 16px 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 17px/1 var(--display); letter-spacing: .04em; }
.brand i { font-style: normal; color: var(--amber); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: conic-gradient(from 210deg, var(--amber), #8A5A12, var(--amber));
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
}
.langswitch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.outmain { max-width: 1160px; margin: 0 auto; padding: 0 16px 40px; }
.outfoot { display: flex; justify-content: center; gap: 20px; padding: 24px 16px 32px; font-size: 13px; }
.outfoot a { color: var(--soft); }

/* Startseite */
.hero { position: relative; min-height: 460px; margin: 16px 0 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #03060C; }
.hero-scene { position: absolute; inset: 0; }
.hero-planet { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-ship { position: absolute; width: min(520px, 70%); right: 8%; top: 18%; transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); animation: drift 9s ease-in-out infinite; }
@keyframes drift { 50% { transform: rotate(-5deg) translateY(-8px); } }
.hero-copy {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px;
  min-height: 460px; max-width: 560px; padding: 32px;
  background: linear-gradient(90deg, rgba(3, 6, 12, .92), rgba(3, 6, 12, .55) 70%, rgba(3, 6, 12, 0));
}
.hero-title { font-size: clamp(38px, 8vw, 64px); font-weight: 500; margin: 0; text-shadow: 0 4px 30px #000; }
.hero-title i { font-style: normal; color: var(--amber); font-size: .6em; vertical-align: .3em; letter-spacing: .1em; }
.hero-lead { font-size: 18px; color: var(--text-2); max-width: 440px; margin: 6px 0 18px; }
.start-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.login-card h2 { margin-bottom: 16px; }
.login-card .links { margin: 14px 0 0; color: var(--soft); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: rgba(12, 18, 32, .7); border: 1px solid var(--line); }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--text-2); font-size: 15px; }
.f-ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--amber); background: #1A150A; border: 1px solid #4A3A1A; }
.quote-strip { margin: 28px 0 0; padding: 24px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-strip p { font: italic 19px/1.5 var(--body); color: var(--text-2); margin: 0 0 8px; }
.quote-strip span { font-size: 13px; color: var(--soft); }
@media (min-width: 900px) {
  .start-grid { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .hero-copy { padding: 48px; }
}
@media (max-width: 640px) {
  .hero, .hero-copy { min-height: 520px; }
  .hero-ship { width: 92%; right: -6%; top: 8%; }
  .hero-copy { padding: 24px 20px; background: linear-gradient(0deg, rgba(3, 6, 12, .96) 40%, rgba(3, 6, 12, 0)); }
}

/* ---------------------------------------------------------------- Captain erschaffen */
.create { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.create-preview { display: flex; flex-direction: column; gap: 12px; }
.cp-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-hi); aspect-ratio: 1; background: #04060C; }
.cp-frame .portrait { width: 100%; height: 100%; display: block; }
.cp-name { position: absolute; left: 18px; bottom: 16px; right: 18px; }
.cp-name b { display: block; font: 500 26px/1.1 var(--display); text-shadow: 0 2px 16px #000; overflow-wrap: anywhere; }
.create-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.create-form > h1 { margin: 0; }
.create-form > .soft { margin: -8px 0 0; }
.step { border: 0; margin: 0; padding: 20px; border-radius: var(--r); background: rgba(12, 18, 32, .85); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font: 500 16px/1.2 var(--display); letter-spacing: .04em; }
.step legend + * { clear: both; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #1A1405; background: var(--amber); }
.step .small { margin: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1 1 0; min-width: 90px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label > span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-hi); background: #070B14; color: var(--text-2); font-weight: 600; font-size: 14px; }
.seg input:checked + span { border-color: var(--amber); color: var(--amber-hi); background: #1A150A; box-shadow: 0 0 0 1px rgba(242, 181, 68, .3); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.choices { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.ch-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line-hi); background: #070B14; transition: border-color .15s, background .15s; }
.ch-body b { font: 500 16px/1.2 var(--display); }
.ch-head { display: flex; align-items: center; gap: 10px; }
.ch-text { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.mods i { font: 600 12px/1 var(--body); font-style: normal; padding: 5px 8px; border-radius: 6px; }
.mods .up { color: var(--ok); background: #0E241F; }
.mods .down { color: #F8C4BA; background: #241212; }
.choice input:checked + .ch-body { border-color: var(--amber); background: #15110A; box-shadow: 0 0 0 1px rgba(242, 181, 68, .3), 0 8px 24px rgba(0, 0, 0, .4); }
.choice.faction input:checked + .ch-body { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 9%, #070B14); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 40%, transparent); }
.choice input:focus-visible + .ch-body { outline: 2px solid var(--amber); outline-offset: 2px; }
.look-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.look-lbl { width: 90px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { position: relative; cursor: pointer; }
.sw input { position: absolute; opacity: 0; inset: 0; }
.sw > span { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 2px solid #070B14; box-shadow: 0 0 0 1px var(--line-hi); }
.sw input:checked + span { box-shadow: 0 0 0 2px var(--amber), 0 0 14px rgba(242, 181, 68, .4); }
.sw input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.look-row .seg { flex: 1; }
.seg.faces { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg.faces label { min-width: 0; }
.seg.faces label > span { padding: 0 6px; font-size: 13px; text-align: center; }
/* Sentari: Fell, Abzeichen, Ohren statt Haut, Haar, Frisur */
.create .lk-s { display: none; }
.create[data-race="sentari"] .lk-s { display: inline; }
.create[data-race="sentari"] .lk-h { display: none; }
.create[data-race="sentari"] .sw > span { background: var(--cs); }
.ship-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border-radius: 10px; background: #070B14; border: 1px solid var(--line); }
.ship-pick img { width: 200px; height: auto; }
.ship-pick p { flex: 1 1 220px; }
.create .btn.big { align-self: flex-start; }
@media (min-width: 900px) {
  .create { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
  .create-preview { position: sticky; top: 16px; }
}
@media (max-width: 899px) {
  .create-preview { flex-direction: row; align-items: stretch; }
  .cp-frame { width: 46%; flex: none; }
  .create-preview .attrs { flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
  .cp-name b { font-size: 18px; }
  .cp-name { left: 10px; bottom: 8px; }
}

/* Eigenschaften */
.attrs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; }
.attrs div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 8px; background: var(--panel-2); border: 1px solid #1C2840; }
.attrs dt { order: 2; font-size: 10.5px; letter-spacing: .08em; color: var(--soft); }
.attrs dd { order: 1; margin: 0; font: 500 18px/1 var(--display); }
.attrs dd.up { color: var(--ok); }

/* ---------------------------------------------------------------- Porträt: Varianten ein-/ausblenden */
.portrait .s0, .portrait .s1, .portrait .s2,
.portrait .g-m, .portrait .g-f, .portrait .g-d,
.portrait .r-teyl, .portrait .r-korrath, .portrait .r-sentari { display: none; }
.portrait[data-style="0"] .s0, .portrait[data-style="1"] .s1, .portrait[data-style="2"] .s2,
.portrait[data-g="m"] .g-m, .portrait[data-g="f"] .g-f, .portrait[data-g="d"] .g-d,
.portrait[data-race="teyl"] .r-teyl, .portrait[data-race="korrath"] .r-korrath, .portrait[data-race="sentari"] .r-sentari { display: inline; }
.portrait[data-race="sentari"] .hum { display: none; }
/* Gesichtsvarianten */
.portrait .fx1, .portrait .fx2, .portrait .fx3, .portrait .fx4, .portrait .fx5 { display: none; }
.portrait[data-face="1"] .fx1, .portrait[data-face="2"] .fx2, .portrait[data-face="3"] .fx3, .portrait[data-face="4"] .fx4, .portrait[data-face="5"] .fx5 { display: inline; }
.portrait[data-g="f"] .fx1.g-m, .portrait[data-g="d"] .fx1.g-m { display: none; }
.portrait .hd, .portrait .ey, .portrait .mo, .portrait .br, .portrait .ns { transform-origin: 120px 104px; }
.portrait .mo { transform-origin: 121px 145px; }
.portrait[data-face="1"] .hd { transform: scale(1.07, .98); }
.portrait[data-face="1"] .br { stroke-width: 5; transform: translateY(1.5px); }
.portrait[data-face="1"] .mo { transform: scaleX(1.1); }
.portrait[data-face="2"] .hd { transform: scale(.92, 1.04); }
.portrait[data-face="2"] .br { stroke-width: 2; transform: translateY(-2px); }
.portrait[data-face="2"] .ns { transform: translateY(2px) scaleY(1.06); }
.portrait[data-face="2"] .mo { transform: scaleX(.86); }
.portrait[data-face="3"] .hd { transform: scale(1.04, .95); }
.portrait[data-face="3"] .ey { transform: scale(1.08); }
.portrait[data-face="3"] .mo { transform: scaleX(.9) translateY(-2px); }
.portrait[data-face="4"] .hd { transform: scale(.97, 1.01); }
.portrait[data-face="4"] .br { transform: rotate(3deg); }
.portrait[data-face="4"] .ey { transform: scaleY(.85); }
.portrait[data-face="5"] .br { stroke-width: 4.6; }
.portrait[data-face="5"] .ey { transform: scaleY(.8); }
.portrait[data-g="f"] .r-sentari { transform: scale(.93, 1); transform-origin: 120px 120px; }
.portrait.mini { border-radius: 50%; display: block; }
img.portrait.painted { object-fit: cover; background: #0A0F1A; }
/* Captain-Galerie bei der Erschaffung */
.cap-set { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.cap-set[hidden] { display: none; }
.cap-opt { position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.cap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cap-opt img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cap-opt span { font: 500 11px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--text-2); }
.cap-opt:hover img { transform: translateY(-2px); }
.cap-opt input:checked + img { border-color: #FFC860; box-shadow: 0 0 0 3px rgba(255, 200, 96, .25), 0 8px 20px rgba(0, 0, 0, .5); }
.cap-opt input:checked ~ span { color: #FFC860; }
.cap-opt input:focus-visible + img { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 479px) { .cap-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Spielrahmen */
/* kein backdrop-filter: er würde die feste Menüleiste (Handy) an die Kopfzeile binden */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(5, 8, 15, .96); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1160px; margin: 0 auto; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand-txt { display: none; }
.mainnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11, 17, 29, .96), #05080F); border-top: 1px solid var(--line);
}
.mainnav a, .mainnav .soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 60px; min-height: 48px;
  color: var(--soft); text-decoration: none; font: 500 10.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
}
.mainnav .active { color: var(--amber); }
.mainnav .soon { opacity: .45; cursor: default; }
.purse { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cur { display: inline-flex; align-items: center; gap: 4px; font: 500 15px/1 var(--display); white-space: nowrap; }
.o-sign { color: var(--amber); }
.cur.cry { color: var(--violet); font-size: 14px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; padding: 2px; background: linear-gradient(140deg, var(--amber-hi), #8A5A12); display: grid; place-items: center; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary .portrait { width: 40px; height: 40px; }
.um-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; display: flex; flex-direction: column;
  background: #0D1422; border: 1px solid var(--line-hi); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
}
.um-who { display: flex; flex-direction: column; padding: 8px 10px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
.um-who small { color: var(--soft); }
.um-panel a, .um-out { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.um-panel a:hover, .um-out:hover { background: #16203A; color: var(--text); }
.um-panel form { margin: 0; }
.um-out { width: 100%; border: 0; background: transparent; cursor: pointer; }
.main { max-width: 1160px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 32px); }
@media (min-width: 900px) {
  .brand-txt { display: inline; }
  .mainnav { position: static; padding: 0; background: none; border: 0; gap: 4px; margin-left: 16px; }
  .mainnav a, .mainnav .soon { flex-direction: row; gap: 8px; min-width: 0; padding: 0 12px; font-size: 12px; border-radius: 8px; }
  .mainnav a:hover { color: var(--text); background: #111A2B; }
  .main { padding-bottom: 40px; }
}

/* ---------------------------------------------------------------- Brücke */
.bridge { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.ap-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.aphex { display: flex; gap: 6px; margin-top: 8px; }
.aphex .on { fill: var(--amber); }
.aphex .off { fill: #0B111D; stroke: #3A4766; stroke-width: 1; }
.aphex .gl { fill: #fff; opacity: .25; }
.ap-num { text-align: right; }
.ap-num b { font: 500 24px/1 var(--display); }
.ap-num small { color: var(--soft); font-size: 15px; }
.ap-next { display: block; margin-top: 4px; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.shipcard { position: relative; min-height: 250px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #03060C; }
.sc-planet { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.sc-ship { position: absolute; width: min(400px, 78%); left: 6%; top: 26%; transform: rotate(-6deg); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); animation: drift 9s ease-in-out infinite; }
.sc-head { position: relative; padding: 16px; }
.sc-head h1 { font-size: 26px; margin: 2px 0 2px; text-shadow: 0 2px 14px #000; }
.sc-head p { margin: 0; font-size: 13px; color: #AEB8CC; }
.sc-stats { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; background: linear-gradient(180deg, rgba(3, 6, 12, 0), rgba(3, 6, 12, .92) 55%); }
.sc-stats div { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; font-size: 12px; color: #AEB8CC; }
.sc-stats b { font-weight: 400; }
.sc-stats em { grid-column: 1 / -1; font-size: 12px; color: var(--text-2); }
.bar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: #1A2438; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-lo), var(--cyan)); }
.bar.amber > i { background: linear-gradient(90deg, #B07418, var(--amber-hi)); }
.captain-card { display: flex; gap: 16px; padding: 14px; align-items: center; }
.cc-portrait { flex: none; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-hi); }
.cc-portrait .portrait { display: block; width: 100%; height: 100%; }
.cc-info { min-width: 0; flex: 1; }
.cc-info h2 { margin: 2px 0 2px; overflow-wrap: anywhere; }
.cc-info p { font-size: 13px; margin: 0 0 10px; }
.cc-info .attrs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-info .attrs dd { font-size: 15px; }
.fac { color: var(--fc); }
.empty { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--soft); }
.empty p { margin: 0; font-size: 14px; }
.log { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: rgba(12, 18, 32, .9); border: 1px dashed #2E4A66; }
.log p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.log b { color: var(--cyan); }
.log-who { flex: none; }
.job { display: flex; align-items: center; gap: 12px; padding: 12px; }
.job > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.job b { font-size: 15px; }
.job span { font-size: 13px; color: var(--soft); }
.job-bar { width: 3px; align-self: stretch; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--cyan-lo)); }
.tag { font: 500 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line-hi); color: var(--soft); white-space: nowrap; }
.rep .panel { padding: 8px 14px; }
.rep-row { display: grid; grid-template-columns: 22px 1fr 90px 36px; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; }
.rep-row b { text-align: right; font: 500 14px var(--display); color: var(--fc); }
.rep-row b.neg { color: var(--danger); }
.repbar { position: relative; height: 4px; border-radius: 2px; background: #1A2438; }
.repbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-hi); }
.repbar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.repbar .pos { left: 50%; background: var(--fc); }
.repbar .neg { right: 50%; background: var(--danger); }
.col-main, .col-side { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; }
@media (min-width: 900px) {
  .bridge { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .col-main, .col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .shipcard { min-height: 320px; }
  .captain-card { flex-direction: column; align-items: stretch; }
  .captain-card .cc-portrait { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .shipcard { min-height: 290px; }
  .sc-ship { width: 74%; left: 4%; top: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Handy: Vorschau beim Erschaffen bleibt oben sichtbar */
@media (max-width: 899px) {
  .create-preview { position: sticky; top: 0; z-index: 5; padding: 8px 0; background: linear-gradient(180deg, var(--bg) 85%, rgba(5, 8, 15, 0)); }
  .cp-frame { width: 38%; }
}

/* =====================================================================
   v0.2 – Stützpunkt, Missionen, Ablauf, Kampf, Crew
   ===================================================================== */
.page-head { margin: 4px 0 18px; }
.page-head h1 { margin: 4px 0 4px; }
.page-head p { margin: 0; max-width: 640px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn.danger { background: linear-gradient(180deg, #FF9A86, #D9583F); box-shadow: 0 0 22px rgba(240, 122, 106, .35); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--soft); cursor: pointer; font-size: 14px; }
.linkbtn:hover { color: var(--text); }
.tag.ok { color: var(--ok); border-color: #275C4E; display: inline-flex; align-items: center; gap: 4px; }
.warn { color: var(--amber-hi); margin: 6px 0 0; }
.okc { color: var(--ok); } .badc { color: #F8A898; }
.up { color: var(--ok); margin: 6px 0 0; }
.center { text-align: center; }
.bar.red > i { background: linear-gradient(90deg, #A33A2C, #FF8A72); }
.bar.green > i { background: linear-gradient(90deg, #3A8F76, var(--ok)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font: 500 10.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-hi); color: var(--text-2); background: rgba(5, 8, 15, .6); }
.chip.pers { color: #D6CBFF; border-color: #4A3C78; }
.chip.al-good { color: var(--ok); border-color: #275C4E; }
.chip.al-evil { color: #F8A898; border-color: #6E3A36; }
.chip.al-neutral { color: var(--text-2); }
.chip.al-chaotic_good { color: #BFF0A0; border-color: #4A6A2A; }
.chip.al-chaotic_evil { color: #F0B0E0; border-color: #6A2A5A; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 4px; margin: 0; font-size: 14px; }
.skills div { display: flex; justify-content: space-between; }
.skills dt { color: var(--text-2); }
.skills dd { margin: 0; font: 500 14px var(--display); }
.skills .best dd, .skills .best dt { color: var(--amber); }

/* Stützpunkt */
.dialog { display: flex; gap: 16px; padding: 16px; align-items: flex-start; margin-bottom: 18px; }
.npc { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-hi); }
.npc .portrait { display: block; }
.npc-name { display: block; font: 500 14px var(--display); color: var(--amber); margin-bottom: 4px; letter-spacing: .04em; }
.dlg-body p { margin: 0; color: var(--text-2); line-height: 1.55; }
.cand-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .cand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cand { overflow: hidden; display: flex; flex-direction: column; }
.cand-portrait { position: relative; aspect-ratio: 1; }
.cand-portrait .portrait { width: 100%; height: 100%; display: block; }
.cand-portrait:has(img.painted)::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(5, 8, 15, 0), rgba(5, 8, 15, .88)); pointer-events: none; }
.cand-name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.cand-name span { text-shadow: 0 1px 6px #000; }
.cand-name b { display: block; font: 500 21px/1.1 var(--display); text-shadow: 0 2px 12px #000; }
.cand-name span { font-size: 13px; color: var(--text-2); }
.cand-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.cand-quote { margin: 0; font-style: italic; color: var(--text-2); font-size: 14px; }
.cand-body p.small { margin: 0; }
.cand-body form { margin-top: auto; }
.station-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .station-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.job-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.jc-head { display: flex; gap: 12px; color: var(--cyan); }
.jc-head div { display: flex; flex-direction: column; color: var(--text); }
.jc-head span { font-size: 13px; color: var(--soft); }
.jc-run { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); font-size: 14px; }
.jc-run form { margin: 0; }
.jc-form { display: flex; gap: 8px; flex-wrap: wrap; }
.jc-form select { flex: 1 1 180px; min-height: 40px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--text); }
.repair { padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.rp-row { display: flex; justify-content: space-between; font-size: 14px; }
.repair form { margin: 0; }
.repair .btn .cur { font-size: 13px; }
.repair .btn .o-sign { color: #1A1405; }
.repair .btn.ghost .o-sign { color: var(--amber); }
.modules .btn .cur { font-size: 13px; }
.storage { padding: 6px 14px; }
.storage p { margin: 8px 0; }
.st-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 40px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid #16203A; }
.st-item:last-child { border: 0; }
.st-item b { font: 500 15px var(--display); color: var(--text); }

/* Missionen */
.active-run { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 16px; text-decoration: none; color: var(--text); border-color: #6E5422; }
.active-run > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mission-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .mission-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .starmap { position: sticky; top: 80px; } }
.starmap { position: relative; aspect-ratio: 1 / .9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #03060C url("../graphics/bg-nebula.svg") center / cover; }
.sm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sm-lines line { stroke: #2A3550; stroke-width: .4; stroke-dasharray: 1 1.4; }
.sm-lines line.open { stroke: var(--amber); stroke-dasharray: none; stroke-width: .35; }
.sm-lines line.done { stroke: var(--cyan-lo); stroke-dasharray: none; }
.sm-loc { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sm-loc a { display: block; border-radius: 50%; }
.sm-loc.open a { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 10px rgba(242, 181, 68, .8)); } }
.sm-loc.done { opacity: .75; }
.sm-name { font: 500 10.5px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); text-align: center; text-shadow: 0 1px 6px #000; max-width: 110px; }
.sm-loc.open .sm-name { color: var(--amber-hi); }
.sm-unknown { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #3A4766; color: #4A5675; font: 500 16px var(--display); }
.sm-gate { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; border: 1px dashed #3A4766; color: var(--soft); font: 500 10.5px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.sm-gate.open { border-color: var(--amber-lo); color: var(--amber); }
.mcard { display: flex; gap: 14px; padding: 14px; }
.mcard.locked { opacity: .55; }
.mcard.done { opacity: .8; }
.mc-ico { flex: none; }
.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-body h2 { font-size: 18px; margin: 0; }
.mc-body p { margin: 0; font-size: 14px; color: var(--text-2); }
.mc-body .tag { align-self: flex-start; margin-top: 6px; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mc-foot form { margin: 0; }
.mc-cost { font-size: 13px; color: var(--soft); }
.codex { padding: 8px 14px; }
.cx-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.cx-row div { display: flex; flex-direction: column; }

/* Missionsablauf */
.run { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.run-head { display: flex; align-items: center; gap: 8px; }
.run-head h1 { margin: 2px 0 0; font-size: clamp(22px, 5vw, 28px); }
.back { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); flex: none; }
.track { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.track li { flex: none; }
.track li.now .hex { filter: drop-shadow(0 0 6px rgba(242, 181, 68, .5)); }
.scene-card { position: relative; min-height: 230px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #03060C; display: flex; align-items: flex-end; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 6, 12, 0) 20%, rgba(3, 6, 12, .92) 85%); }
.scene-ship { position: absolute; width: min(380px, 70%); left: 10%; top: 14%; transform: rotate(-6deg); animation: drift 6s ease-in-out infinite; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .6)); z-index: 1; }
.scene-enemy { position: absolute; width: min(300px, 56%); right: 6%; top: 10%; transform: rotate(8deg); z-index: 1; animation: drift 7s ease-in-out infinite; }
.scene-copy { position: relative; z-index: 2; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.scene-copy h2 { margin: 0; font-size: 22px; }
.scene-copy p { margin: 0; color: var(--text-2); line-height: 1.55; max-width: 620px; }
.scene-card.travel { min-height: 280px; }
/* Erzähltext: Absätze, Schild, Funkspruch */
.story { display: flex; flex-direction: column; gap: 10px; max-width: 620px; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.story p { margin: 0; color: var(--text-2); line-height: 1.6; }
.story b { color: var(--amber-hi); font-weight: 600; }
.story .sign { align-self: flex-start; padding: 6px 12px; border: 1px solid #6E5422; border-radius: 3px; background: rgba(26, 21, 10, .85); color: var(--amber-hi); font: 500 13px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; text-shadow: none; box-shadow: inset 0 0 0 3px rgba(5, 8, 15, .6); }
.story .comm { padding: 10px 14px 12px; border-left: 3px solid var(--cyan-lo); border-radius: 0 10px 10px 0; background: rgba(8, 22, 30, .82); text-shadow: none; }
.story .comm p { color: var(--text); }
.story .comm p + p { margin-top: 6px; }
.comm-from { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 500 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.comm-from i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.scene-card:has(.comm)::after { background: linear-gradient(180deg, rgba(3, 6, 12, .15) 0%, rgba(3, 6, 12, .9) 55%); }
@media (prefers-reduced-motion: reduce) { .comm-from i { animation: none; } }
/* Funksprüche: kursiv, mit Porträt des Absenders */
.story .comm p { font-style: italic; }
.story .comm.has-face { display: flex; align-items: flex-start; gap: 12px; }
.comm-face { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid rgba(127, 227, 234, .35); box-shadow: 0 0 0 2px rgba(5, 8, 15, .6), 0 0 12px rgba(127, 227, 234, .18); }
.comm-body { flex: 1; min-width: 0; }
@media (max-width: 639px) { .comm-face { width: 44px; height: 44px; } }
.arrive { font-size: 18px; }
.arrive .countdown { font: 500 26px var(--display); color: var(--amber-hi); margin-left: 6px; }
.tag.kind { align-self: flex-start; color: var(--amber); border-color: var(--amber-lo); background: rgba(5, 8, 15, .7); }
.result { padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.res-head { display: flex; gap: 12px; align-items: flex-start; }
.res-head p { margin: 4px 0 0; color: var(--text-2); }
.res-head p.small { margin-top: 4px; }
.rewards { display: flex; flex-wrap: wrap; gap: 6px; }
.rw { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 6px; font: 600 13px/1 var(--body); background: #0E241F; color: var(--ok); border: 1px solid #275C4E; }
.rw.bad { background: #241212; color: #F8C4BA; border-color: #6E3A36; }
.rw.xp { background: #1A150A; color: var(--amber-hi); border-color: #6E5422; }
.rw .cur { font: 600 13px var(--body); }
.reactions { display: flex; flex-direction: column; gap: 8px; }
.reaction { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--panel-2); border: 1px solid #1C2840; }
.reaction p { margin: 0; font-size: 14px; color: var(--text-2); }
.reaction .portrait { border-radius: 50%; }
.reaction.suggest { border-color: var(--line-hi); }
.reaction .sug-name { color: var(--amber-hi); font-weight: 600; }
@media (max-width: 520px) { .reaction.suggest { grid-template-columns: 40px 1fr; } .reaction.suggest .btn { grid-column: 1 / -1; } }
.name-form { padding-top: 6px; border-top: 1px solid var(--line); }
.name-form .kicker { margin: 0; }
.name-form p { margin: 0; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions form { margin: 0; }
.actions > form > .btn.big, .actions .btn.big { width: 100%; }
.probe-form { display: flex; flex-direction: column; gap: 10px; }
.probe-task { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.who { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who-opt { position: relative; cursor: pointer; }
.who-opt input { position: absolute; opacity: 0; inset: 0; }
.who-body { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line-hi); background: linear-gradient(180deg, #131C2E, #0D1422); }
.who-body .portrait { border-radius: 50%; }
.who-txt { display: flex; flex-direction: column; min-width: 0; }
.who-txt b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-txt small { font-size: 12px; color: var(--soft); }
.who-pct { font: 500 20px var(--display); color: var(--amber); }
.who-pct.hi { color: var(--ok); } .who-pct.lo { color: #F8A898; }
.who-opt input:checked + .who-body { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(242, 181, 68, .3), 0 8px 20px rgba(0, 0, 0, .4); }
.who-opt input:focus-visible + .who-body { outline: 2px solid var(--amber); outline-offset: 2px; }
.help-sel { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.choice-form { display: flex; flex-direction: column; gap: 8px; }
.btn.opt { justify-content: flex-start; text-transform: none; letter-spacing: .02em; font: 500 15px var(--body); min-height: 54px; color: var(--text); border-color: var(--line-hi); text-align: left; }
.btn.opt:hover { border-color: var(--amber); color: var(--amber-hi); }
.retreat { margin: 0; align-self: center; }
.loot { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.runrow { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; color: var(--text); }
.runrow > svg { color: var(--cyan); flex: none; }
.runrow > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.runrow b { font-size: 15px; }
.runrow span { font-size: 13px; color: var(--soft); }
.runrow.ready { border-color: #6E5422; }
a.job { text-decoration: none; color: var(--text); }
.log.crew { border-style: solid; border-color: #2A2348; }
.log.crew b { color: var(--violet); }
.log .portrait { border-radius: 50%; }

/* Kampf */
.combat { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cb-top { display: flex; align-items: center; justify-content: space-between; }
.cb-top form { margin: 0; }
.enemy-panel { padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, #1E1214, #120A0C); border: 1px solid #4A2C2C; border-top-color: #6E3A36; display: flex; flex-direction: column; gap: 8px; }
.ep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ep-head b { display: block; font: 500 16px var(--display); }
.ep-head span { font-size: 12px; color: #C9A9A2; }
.ep-hp { font: 500 15px var(--display); white-space: nowrap; color: var(--text) !important; }
.intent { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #F3C0B6; }
.arena { position: relative; height: 190px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #03060C; }
.ar-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ar-enemy { position: absolute; width: 46%; right: 4%; top: 8%; transform: rotate(8deg); animation: drift 7s ease-in-out infinite; transition: opacity .6s, transform .6s; }
.ar-ship { position: absolute; width: 56%; left: 2%; bottom: 4%; transform: rotate(-8deg); animation: drift 6s ease-in-out infinite; transition: opacity .6s; }
.ar-enemy.gone, .ar-ship.gone { opacity: 0; transform: rotate(30deg) scale(.6); }
/* Gemalte Schiffe (WebP) sind höher als die SVGs: etwas kleiner setzen, sanfter Triebwerksschein */
img.ar-ship[src*=".webp"] { width: 40%; bottom: 6%; }
img.ar-enemy[src*=".webp"] { width: 36%; }
img.sc-ship[src*=".webp"], img.scene-ship[src*=".webp"] { width: min(340px, 62%); }
img.ar-ship[src*=".webp"], img.sc-ship[src*=".webp"], img.scene-ship[src*=".webp"] { filter: drop-shadow(-6px 0 14px rgba(127, 227, 234, .35)) drop-shadow(0 12px 20px rgba(0, 0, 0, .6)); }
.arena.hit-enemy .ar-enemy { animation: shake .4s; }
.arena.hit-me .ar-ship { animation: shake .4s; }
@keyframes shake { 20% { translate: -6px 2px; } 40% { translate: 5px -2px; } 60% { translate: -3px 1px; } 80% { translate: 2px 0; } }
.cb-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--soft); min-height: 64px; }
.cb-log li.new { color: var(--text); animation: rise .3s ease-out; }
.fx { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; font: 600 11.5px/1.3 var(--body); background: #16203A; color: var(--text-2); white-space: nowrap; }
.fx-dmg { background: #3A1A14; color: #FFB0A2; } .fx-block { background: #0F2A3A; color: var(--cyan); } .fx-heal { background: #0E241F; color: var(--ok); }
.fx-boost { background: #1A150A; color: var(--amber-hi); } .fx-weaken, .fx-vuln { background: #2A2140; color: var(--violet); } .fx-self { background: #241212; color: #F8C4BA; }
.me-panel { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 14px; border-radius: 12px; background: rgba(12, 18, 32, .9); border: 1px solid var(--line); }
.mp-hull { display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: 12px; color: #AEB8CC; }
.mp-hull b { font: 500 13px var(--display); color: var(--text); }
.mp-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.mp-energy { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.orb { width: 18px; height: 18px; border-radius: 50%; background: #0B111D; border: 1px solid #3A4766; display: inline-block; }
.orb.on { background: radial-gradient(circle at 35% 30%, #FFF1CC, var(--amber) 60%, #9A6414); border: 0; box-shadow: 0 0 10px rgba(242, 181, 68, .5); }
.deckinfo { margin-left: auto; }
.hand { display: flex; justify-content: center; padding: 18px 0 6px; margin: 0; min-height: 200px; }
.gcard {
  position: relative; flex: none; width: 112px; height: 172px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #141C2E, #0A0F1A); border: 1px solid #3A4870; border-top-color: #5A6A92; color: var(--text); font-family: var(--body);
  display: flex; flex-direction: column; box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
  transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px)); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hand .gcard + .gcard { margin-left: -30px; }
.gcard:hover, .gcard:focus-visible { transform: rotate(0) translateY(-18px) scale(1.04); z-index: 5; border-color: var(--amber); box-shadow: 0 0 0 2px rgba(242, 181, 68, .25), 0 0 24px rgba(242, 181, 68, .25), 0 18px 30px rgba(0, 0, 0, .7); }
.gcard.crewcard { border-color: #4A3C78; border-top-color: #6A5AA8; }
.gcard.cant { filter: saturate(.3) brightness(.7); cursor: not-allowed; }
.gcard.cant:hover { transform: rotate(var(--rot, 0deg)); border-color: #3A4870; box-shadow: 0 12px 26px rgba(0, 0, 0, .55); }
.card-art { display: block; flex: none; width: 100%; height: 62px; }
.gcard .cost { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFE6A8, #D8952A 70%); color: #1A1405; font: 600 13px var(--display); box-shadow: 0 0 10px rgba(242, 181, 68, .4); }
.gcard .src { position: absolute; right: 6px; top: 8px; font: 500 9px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 4px #000; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbody { padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; }
.cbody b { font: 500 13.5px/1.15 var(--display); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.cbody span { font-size: 11px; line-height: 1.35; color: #AEB8CC; }
.endturn { margin: 0; }
.cb-over { text-align: center; padding: 24px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 18, 32, .92); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise .4s ease-out; }
.cb-over .kicker { font-size: 18px; letter-spacing: .2em; }
.cb-over.lost .kicker { color: var(--danger); }
.cb-over p { color: var(--text-2); max-width: 420px; }
/* Gespräch */
.enemy-panel.talk { background: linear-gradient(180deg, #10202A, #08121A); border-color: #24485A; border-top-color: #2E8E99; }
.enemy-panel.talk .ep-head span { color: #9CC9D2; }
.enemy-panel.talk .intent { color: #B8EEF3; }
.enemy-panel.talk .bar.red > i { background: linear-gradient(90deg, #2E8E99, var(--cyan)); }
.patience { display: flex; align-items: center; gap: 5px; }
.patience .lbl { margin-right: 4px; }
.pip { width: 14px; height: 14px; transform: rotate(45deg) scale(.8); border: 1px solid #3A5A66; background: #08121A; display: inline-block; }
.pip.on { background: linear-gradient(135deg, #E9FFFF, var(--cyan)); border: 0; box-shadow: 0 0 8px rgba(127, 227, 234, .5); }
.quote { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); font-style: italic; }
.arena.comm { display: flex; align-items: center; justify-content: space-between; padding: 0 6%; }
.comm-win { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .6s, filter .6s; }
.comm-win .portrait { width: 110px; height: 110px; border-radius: 10px; border: 1px solid #2E8E99; box-shadow: 0 0 0 3px rgba(5, 8, 15, .7), 0 0 18px rgba(127, 227, 234, .25); }
.comm-win.them .portrait { border-color: #6E3A36; box-shadow: 0 0 0 3px rgba(5, 8, 15, .7), 0 0 18px rgba(240, 122, 106, .25); }
.comm-win span { font: 500 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-shadow: 0 1px 4px #000; }
.comm-win.gone { opacity: .25; filter: grayscale(1); }
.comm-line { position: absolute; left: 30%; right: 30%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px); opacity: .6; animation: commflow 1s linear infinite; z-index: 1; }
@keyframes commflow { to { background-position: 12px 0; } }
.arena.comm.hit-enemy .comm-win.them, .arena.comm.hit-me .comm-win.me { animation: shake .4s; }
.gcard.talkcard { border-color: #24485A; border-top-color: #2E8E99; }
.cb-log.talk .fx-dmg { background: #0C2228; color: var(--cyan); border-color: #24485A; }
.fight-or-talk { display: flex; flex-direction: column; gap: 8px; }
.fight-or-talk p { margin: 0; text-align: center; }
@media (min-width: 640px) { .fight-or-talk { display: grid; grid-template-columns: 1fr 1fr; } .fight-or-talk p { grid-column: 1 / -1; } .comm-win .portrait { width: 140px; height: 140px; } }
@media (prefers-reduced-motion: reduce) { .comm-line { animation: none; } }
.combat.busy { pointer-events: none; }
.combat.busy .hand, .combat.busy .endturn { opacity: .7; }
@media (min-width: 640px) { .hand .gcard + .gcard { margin-left: -10px; } .arena { height: 230px; } }

/* Crew */
.crewcard-big { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .crewcard-big { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.cr-portrait { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-hi); aspect-ratio: 1; }
.cr-portrait .portrait { width: 100%; height: 100%; display: block; }
.cr-name { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.cr-name h2 { font-size: 28px; margin: 0 0 4px; text-shadow: 0 2px 14px #000; }
.cr-name p { margin: 0; color: var(--text-2); font-size: 14px; }
.cr-name .chips { margin-top: 8px; }
.cr-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cr-respect, .cr-ap { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.cr-respect .row { display: flex; justify-content: space-between; align-items: baseline; }
.cr-respect b { font: 500 18px var(--display); }
.cr-respect p { margin: 0; }
.mini-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.gcard.mini { cursor: default; height: 160px; }
.gcard.mini:hover { transform: none; border-color: #3A4870; box-shadow: 0 12px 26px rgba(0, 0, 0, .55); }

/* Kampf auf dem Handy: volle Fläche für die Karten, Menüleiste ausgeblendet */
@media (max-width: 639px) {
  body.pg-combat .mainnav { display: none; }
  body.pg-combat .main { padding-bottom: 24px; }
  .arena { height: 150px; }
  .gcard { width: 96px; height: 162px; }
  .hand .gcard + .gcard { margin-left: -32px; }
  .gcard .cbody b { font-size: 12.5px; }
  .gcard .cbody span { font-size: 10.5px; }
}
.mc-ico .sm-unknown { width: 44px; height: 44px; }

/* Auswählbare Karten: Hand-Cursor und Hervorhebung beim Überfahren.
   Die unsichtbaren Radio-Felder liegen über der Karte, darum brauchen sie den Cursor selbst. */
.who-opt input, .choice input, .seg input, .sw input { cursor: pointer; }
.who-opt:hover .who-body { border-color: var(--amber-lo); background: linear-gradient(180deg, #18233A, #101828); }
.who-opt:hover input:checked + .who-body { border-color: var(--amber); }
.choice:hover .ch-body { border-color: var(--amber-lo); }
.seg label:hover > span { border-color: var(--amber-lo); color: var(--text); }
.sw:hover > span { box-shadow: 0 0 0 2px var(--amber-lo); }
.help-sel select, .jc-form select { cursor: pointer; }

/* Unterstützung anfordern */
.lbl-note { text-transform: none; letter-spacing: 0; font: 400 12px var(--body); color: var(--soft); margin-left: 4px; }
.who.support .who-pct.plus { color: var(--ok); font-size: 17px; }
.sup-none { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #3A4766; color: var(--soft); font: 500 18px var(--display); }
.who-opt.off, .who-opt.same { opacity: .45; }
.who-opt.off input, .who-opt.same input { cursor: not-allowed; }
.total { margin: 2px 0 0; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.total b { font: 500 24px var(--display); color: var(--amber-hi); }

/* Admin */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.adm-stats .panel { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.adm-stats b { font: 500 24px var(--display); }
.adm-stats span { font-size: 12px; color: var(--soft); }
.adm-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .adm-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.adm-target { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.adm-target h3 { margin: 4px 0 0; font-size: 15px; letter-spacing: .06em; color: var(--text-2); }
.adm-who { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-who h2 { margin: 0; font-size: 20px; }
.adm-who p { margin: 2px 0 0; }
.adm-money { display: flex; gap: 12px; align-items: center; }
.adm-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tools form { margin: 0; }
.adm-danger { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid #6E3A36; background: rgba(36, 18, 18, .55); margin: 0; }
.adm-danger p { margin: 4px 0 0; }
.adm-danger .btn { align-self: flex-start; }
.adm-book { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-row input { flex: 1 1 140px; min-height: 40px; }
.adm-row select { flex: 0 1 160px; min-height: 40px; }
input[type=number] { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font: 16px var(--body); color: var(--text); background: #070B14; border: 1px solid var(--line-hi); }
.adm-settings { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.adm-set { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.adm-settings .btn { align-self: flex-start; }
.adm-search { display: flex; gap: 8px; margin: 0; }
.adm-search input { flex: 1; min-height: 40px; }
.adm-list { padding: 4px; }
.adm-player { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.adm-player:hover { background: #16203A; color: var(--text); }
.adm-player.on { background: #1A150A; outline: 1px solid var(--amber-lo); }
.ap-name { display: flex; flex-direction: column; min-width: 0; }
.ap-name small { color: var(--soft); font-size: 12px; }
.ap-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { cursor: pointer; }

/* Kartenentwicklung: Übung, ★, Kartenwahl, Captain-Karten, Werft */
.gcard .pips { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 4px; }
.gcard .pips i { width: 6px; height: 6px; border-radius: 50%; background: #1A2438; border: 1px solid #3A4766; }
.gcard .pips i.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 6px rgba(242, 181, 68, .6); }
.gcard.starred { border-color: #8A6A22; border-top-color: var(--amber); box-shadow: 0 0 0 1px rgba(242, 181, 68, .25), 0 12px 26px rgba(0, 0, 0, .55); }
.gcard .cost.up { background: radial-gradient(circle at 35% 30%, #FFC4B8, #C8503C 70%); color: #2A0A06; }
.gcard .cbody { padding-bottom: 14px; }
.cap-cards { padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-head h2 { margin: 2px 0 0; font-size: 20px; }
.cc-head p { margin: 2px 0 0; }
.offer { padding: 14px; border-color: var(--amber-lo); background: linear-gradient(180deg, #1A150A, #0E0B06); display: flex; flex-direction: column; gap: 8px; }
.offer p { margin: 0; }
.offer-areas { display: grid; gap: 14px; }
.offer-area { display: flex; flex-direction: column; gap: 8px; }
.offer-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.offer-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; }
.offer-opt > span { text-align: center; min-height: 2.6em; }
.offer-area select { margin-left: 6px; }
@media (min-width: 900px) { .offer-areas { grid-template-columns: 1fr 1fr; } }
.modules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.modules li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.modules li > div { display: flex; flex-direction: column; gap: 2px; }
.foresee { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--text-2); }

/* Sternkarte */
.gal-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .gal-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.gal-map { padding: 0; overflow: hidden; }
.galaxy-map { display: block; width: 100%; height: auto; }
.galaxy-map a polygon { cursor: pointer; transition: fill-opacity .15s; }
.galaxy-map a:hover polygon, .galaxy-map a:focus polygon { stroke: #fff; stroke-opacity: .7; }
.gm-q { font: 600 10px var(--body); fill: #5A6A9A; text-anchor: middle; }
.gm-n { font: 600 10px var(--body); fill: #C9D2E3; text-anchor: middle; letter-spacing: .04em; paint-order: stroke; stroke: #03050A; stroke-width: 3px; }
.gal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.gal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; opacity: .8; }
.gal-legend .lg-neutral { background: #2A3654; }
.gal-legend .lg-war { background: repeating-linear-gradient(45deg, #E04848 0 3px, #3A0E10 3px 6px); }
.gal-legend .lg-mil { background: repeating-linear-gradient(-45deg, #F2B544 0 3px, #1A150A 3px 6px); }
.gal-legend .lg-fuel { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; background: #F2B544; }
.gal-energy, .gal-info { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.gal-energy p, .gal-info p { margin: 0; }
.gal-info h2 { margin: 0; font-size: 20px; }
.gal-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 4px 0; }
.gal-facts div { display: flex; flex-direction: column; }
.gal-facts dt { font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.gal-facts dd { margin: 0; font: 500 15px var(--display); }
.chip.own-ussa { border-color: #E8735E; color: #FFB4A6; }
.chip.own-aya { border-color: #7BD88F; color: #B8F0C4; }
.chip.own-uwu { border-color: #7FA6F5; color: #C0D4FF; }
.chip.own-shadow { border-color: #C58BE0; color: #E6CCF2; }
.chip.own-war { border-color: #E04848; color: #FFB0A8; }
.chip.own-military { border-color: var(--amber); color: var(--amber-hi); }
.chip.warn { border-color: var(--amber-lo); color: var(--amber-hi); }
.voyage { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; }
.voyage > div { flex: 1; display: flex; flex-direction: column; }
.countdown.big { font: 500 24px var(--display); color: var(--amber-hi); }
a.sm-gate { text-decoration: none; }
.sc-where { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sc-where a { color: var(--cyan); }

/* Sektoransicht */
.sector-head { display: flex; align-items: center; gap: 8px; }
.sector-head h1 { margin: 2px 0 0; }
.sector-scene { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #02040A; margin-bottom: 14px; }
.sector-art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 680; }
.sa-lbl { font: 600 11px var(--body); fill: #C9D2E3; text-anchor: middle; letter-spacing: .06em; paint-order: stroke; stroke: #03050B; stroke-width: 3px; }
.sa-lbl.st { fill: var(--amber-hi); }
.sa-lbl.ex { fill: #9AA6C0; }
.ss-chips { position: absolute; left: 12px; bottom: 12px; right: 12px; }
.ss-chips .chip { background: rgba(5, 8, 15, .75); }
@media (max-width: 600px) { .ss-chips { position: static; padding: 10px; } .sa-lbl { font-size: 15px; } .sector-art { aspect-ratio: 4 / 3; } }
.sector-home { padding: 12px 14px; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sector-home p { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns form { margin: 0; }
.sector-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .sector-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.place { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.place > div { flex: 1; display: flex; flex-direction: column; }
.place form { margin: 0; }
.place.done { opacity: .75; }
.pl-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #C8B8A4, #3A322C 75%); box-shadow: inset -4px -3px 6px rgba(0, 0, 0, .6); }
.pl-lava { background: radial-gradient(circle at 35% 35%, #FFB070, #6A1C0E 75%); }
.pl-desert { background: radial-gradient(circle at 35% 35%, #F2C890, #6A421E 75%); }
.pl-ocean { background: radial-gradient(circle at 35% 35%, #9AD8FF, #0E2E5A 75%); }
.pl-jungle { background: radial-gradient(circle at 35% 35%, #B4E89A, #1A4A1E 75%); }
.pl-terran { background: radial-gradient(circle at 35% 35%, #A8D8F0, #1E4A3A 75%); }
.pl-ice { background: radial-gradient(circle at 35% 35%, #FFFFFF, #6A86A0 75%); }
.pl-gas { background: repeating-linear-gradient(170deg, #F4D8A8 0 4px, #B4784A 4px 7px); }
.pl-belt { border-radius: 4px; background: radial-gradient(circle at 30% 40%, #B8A890 2px, transparent 3px), radial-gradient(circle at 70% 60%, #8A7A68 3px, transparent 4px), radial-gradient(circle at 50% 25%, #6A5E50 2px, transparent 3px); box-shadow: none; }
.pl-station, .pl-training { border-radius: 6px; background: linear-gradient(180deg, #C9D2E3, #4A5470); }
.pl-wreck, .pl-derelict { border-radius: 4px; background: linear-gradient(135deg, #4A5068, #1A1E2A); }
.pl-ruin, .pl-signal { background: radial-gradient(circle, #C7B8FF, #2A2052 70%); }
.pl-comet { background: radial-gradient(circle at 70% 30%, #fff 3px, #7FE3EA 6px, transparent 14px); box-shadow: none; }

.sec-energy { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sec-energy .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-energy p { margin: 0; }
.btn:not(.ghost) .o-sign { color: #1A1405; }

/* ---- Besondere Karten: Rahmen nach Seltenheit, Fächer ---- */
.specials { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(90, 106, 146, .3); }
.specials > .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-slots { display: inline-flex; align-items: center; gap: 5px; }
.sp-slots i { width: 12px; height: 16px; border-radius: 3px; border: 1px solid #5A6A92; background: rgba(10, 15, 26, .6); }
.sp-slots i.on { background: linear-gradient(180deg, #FFE6A8, #D8952A); border-color: #F2B544; box-shadow: 0 0 8px rgba(242, 181, 68, .45); }
.sp-slots b { margin-left: 4px; font: 600 13px var(--display); }
.sp-card { display: flex; flex-direction: column; gap: 6px; width: 112px; }
.sp-card > .small { line-height: 1.3; }
.sp-card.equipped .gcard { outline: 2px solid rgba(242, 181, 68, .6); outline-offset: 3px; }
.sp-actions { display: flex; flex-direction: column; gap: 5px; }
.sp-actions .btn { width: 100%; white-space: normal; line-height: 1.2; }
@media (max-width: 639px) { .sp-card { width: 96px; } }
.sp-actions .btn[value=trade] { font-size: 10.5px; letter-spacing: .04em; }

/* =====================================================================
   Karten v2: Rahmen, Kostenstein, Art-Symbol, Fuß, Seltenheit, Glanz
   ===================================================================== */
.gcard {
  --acc: #FFB45A; --acc-rgb: 255, 180, 90; --rim: #3A4870; --rim-hi: #6A7AA2; --gem: transparent;
  width: 112px; height: 176px; padding: 4px; gap: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rim); border-top-color: var(--rim-hi);
  background:
    radial-gradient(120% 55% at 50% 100%, rgba(var(--acc-rgb), .10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #141C2F, #090D18 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 26px rgba(0, 0, 0, .55);
  perspective: 600px;
}
.gcard.k-attack { --acc: #FF9A62; --acc-rgb: 255, 154, 98; }
.gcard.k-skill  { --acc: #7FE3EA; --acc-rgb: 127, 227, 234; }
.gcard.k-talk   { --acc: #B9A6FF; --acc-rgb: 185, 166, 255; }
.gcard.talkcard { border-color: var(--rim); border-top-color: var(--rim-hi); }
.gcard.crewcard { --rim: #4A3C78; --rim-hi: #7A68C0; }
.c-art { position: relative; display: block; flex: none; height: 64px; border-radius: 8px 8px 3px 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.c-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(9, 13, 24, .85)); pointer-events: none; }
.c-art .card-art { width: 100%; height: 100%; display: block; }
.gcard .cost { left: 5px; top: 5px; width: 26px; height: 28px; border-radius: 0; background: none; box-shadow: none; display: grid; place-items: center; z-index: 2; filter: drop-shadow(0 0 6px rgba(242, 181, 68, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.gcard .cost::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #FFF0C4 0%, #F2B544 45%, #9A6414 100%); }
.gcard .cost::after { content: ""; position: absolute; inset: 2.5px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: radial-gradient(circle at 40% 30%, #FFE3A0, #D8952A 70%); }
.gcard .cost b { position: relative; z-index: 1; font: 700 14px var(--display); color: #2A1A04; text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.gcard .cost.up { background: none; }
.gcard .cost.up::after { background: radial-gradient(circle at 40% 30%, #FFC4B8, #C8503C 70%); }
.c-type { position: absolute; right: 6px; top: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--acc); background: rgba(5, 8, 15, .72); border: 1px solid rgba(var(--acc-rgb), .45); box-shadow: 0 0 8px rgba(var(--acc-rgb), .25); }
.gcard .cbody { padding: 6px 4px 2px; gap: 4px; flex: 1 1 auto; min-height: 0; }
.gcard .cbody .c-name { position: relative; display: block; padding-bottom: 4px; font: 500 13px/1.15 var(--display); color: #F4F6FB; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; letter-spacing: .01em; }
.c-name::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), transparent); }
.c-star { font-style: normal; color: var(--amber); text-shadow: 0 0 6px rgba(242, 181, 68, .7); }
.gcard .cbody .c-fx { font-size: 11px; line-height: 1.38; color: #AEB8CC; }
.c-fx em { font-style: normal; font-weight: 700; color: #fff; }
.c-fx .sep { font-style: normal; color: rgba(var(--acc-rgb), .7); }
.gcard .cbody .c-flavor { display: block; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; line-height: 1.45; font-style: italic; color: #C9D2E3; }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 3px 1px; min-height: 12px; flex: none; }
.c-foot .src { position: static; max-width: 64px; font: 500 8.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #7E8AA6; text-shadow: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .c-foot .pips { position: static; display: flex; gap: 3px; }
.gcard .c-foot .pips i { width: 5px; height: 5px; }
.gcard .cbody { padding-bottom: 2px; }
.gcard.mini .cbody { padding-bottom: 2px; }
.gem { width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: var(--gem); border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 0 6px var(--gem); }
/* Seltenheit: Rahmen und Stein */
.gcard.rar-common    { --rim: #6A7488; --rim-hi: #D4DAE6; --gem: #C9D1DE; }
.gcard.rar-rare      { --rim: #2F5FA8; --rim-hi: #8EC0FF; --gem: #5FA0FF; box-shadow: inset 0 0 0 1px rgba(142, 192, 255, .12), 0 0 14px rgba(95, 160, 255, .2), 0 12px 26px rgba(0, 0, 0, .55); }
.gcard.rar-legendary { --rim: #9A6E1C; --rim-hi: #FFE2A0; --gem: #FFC860; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .18), 0 0 20px rgba(242, 181, 68, .3), 0 12px 26px rgba(0, 0, 0, .55); }
.gcard.rar-personal  { --rim: #8A3E86; --rim-hi: #F0A6E6; --gem: #E67AD8; box-shadow: inset 0 0 0 1px rgba(240, 166, 230, .12), 0 0 14px rgba(230, 122, 216, .2), 0 12px 26px rgba(0, 0, 0, .55); }
.gcard.rar-universal { --rim: #237A64; --rim-hi: #8FF0D0; --gem: #4FE0B4; box-shadow: inset 0 0 0 1px rgba(143, 240, 208, .12), 0 0 14px rgba(79, 224, 180, .2), 0 12px 26px rgba(0, 0, 0, .55); }
.gcard.starred { --rim: #8A6A22; --rim-hi: var(--amber); }
.gcard.rar-legendary::after { display: none; }
/* Glanz, folgt dem Finger/Zeiger (--mx, --my setzt cob.js) */
.c-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55) 45%, transparent 60%) calc(var(--mx, 30%) * 2 - 50%) 0 / 200% 100% no-repeat; transition: opacity .3s; }
.rar-common .c-shine { opacity: .12; }
.rar-legendary .c-shine { opacity: .55; background:
  radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .5), transparent 40%),
  linear-gradient(115deg, rgba(255, 90, 90, .0) 15%, rgba(255, 200, 90, .45) 30%, rgba(120, 255, 180, .35) 42%, rgba(110, 180, 255, .4) 54%, rgba(220, 120, 255, .4) 66%, transparent 80%) calc(var(--mx, 30%) * 2 - 50%) 0 / 220% 100% no-repeat;
  animation: holo 6s ease-in-out infinite alternate; }
.rar-personal .c-shine { background: linear-gradient(115deg, transparent 25%, rgba(255, 170, 230, .55) 45%, transparent 62%) calc(var(--mx, 30%) * 2 - 50%) 0 / 200% 100% no-repeat; }
.rar-universal .c-shine { background: linear-gradient(115deg, transparent 25%, rgba(140, 255, 220, .5) 45%, transparent 62%) calc(var(--mx, 30%) * 2 - 50%) 0 / 200% 100% no-repeat; }
@keyframes holo { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(60deg); } }
.gcard.tilting { transition: transform .08s linear; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0); }
.gcard.tilting .c-shine { opacity: .75; }
/* Klein (Sammlung) und groß (Detail, Enthüllung, Questbelohnung) */
.gcard.mini { height: auto; min-height: 168px; cursor: zoom-in; }
.gcard.mini:hover { transform: translateY(-3px); border-color: var(--rim-hi); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .2), 0 16px 30px rgba(0, 0, 0, .65); }
.gcard.big { width: min(280px, 78vw); height: auto; min-height: 420px; padding: 7px; border-radius: 18px; cursor: default; }
.gcard.big .c-art { height: auto; aspect-ratio: 120 / 66; border-radius: 12px 12px 5px 5px; }
.gcard.big .cost { width: 44px; height: 48px; left: 10px; top: 10px; }
.gcard.big .cost b { font-size: 24px; }
.gcard.big .c-type { width: 32px; height: 32px; right: 12px; top: 12px; }
.gcard.big .c-type svg { width: 17px; height: 17px; }
.gcard.big .cbody { padding: 12px 10px 6px; gap: 8px; }
.gcard.big .cbody .c-name { font-size: 22px; padding-bottom: 8px; }
.gcard.big .c-name::after { width: 48px; height: 2px; }
.gcard.big .cbody .c-fx { font-size: 15px; }
.gcard.big .c-foot { padding: 6px 8px 4px; }
.gcard.big .c-foot .src { font-size: 11px; max-width: 160px; }
.gcard.big .gem { width: 12px; height: 12px; }
.gcard.big .c-foot .pips i { width: 8px; height: 8px; }
.gcard.big:hover { transform: none; }
/* Rückseite */
.gcard.card-back { padding: 0; background: #0A1020 url("../graphics/card-back.svg") center / cover; border-color: #5A4418; border-top-color: #C98A1E; cursor: default; }
.gcard.card-back.mini { min-height: 168px; opacity: .5; filter: saturate(.6); }
.gcard.card-back.mini:hover { transform: none; }
.slot-empty { display: grid; place-items: center; min-height: 168px; border-style: dashed; background: rgba(9, 13, 24, .5); color: var(--soft); font-size: 12px; text-align: center; cursor: default; }
@media (max-width: 639px) {
  .gcard { width: 98px; height: 166px; padding: 3px; }
  .c-art { height: 54px; }
  .gcard .cost { width: 23px; height: 25px; }
  .gcard .cost b { font-size: 12.5px; }
  .gcard .cbody .c-name { font-size: 12px; }
  .gcard .cbody .c-fx { font-size: 10.5px; }
  .gcard.mini { min-height: 156px; }
  .sp-card { width: 98px; }
}
@media (prefers-reduced-motion: reduce) { .rar-legendary .c-shine { animation: none; } .gcard.tilting { transform: none; } }

/* Detailansicht */
.card-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px 16px; background: rgba(3, 5, 10, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadein .2s ease-out; }
.card-modal .cm-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; overflow: auto; }
.card-modal .gcard { animation: cm-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.card-modal .cm-meta { font: 500 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); text-align: center; }
.card-modal .cm-close { min-width: 160px; }
@keyframes cm-pop { from { transform: scale(.7) rotateY(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Enthüllung neuer Karten */
.reveal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px 16px; background: radial-gradient(circle at 50% 45%, rgba(20, 28, 50, .9), rgba(2, 3, 8, .96) 70%); animation: fadein .3s ease-out; overflow: hidden; }
.reveal-item { display: none; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; }
.reveal-item.on { display: flex; }
.rv-kicker { font: 600 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); opacity: 0; animation: rv-text .5s 1.5s ease-out forwards; }
.rv-who { font-size: 14px; color: var(--text-2); opacity: 0; animation: rv-text .5s 1.7s ease-out forwards; }
.rv-stage { position: relative; width: min(280px, 78vw); perspective: 1200px; }
.rv-card { position: relative; transform-style: preserve-3d; animation: rv-flip 1.4s cubic-bezier(.3, .9, .3, 1) .35s both; }
.rv-card > .gcard { backface-visibility: hidden; -webkit-backface-visibility: hidden; margin: 0 auto; }
.rv-card > .card-back { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; transform: rotateY(180deg); border-radius: 18px; }
.rv-rays { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none; opacity: 0; animation: rv-rays 1.2s 1.2s ease-out forwards, spin 40s linear 1.2s infinite;
  background: repeating-conic-gradient(from 0deg, rgba(var(--ray), .22) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); }
.reveal-item[data-rar="common"]    { --ray: 210, 220, 235; }
.reveal-item[data-rar="rare"]      { --ray: 95, 160, 255; }
.reveal-item[data-rar="legendary"] { --ray: 255, 200, 96; }
.reveal-item[data-rar="personal"]  { --ray: 230, 122, 216; }
.reveal-item[data-rar="universal"] { --ray: 79, 224, 180; }
.rv-burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 0 rgba(var(--ray), .9); animation: rv-burst 1s 1.15s ease-out both; }
.rv-spark { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--ray)); box-shadow: 0 0 8px rgb(var(--ray)); opacity: 0; pointer-events: none;
  animation: rv-spark 1.6s calc(1.15s + var(--d, 0s)) ease-out forwards; }
.rv-flavor { max-width: 320px; margin: 0; font-style: italic; color: var(--text-2); opacity: 0; animation: rv-text .6s 1.9s ease-out forwards; }
.reveal .btn { opacity: 0; animation: rv-text .5s 2.1s ease-out forwards; }
@keyframes rv-flip { 0% { transform: translateY(40vh) rotateY(180deg) scale(.6); } 45% { transform: translateY(0) rotateY(180deg) scale(1); } 60% { transform: rotateY(180deg) scale(1.04); } 100% { transform: rotateY(360deg) scale(1); } }
@keyframes rv-rays { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes rv-burst { from { box-shadow: 0 0 0 0 rgba(var(--ray), .9); } to { box-shadow: 0 0 0 220px rgba(var(--ray), 0); } }
@keyframes rv-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }
@keyframes rv-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-rays, .rv-burst, .rv-spark { animation-duration: .01s; animation-delay: 0s; } .rv-kicker, .rv-who, .rv-flavor, .reveal .btn { animation-delay: 0s; } }

/* Kampf: Karten werden ausgeteilt, gespielte Karte fliegt, Treffer als Zahl */
.hand.deal .gcard { animation: deal .45s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes deal { from { opacity: 0; transform: translate(80px, 90px) rotate(18deg) scale(.7); } to { opacity: 1; transform: rotate(var(--rot, 0deg)) translateY(var(--lift, 0px)); } }
.fly-card { position: fixed; z-index: 80; pointer-events: none; margin: 0; transition: transform .45s cubic-bezier(.5, 0, .3, 1), opacity .45s ease-in, filter .45s; }
.fly-card.go { opacity: 0; filter: brightness(2.2) blur(1px); }
.dmg-pop { position: absolute; z-index: 5; font: 700 28px var(--display); color: #FFE2D0; text-shadow: 0 0 12px rgba(255, 110, 70, .9), 0 2px 4px #000; pointer-events: none; animation: dmgpop 1.1s ease-out forwards; }
.dmg-pop.me { color: #FFD0C8; text-shadow: 0 0 12px rgba(240, 80, 70, .9), 0 2px 4px #000; }
.dmg-pop.talk { color: #E9FFFF; text-shadow: 0 0 12px rgba(127, 227, 234, .9), 0 2px 4px #000; }
@keyframes dmgpop { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }

/* Crew-Fach und Quests */
.crew-slot { margin-top: 6px; padding: 14px; border-radius: 12px; border: 1px solid #5A3A62; background: linear-gradient(180deg, rgba(60, 24, 66, .35), rgba(12, 10, 24, .6)); display: flex; flex-direction: column; gap: 8px; }
.crew-slot.locked { border-color: var(--line); background: rgba(12, 18, 32, .6); }
.crew-slot > .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.crew-slot p { margin: 0; }
.bar.trust > i { background: linear-gradient(90deg, #8A3E86, #F0A6E6); }
.sp-card.resting .gcard { filter: grayscale(.8) brightness(.7); }
.quest-banner { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); border: 1px solid #8A3E86; background: linear-gradient(90deg, rgba(138, 62, 134, .35), rgba(138, 62, 134, .05)); animation: questpulse 2.4s ease-in-out infinite; }
.quest-banner b { font: 500 16px var(--display); }
@keyframes questpulse { 50% { box-shadow: 0 0 0 3px rgba(230, 122, 216, .18), 0 0 18px rgba(230, 122, 216, .25); } }
.quest-job .qj-who .portrait { width: 40px; height: 40px; border-radius: 50%; }
.quest-job { border-color: #6A3A66; }
.quest-job .job-bar { background: linear-gradient(180deg, #F0A6E6, #8A3E86); }
.quest-job.ready { animation: questpulse 2.4s ease-in-out infinite; }
.quest { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.quest-head { display: flex; align-items: center; gap: 16px; }
.quest-head h1 { margin: 4px 0 2px; font-size: 26px; }
.quest-head p { margin: 0; }
.qh-portrait .portrait { width: 96px; height: 96px; border-radius: 14px; border: 1px solid #8A3E86; box-shadow: 0 0 0 3px rgba(5, 8, 15, .7), 0 0 22px rgba(230, 122, 216, .25); }
.quest-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.quest-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quest-timer { font: 500 16px var(--display); margin: 0; }
.quest-choices { display: flex; flex-direction: column; gap: 10px; }
.quest-choices .choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line-hi); background: linear-gradient(180deg, #16203A, #0E1526); transition: border-color .15s, transform .15s, background .15s; }
.quest-choices .choice:hover, .quest-choices .choice:focus-visible { border-color: var(--amber); transform: translateX(3px); background: linear-gradient(180deg, #1C2640, #121A2E); }
.quest-choices .choice .ico { flex: none; color: var(--amber); }
.quest-picked { margin: 0; font: 500 15px var(--display); color: var(--amber); }
.quest-trust { margin: 0; font-size: 14px; }
.quest-trust.pos b { color: var(--ok); }
.quest-trust.neg b { color: var(--danger); }
.quest-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; text-align: center; }
@media (min-width: 640px) { .qh-portrait .portrait { width: 120px; height: 120px; } .quest-head h1 { font-size: 32px; } }

/* Kampf und Gespräch: Bild mit Lebensanzeigen oben, bleibt beim Planen sichtbar */
.combat .arena { position: sticky; top: 61px; z-index: 6; box-shadow: 0 -12px 0 var(--bg), 0 10px 24px rgba(0, 0, 0, .55); }
.ar-hud { position: absolute; z-index: 3; width: min(46%, 260px); display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 10px;
  background: rgba(5, 8, 15, .74); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ar-hud .hud-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ar-hud .hud-row b, .ar-hud .hud-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-hud .hud-row > b:first-child { font: 500 12px var(--display); color: #F3D2CC; }
.ar-hud .ep-hp, .ar-hud.me .hud-row b { font: 600 14px var(--display); color: #fff; flex: none; }
.ar-hud.me .hud-row span { font: 500 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #AEB8CC; }
.ar-hud .bar { height: 6px; }
.ar-hud .fx { align-self: flex-start; font-size: 10.5px; padding: 1px 5px; }
.ar-hud.them { top: 8px; right: 8px; border-color: rgba(240, 122, 106, .35); }
.ar-hud.me { bottom: 8px; left: 8px; border-color: rgba(127, 227, 234, .3); }
.arena.comm .ar-hud.them { right: auto; left: 8px; border-color: rgba(127, 227, 234, .35); }
.arena.comm .ar-hud.them .hud-row > b:first-child { color: #CFF4F7; }
.arena.comm .ar-hud.them .bar.red > i { background: linear-gradient(90deg, #2E8E99, var(--cyan)); }
.arena.comm .ar-hud.me { left: auto; right: 8px; }
.arena.comm { align-items: stretch; padding: 10px 5%; }
.arena.comm .comm-win.them { align-self: flex-end; }
.arena.comm .comm-win.me { align-self: flex-start; }
.ar-enemy { top: 22%; }
.me-panel { grid-template-columns: 1fr; }
.mp-chips { justify-content: flex-start; }
.mp-chips:empty { display: none; }
@media (max-width: 639px) {
  .combat .arena { height: 168px; }
  .arena.comm .comm-win .portrait { width: 84px; height: 84px; }
  .arena.comm .comm-win span { display: none; }
  .ar-hud { padding: 5px 7px; }
  .ar-hud .ep-hp, .ar-hud.me .hud-row b { font-size: 13px; }
}
@media (min-width: 640px) { .combat .arena { top: 72px; } }
@media (max-width: 639px) { .ar-hud.them { width: 60%; } .ar-hud.me { width: 50%; } }

/* Tutorial-Sektor: neue Sektorgrafik als Hintergrund, Orte als leuchtende Markierungen */
.starmap.tut { background: #03060C; }
.starmap.tut .tut-art { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.starmap.tut .sm-lines { z-index: 1; }
.starmap.tut .sm-lines line { stroke: rgba(201, 214, 240, .25); }
.starmap.tut .sm-lines line.open { stroke: var(--amber); stroke-width: .3; }
.starmap.tut .sm-loc { z-index: 2; }
.sm-hot { display: block; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(201, 214, 240, .35); background: radial-gradient(circle, transparent 55%, rgba(201, 214, 240, .08)); transition: border-color .2s, box-shadow .2s; }
.sm-hot.big { width: 92px; height: 92px; border-color: rgba(242, 181, 68, .5); }
.sm-loc.open .sm-hot { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 181, 68, .12), 0 0 22px rgba(242, 181, 68, .35); }
.sm-loc.done .sm-hot { border-color: rgba(127, 227, 234, .55); }
.sm-hot:hover, .sm-hot:focus-visible { border-color: var(--amber-hi); box-shadow: 0 0 0 4px rgba(242, 181, 68, .18), 0 0 26px rgba(242, 181, 68, .45); }
.starmap.tut .sm-loc.done { opacity: 1; }
.starmap.tut .sm-name { background: rgba(5, 8, 15, .65); padding: 2px 6px; border-radius: 4px; }
.starmap.tut .sm-unknown { background: rgba(5, 8, 15, .45); color: #8A96B4; border-color: #5A6A8E; }
@media (max-width: 639px) { .sm-hot { width: 48px; height: 48px; } .sm-hot.big { width: 68px; height: 68px; } .starmap.tut .sm-name { font-size: 9.5px; } }

/* Scan-Ergebnis direkt unter dem Sektorbild */
.scan-result { scroll-margin-top: 200px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(127, 227, 234, .35);
  background: linear-gradient(180deg, rgba(14, 42, 48, .85), rgba(8, 18, 26, .9)); animation: rise .35s ease-out; }
.scan-result p { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.scan-result p .ico { flex: none; margin-top: 2px; color: var(--cyan); }
.scan-result p.error { color: #FFB0A2; }
.scan-result p.error .ico { color: var(--danger); }
@media (min-width: 900px) { .starmap.tut { position: relative; top: 0; } }

/* =====================================================================
   Auftragsbrett, Aufträge im Sektor, Hauptgeschichte
   ===================================================================== */
.board-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .board-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.contract { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--k, var(--amber)); }
.contract.k-delivery { --k: #F2B544; } .contract.k-salvage { --k: #9AA6C0; } .contract.k-rescue { --k: #7FF0C2; }
.contract.k-bounty { --k: #FF8A6A; } .contract.k-mediate { --k: #B9A6FF; }
.contract header { display: flex; gap: 12px; align-items: flex-start; }
.contract header h2 { margin: 2px 0; font-size: 18px; }
.con-ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--k, var(--amber)); background: rgba(5, 8, 15, .6); border: 1px solid rgba(255, 255, 255, .08); }
.contract .story-text p, .contract .story p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); font-style: italic; }
.con-meta { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--soft); }
.contract footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.contract footer form { margin: 0; }
.contract.taken { border-left-color: #3A4766; }
.contract.taken.tracked { border-left-color: var(--cyan); box-shadow: 0 0 0 1px rgba(127, 227, 234, .18), 0 0 18px rgba(127, 227, 234, .12); }
.con-abandon .linkbtn { color: var(--soft); font-size: 12px; }
.board-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); border-color: rgba(242, 181, 68, .35); }
.board-link > div { flex: 1; display: flex; flex-direction: column; }
.board-link .ico { color: var(--amber); }
.sector-tasks { margin: 14px 0; }
.task-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-color: rgba(127, 227, 234, .4); background: linear-gradient(180deg, rgba(14, 42, 48, .7), rgba(8, 14, 24, .9)); }
.task-card h2 { margin: 0; font-size: 20px; }
.task-card.story { border-color: rgba(255, 200, 96, .5); background: linear-gradient(180deg, rgba(58, 42, 14, .6), rgba(10, 10, 14, .92)); }
.task-card.mini { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; }
.task-card.mini b { display: block; }
.task-card form { margin: 0; }
.scan-result p.story { color: #FFE6A8; }
.scan-result p.story .ico { color: #FFC860; }
.sm-gate.board { top: auto; bottom: 10px; border-color: rgba(127, 227, 234, .45); color: var(--cyan); text-decoration: none; }
.story-job { border-color: rgba(255, 200, 96, .4); }
.story-job .job-bar { background: linear-gradient(180deg, #FFE6A8, #C98A1E); }
.gal-goals { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.goal { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); background: rgba(5, 8, 15, .55); border: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.goal i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #7FE3EA; box-shadow: 0 0 8px rgba(127, 227, 234, .6); }
.goal.g-story i { background: #FFC860; box-shadow: 0 0 8px rgba(255, 200, 96, .6); }
.goal small { color: var(--soft); font-size: 11.5px; }
.scene-speaker { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); z-index: 1; }
.scene-speaker .portrait { width: 120px; height: 120px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
@media (max-width: 639px) { .scene-speaker .portrait { width: 84px; height: 84px; } }

/* Hauptgeschichte */
.story-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.story-head h1 { margin: 4px 0 0; font-size: clamp(26px, 6vw, 38px); }
.story-head .kicker { color: #FFC860; }
.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.journey li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 6px 0; position: relative; }
.journey li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -6px; width: 2px; background: rgba(255, 255, 255, .08); }
.journey li:last-child::before { display: none; }
.journey li.done::before { background: linear-gradient(180deg, #C98A1E, rgba(201, 138, 30, .2)); }
.j-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--display); color: var(--soft); border: 1.5px solid #3A4766; background: #0A0F1A; }
.journey li.done .j-dot { color: #1A1405; background: linear-gradient(160deg, #FFE6A8, #C98A1E); border: 0; }
.journey li.now .j-dot { color: #FFE6A8; border-color: #FFC860; box-shadow: 0 0 0 4px rgba(255, 200, 96, .14), 0 0 14px rgba(255, 200, 96, .4); }
.journey li > div { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.journey li.next b { color: var(--soft); letter-spacing: .3em; }
.story-now { padding: 20px; display: flex; flex-direction: column; gap: 14px; border-color: rgba(255, 200, 96, .3); }
.story-task { margin: 0; display: flex; align-items: center; gap: 8px; color: #FFE6A8; }
.echo-meter { display: flex; gap: 8px; }
.echo-meter i { width: 36px; height: 8px; border-radius: 4px; background: #1A2238; }
.echo-meter i.on { background: linear-gradient(90deg, #C98A1E, #FFE6A8); box-shadow: 0 0 10px rgba(255, 200, 96, .5); }
.key-choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .key-choices { grid-template-columns: 1fr 1fr; } .key-choices .k-keep { grid-column: 1 / -1; } }
.key-opt { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid var(--line-hi); background: linear-gradient(180deg, #16203A, #0E1526); transition: border-color .15s, transform .15s; }
.key-opt:hover, .key-opt:focus-visible { border-color: var(--fc, var(--amber)); transform: translateY(-2px); }
.key-opt b { font: 500 16px var(--display); }
.key-opt .pro { font-size: 13px; color: #A5EBD1; }
.key-opt .pro::before { content: "+ "; }
.key-opt .con { font-size: 13px; color: #F3C0B6; }
.key-opt .con::before { content: "− "; }
.key-opt.k-ussa { --fc: #5A8CFF; } .key-opt.k-aya { --fc: #E04848; } .key-opt.k-uwu { --fc: #F2B544; } .key-opt.k-shadow { --fc: #9AA6C0; } .key-opt.k-keep { --fc: #8FF0D8; }
.story-end { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 200, 96, .25); }
.story-end .kicker { color: #FFC860; }
.run-now { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(5, 8, 15, .55); border: 1px dashed rgba(255, 200, 96, .45); }
.run-now p { margin: 0; font-size: 14px; }
.run-now .ico { flex: none; color: #FFC860; }

/* Buttonschrift gegen Container-Regeln (z. B. „.job span“ grau) absichern */
.btn:not(.ghost):not(.opt) { color: #1A1405; }
.btn.ghost:not(.opt) { color: var(--amber); }

/* Mitspieler (Platzhalter) */
.players-page { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.pl-soon { display: grid; gap: 10px; }
.pl-intro, .pl-item { padding: 16px 18px; }
.pl-intro .story p:last-child, .pl-intro > :last-child { margin-bottom: 0; }
.pl-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; }
.pl-item > .ico { color: var(--amber); margin-top: 2px; }
.pl-item p { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.pl-badge { font: 500 10px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); border: 1px solid var(--amber-lo); border-radius: 999px; padding: 5px 9px; }
/* sechs Menüpunkte auf dem Handy */
@media (max-width: 899px) {
  .mainnav { padding-left: 2px; padding-right: 2px; }
  .mainnav a, .mainnav .soon { min-width: 0; flex: 1 1 0; font-size: 9px; letter-spacing: 0; }
}

/* Kapitel 1, Hafenwelt: Kiste abgeben statt reden */
.give-opts { display: grid; gap: 10px; margin-top: 12px; }
.give-opts form { margin: 0; }
.give-opts .key-opt { width: 100%; }
@media (min-width: 640px) { .give-opts { grid-template-columns: 1fr 1fr; } }

/* Sektorbild: Orte antippen */
.sa-hot { cursor: pointer; outline: none; }
.sa-hit { fill: transparent; }
.sa-ring { fill: none; stroke: #7FE3EA; stroke-width: 2; stroke-dasharray: 7 7; opacity: .7; animation: sa-dash 7s linear infinite; transition: opacity .15s, stroke-width .15s; }
.sa-hot.done .sa-ring { stroke: #8FF0D8; stroke-dasharray: none; opacity: .28; animation: none; }
.sa-hot.far .sa-ring { stroke: #9AA6C0; opacity: .3; animation: none; }
.sa-hot:hover .sa-ring, .sa-hot:focus-visible .sa-ring, .sa-hot.sel .sa-ring { opacity: 1; stroke-width: 3; }
.sa-hot.sel .sa-ring { stroke: var(--amber-hi); }
.sa-done circle { fill: #0E2A24; stroke: #8FF0D8; stroke-width: 1.5; }
.sa-done path { fill: none; stroke: #8FF0D8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sa-dash { to { stroke-dashoffset: -56; } }
@media (prefers-reduced-motion: reduce) { .sa-ring { animation: none; } }
.sa-pop {
  position: absolute; z-index: 3; width: min(300px, calc(100% - 20px)); display: grid; grid-template-columns: 30px 1fr; gap: 6px 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(8, 12, 22, .95); border: 1px solid var(--line-hi); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  animation: rise .18s ease-out;
}
.sa-pop[hidden] { display: none; }
.sa-pop > div { display: flex; flex-direction: column; padding-right: 22px; }
.sa-pop form, .sa-pop > .tag, .sa-pop > .small { grid-column: 1 / -1; margin: 0; }
.sa-pop > .tag { justify-self: start; }
.sa-pop .btn { width: 100%; }
.sa-pop-x { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: none; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.sa-pop-x:hover { color: var(--text); }
.place.sel { border-color: var(--amber-lo); }

/* Prolog „Ankunft in Ankerlicht“ */
.prologue { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pro-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pro-steps li { position: relative; padding-top: 10px; font: 500 10px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.pro-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.pro-steps li.done::before { background: #C98A1E; }
.pro-steps li.now { color: #FFE6A8; }
.pro-steps li.now::before { background: linear-gradient(90deg, #FFC860, #C98A1E); box-shadow: 0 0 10px rgba(255, 200, 96, .45); }
.pro-art { min-height: 260px; }
.pro-art h1 { margin: 2px 0 0; font-size: clamp(24px, 6vw, 32px); }
.pro-art .kicker { color: #FFC860; }
.pro-call .scene-ship { width: min(300px, 56%); left: 6%; top: 10%; }
.pro-alarm { position: absolute; z-index: 2; top: 14px; right: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
  border: 1px solid rgba(255, 106, 85, .55); background: rgba(40, 8, 6, .75); color: #FFB3A6; font: 500 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.pro-alarm i { width: 8px; height: 8px; border-radius: 50%; background: #FF6A55; box-shadow: 0 0 10px #FF6A55; animation: blink 1s ease-in-out infinite; }
.pro-art .scene-speaker { top: 42%; }
.pro-ai svg { display: block; width: 120px; height: 120px; border-radius: 14px; border: 1px solid rgba(255, 200, 96, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 200, 96, .15); }
.pro-ai circle:nth-of-type(4) { animation: ai-pulse 3.2s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes ai-pulse { 50% { opacity: .55; transform: scale(.85); } }
@media (max-width: 639px) { .pro-ai svg { width: 84px; height: 84px; } .pro-art { min-height: 220px; } }
.pro-text { padding: 18px 20px; }
.pro-text .story, .pro-result .story { max-width: none; }
.pro-choices { display: flex; flex-direction: column; gap: 10px; }
.pro-opt { text-align: left; padding: 14px 16px 14px 42px; border-radius: 12px; cursor: pointer; font: 500 15px/1.4 var(--body, inherit); color: var(--text); position: relative;
  border: 1px solid var(--line-hi); background: linear-gradient(180deg, #16203A, #0E1526); transition: border-color .15s, transform .15s, background .15s; }
.pro-opt::before { content: "›"; position: absolute; left: 16px; top: 50%; transform: translateY(-52%); font: 500 22px/1 var(--display); color: var(--amber); }
.pro-opt:hover, .pro-opt:focus-visible { border-color: var(--amber); transform: translateY(-2px); background: linear-gradient(180deg, #1C2846, #111A2E); }
.pro-result { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; border-color: rgba(255, 200, 96, .3); animation: rise .35s ease-out; }
.pro-said { margin: 0; padding-left: 12px; border-left: 3px solid var(--amber); color: var(--amber-hi); font-weight: 600; }
.pro-end { padding-top: 14px; border-top: 1px solid rgba(255, 200, 96, .2); }
.pro-result form { margin: 0; }
@media (prefers-reduced-motion: reduce) { .pro-alarm i, .pro-ai circle:nth-of-type(4) { animation: none; } }
/* Erschaffung: Hafenschreiber Mott */
.create-form > .mott { margin: -8px 0 0; padding: 10px 14px 12px; border-left: 3px solid var(--amber-lo, #8A6A36); border-radius: 0 10px 10px 0; background: rgba(26, 21, 10, .55); }
.mott-from { display: block; margin-bottom: 4px; font: 500 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.mott p { margin: 0; color: var(--text-2); font-style: italic; }
/* Nachhall früherer Entscheidungen auf der Kapitelseite */
.echoes { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(5, 8, 15, .45); border: 1px solid rgba(255, 200, 96, .14); }
.echoes .lbl { color: #FFC860; }
.echoes .story + .story { padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .08); }

/* --- Gemalte Bilder, Paket 1 (Karten, Szenen, Gesprächspartner, Mott) --- */
body { background-image: url("../graphics/bg.webp"), url("../graphics/bg-nebula.svg"); }
img.card-art.painted { height: 62px; object-fit: cover; object-position: 50% 45%; }
.c-art img.card-art.painted { height: 100%; }
.create-form > .mott.has-face { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: start; }
.mott.has-face .mott-face { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber-lo, #8A6A36); }
.mott.has-face .mott-from { align-self: end; }

/* --- Crew: Gespräche, Flirts, Beziehungen --- */
.cr-social { display: grid; gap: 8px; padding: 12px 14px; }
.cr-social.partner { border-color: rgba(232, 120, 160, .45); box-shadow: 0 0 0 1px rgba(232, 120, 160, .18) inset; }
.cr-social .heart { color: #F08AB0; }
.bar.affection > i { background: linear-gradient(90deg, #C9638A, #F2A7C3); }
.soc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-actions.end { justify-content: flex-end; }
.btn.love { background: linear-gradient(180deg, #E88AAE, #B9557D); border-color: #E88AAE; color: #1A0710; }
.btn.danger-ghost { color: var(--bad, #E07A6B); }
.said { position: relative; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--teal, #4FD1C5); }
.said p { margin: 0 0 4px; }
.said-cap { color: var(--text-2); font-size: .92em; }
.said-crew { font-style: italic; }
.said.tier-great, .said.tier-yes { border-left-color: #F08AB0; }
.said.tier-awkward { border-left-color: var(--amber, #F2B544); }
.said.tier-rebuff, .said.tier-no, .said.tier-apart { border-left-color: #8A93A8; }
.said-gain { font: 500 12px/1 var(--display); letter-spacing: .06em; }
.said-gain.up { color: #F08AB0; }
.said-gain.down { color: #8A93A8; }
.cr-bio { margin: 6px 0 4px; color: var(--text-2); font-style: italic; max-width: 42ch; }
.soc-actions .btn.danger-ghost { color: #E79A8E; border-color: rgba(231, 154, 142, .5); }

/* --- Geschichte: Kapitelbild, Lichtgarten, Name für den Bordcomputer --- */
.story-head.has-art { position: relative; overflow: hidden; border-radius: 16px; padding: 120px 22px 18px; border: 1px solid var(--line); }
.story-head.has-art .story-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.story-head.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 9, 16, 0) 30%, rgba(6, 9, 16, .85)); }
.story-head.has-art { isolation: isolate; }
.story-inline-art { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; margin: 6px 0 12px; }
.ai-name { display: grid; gap: 10px; padding: 18px 20px; margin: 0 0 16px; border-color: rgba(79, 209, 197, .35); }
.ai-name.done { border-color: rgba(242, 181, 68, .45); }
.ai-form { display: grid; gap: 10px; }
.ai-sugs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* --- Begegnungen unterwegs --- */
.encounter { display: grid; gap: 10px; overflow: hidden; padding: 20px; margin: 0 0 16px; }
.encounter .enc-art { display: block; max-width: none; width: calc(100% + 40px); margin: -20px -20px 4px; max-height: 320px; object-fit: cover; }
.encounter h2 { margin: 0; }
.enc-got { color: var(--amber); font-weight: 500; }

/* --- Lebensgeschichte und Freizeit an Bord --- */
.cr-past { display: grid; gap: 6px; padding: 12px 14px; }
.cr-past .row { display: flex; justify-content: space-between; align-items: baseline; }
.past-ch summary { cursor: pointer; color: var(--amber); font-weight: 500; }
.past-ch p, .past-told p { margin: 6px 0 2px; font-style: italic; color: var(--text-2); }
.past-told { padding: 8px 10px; border-radius: 8px; background: rgba(242, 181, 68, .06); border-left: 2px solid var(--amber); margin-top: 6px; }
.fun { display: grid; gap: 10px; padding: 16px 18px; margin: 0 0 18px; }
.fun .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fun-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fun-opt { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; cursor: pointer; }
.fun-opt:hover:not(:disabled) { border-color: var(--amber); }
.fun-opt:disabled { opacity: .5; cursor: default; }
.fun-opt b { color: var(--amber); }
.fun-opt span { font-size: .88em; color: var(--text-2); }
.fun-opt.duo { cursor: default; }
.fun-opt.duo select { flex: 1; min-width: 0; }
.fun-result { display: grid; gap: 6px; }
.fun-opt { align-content: start; } .fun-opt.duo .row { margin-top: auto; }

/* --- Sternenbuch --- */
.page-head .book-link { margin-top: 8px; }
.book-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 20px; }
.book-stats .panel { padding: 12px 14px; display: grid; gap: 2px; }
.book-stats b { font: 500 24px var(--display); color: var(--amber); }
.book-stats span { font-size: .85em; color: var(--text-2); }
.book-h { margin: 26px 0 10px; font-size: 20px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.book-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(12, 18, 32, .9); display: grid; }
.book-card .bc-art { position: relative; aspect-ratio: 4 / 3; background: #050810; }
.book-card .bc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-card.unknown .bc-art img { filter: grayscale(1) brightness(.18) blur(2px); }
.book-card .bc-q { position: absolute; inset: 0; display: grid; place-items: center; font: 500 46px var(--display); color: rgba(255, 255, 255, .25); }
.book-card .bc-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.book-card.unknown .bc-body b { color: var(--text-2); }
.bc-meta { font-size: .8em; color: var(--amber); }
.book-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.bp-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.bp-row img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.bp-row div { display: grid; }
.book-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.book-log li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.bl-type { font: 500 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal, #4FD1C5); }
.book-card { grid-template-rows: auto 1fr; align-content: start; min-width: 0; } .book-card .bc-body { min-width: 0; overflow-wrap: break-word; } .book-card .bc-art { height: auto; }
.book-card .bc-body { align-content: start; }
.cr-body > .cr-bio { margin: 0; max-width: none; padding: 10px 14px; border-radius: 10px; background: rgba(12, 18, 32, .92); border: 1px solid var(--line); border-left: 3px solid var(--amber); color: var(--text); font-style: italic; font-size: 15px; line-height: 1.5; }

/* --- Schiffsansicht --- */
.sc-view { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.ship-hero { position: relative; padding: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, rgba(79, 209, 197, .12), transparent 60%), linear-gradient(180deg, rgba(19, 28, 46, .94), rgba(6, 9, 16, .96)); }
.ship-hero .sh-img { display: block; width: min(640px, 100%); margin: 0 auto; filter: drop-shadow(0 0 22px rgba(79, 209, 197, .25)); }
.sh-spot { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 28, .85); border: 2px solid var(--teal, #4FD1C5); color: var(--teal, #4FD1C5); font: 500 13px var(--display); text-decoration: none; box-shadow: 0 0 12px rgba(79, 209, 197, .5); }
.sh-spot.bad { border-color: #FF5A3C; color: #FF8A6C; box-shadow: 0 0 14px rgba(255, 90, 60, .7); animation: pulse-bad 1.4s ease-in-out infinite; }
@keyframes pulse-bad { 50% { box-shadow: 0 0 4px rgba(255, 90, 60, .3); } }
.sh-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .9em; color: var(--text-2); }
.warn-box { padding: 10px 14px; margin: 12px 0; border-left: 3px solid #FF5A3C; }
.ship-mods { display: grid; gap: 12px; margin-top: 14px; }
.ship-mod { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 12px; }
@media (max-width: 640px) { .ship-mod { grid-template-columns: 1fr; } }
.sm-art { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #050810; }
.sm-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ship-mod.bad .sm-art img { filter: grayscale(.7) brightness(.6) sepia(.3) hue-rotate(-20deg); }
.sm-n { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 16, 28, .85); border: 1px solid var(--teal, #4FD1C5); font: 500 12px var(--display); color: var(--teal, #4FD1C5); }
.sm-bad { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: #B8321E; color: #fff; font: 500 11px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.sm-body h2 { margin: 0 0 4px; font-size: 18px; }
.sm-body h2 small { color: var(--amber); font-size: .75em; }
.sm-card { position: relative; display: inline-block; }
.sm-x { position: absolute; top: -6px; right: -6px; padding: 2px 6px; border-radius: 10px; background: var(--amber); color: #1A1206; font: 600 11px var(--display); }
.sm-fix { display: grid; gap: 8px; margin-top: 8px; }
.sm-fix .row { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-fix select { flex: 1; min-width: 0; }
.sh-frame { position: relative; width: min(640px, 100%); margin: 0 auto; } .sh-frame .sh-img { width: 100%; }

/* --- Fraktionsteile, Lager und Werft --- */
.sh-stats { flex-wrap: wrap; }
.make { display: inline-block; padding: 2px 7px; border-radius: 5px; font: 500 10.5px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; border: 1px solid currentColor; }
.make-uwu { color: #8FD8A8; } .make-ussa { color: #F2B544; } .make-aya { color: #7FE3EA; } .make-shadow { color: #C58BF2; } .make-precursor { color: #FFD98A; background: rgba(255, 217, 138, .1); box-shadow: 0 0 10px rgba(255, 217, 138, .25); }
.sh-spot.mk-ussa { border-color: #F2B544; color: #F2B544; } .sh-spot.mk-aya { border-color: #7FE3EA; color: #7FE3EA; } .sh-spot.mk-shadow { border-color: #C58BF2; color: #C58BF2; } .sh-spot.mk-precursor { border-color: #FFD98A; color: #FFD98A; }
.ship-rep { padding: 12px 14px; margin-top: 12px; }
.rep-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.rep-f { display: grid; gap: 3px; justify-items: start; }
.ship-mod.empty { border-style: dashed; opacity: .9; }
.sm-free { position: absolute; inset: 0; display: grid; place-items: center; color: #3A4766; }
.sm-eff { color: var(--text-2); margin: 6px 0 0; }
.sm-swap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(201, 214, 240, .08); }
.sm-swap .row, .ship-mod.empty .row { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-swap select, .ship-mod.empty select { min-width: 0; max-width: 260px; flex: 0 1 auto; }
.sm-swap form.row, .ship-mod.empty form.row { align-items: center; flex-wrap: nowrap; }
@media (max-width: 640px) { .sm-swap form.row, .ship-mod.empty form.row { flex-wrap: wrap; } }
.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.part { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.part .pt-art { aspect-ratio: 16 / 9; background: #050810; }
.part .pt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.part .pt-body { display: grid; gap: 6px; padding: 10px 12px 12px; align-content: start; min-width: 0; }
.part .pt-body b small { color: var(--amber); }
.part.bad .pt-art img { filter: grayscale(.7) brightness(.6); }
.part.locked .pt-art img { filter: grayscale(.85) brightness(.5); }
.part .mini-cards { gap: 6px; }
.tag.bad { color: #FF8A6C; border-color: #B8321E; }

/* --- Kartenseite und Menü --- */
.deck-guide { padding: 14px 16px; margin: 0 0 16px; }
.deck-guide summary { cursor: pointer; font: 500 15px var(--display); color: var(--amber); display: flex; gap: 8px; align-items: center; }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; margin-top: 12px; }
.dg-grid b { color: var(--text); }
.dg-grid p { margin: 4px 0 0; color: var(--text-2); font-size: .92em; }
.crew-deck, .ship-deck { margin-top: 16px; }
.ship-deck { padding: 14px 16px; }
.ship-deck .row { display: flex; justify-content: space-between; }
.deck-link { padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mainnav a { position: relative; }
.nav-badge { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #E8573A; color: #fff; font: 600 10px/16px var(--display); font-style: normal; text-align: center; }
.um-soon { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--text-2); opacity: .6; }

/* --- Schiffe: Hangar und Händler --- */
.ship-card .ship-art { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, rgba(79, 209, 197, .14), transparent 65%), #050810; }
.ship-card .ship-art img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 0 14px rgba(79, 209, 197, .25)); }
.ship-card.active { border-color: rgba(242, 181, 68, .55); }
.ship-card .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ship-card input[type=text] { flex: 1 1 140px; min-width: 0; }
.ship-card .pt-body > .tag { justify-self: start; }
.ship-card form.row input[type=text] { flex: 1 1 100%; }

/* --- Ankerlicht gemalt (Tutorial-Karte) --- */
.starmap.tut .tut-art.painted { position: absolute; inset: 0; overflow: hidden; }
.tut-art.painted .tut-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut-obj { position: absolute; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .6)); transition: filter .4s, opacity .4s; }
.tut-obj.locked { filter: brightness(.22) saturate(0) drop-shadow(0 0 6px rgba(127, 227, 234, .25)); opacity: .6; }
.tut-station { width: 30%; filter: drop-shadow(0 0 22px rgba(242, 181, 68, .35)); }
.tut-satellite { width: 20%; }
.tut-asteroid { width: 20%; }
.tut-planet { width: 22%; }
.tut-wreck { width: 24%; }

.loc-art { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(79, 209, 197, .14), rgba(5, 8, 16, .9) 70%); border: 1px solid rgba(201, 214, 240, .12); overflow: hidden; }
.loc-art img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .6)); }
.mc-ico .loc-art { width: 56px !important; height: 56px !important; }
.mc-ico.locked .loc-art img { filter: brightness(.22) saturate(0); opacity: .7; }
.mc-ico.locked .loc-art::after { content: '?'; position: absolute; font: 500 18px var(--display); color: #8A96B4; }
.mc-ico .loc-art { position: relative; }

/* Wortwechsel: Absicht über der Funkverbindung, Energie im Porträt des Captains */
.comm-intent { position: absolute; left: 30%; right: 30%; top: calc(50% - 30px); z-index: 3; margin: 0; text-align: center; font: 500 13px/1.3 var(--display); color: var(--cyan); text-shadow: 0 1px 6px #000, 0 0 2px #000; display: flex; justify-content: center; align-items: center; gap: 5px; }
.comm-win.me .cw-energy { position: absolute; top: 6px; left: 6px; display: flex; gap: 3px; padding: 3px 4px; border-radius: 10px; background: rgba(5, 8, 15, .7); }
.cw-energy .orb { width: 13px; height: 13px; }
.mp-energy.talk { justify-content: flex-end; }
@media (max-width: 639px) { .comm-intent { display: block; left: 33%; right: 28%; top: calc(50% + 6px); font-size: 11px; } .cw-energy .orb { width: 10px; height: 10px; } }
.me-panel.talk { background: none; border: 0; box-shadow: none; padding: 0 4px; min-height: 0; }
.me-panel.talk .mp-chips:empty { display: none; }

.comm-win.them .cw-patience { position: absolute; top: 6px; left: 6px; display: flex; gap: 3px; padding: 4px 5px; border-radius: 10px; background: rgba(5, 8, 15, .7); cursor: help; }
.cw-patience .pip { width: 10px; height: 10px; }
.cw-energy { cursor: help; }
.comm-open { margin: 2px 0 6px; }
@media (max-width: 639px) { .cw-patience .pip { width: 7px; height: 7px; } .comm-win.them .cw-patience { gap: 2px; padding: 3px; } }
.tip-bubble { position: absolute; z-index: 60; padding: 8px 11px; border-radius: 10px; background: rgba(10, 16, 28, .97); border: 1px solid rgba(127, 227, 234, .45); color: var(--text); font-size: 12.5px; line-height: 1.4; box-shadow: 0 6px 22px rgba(0, 0, 0, .6); }
.comm-win.me .cw-deck { position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; padding: 2px 8px; border-radius: 8px; background: rgba(5, 8, 15, .75); font: 500 10.5px/1.4 var(--display); color: var(--text-2); white-space: nowrap; }
.me-panel.talk .mp-energy.talk { display: none; }
@media (max-width: 639px) { .comm-win.me .cw-deck { bottom: 6px; font-size: 9px; padding: 1px 5px; } }
.me-panel.talk { display: contents; }

/* Energie einheitlich: Kartenkosten und Energievorrat als goldene Sechsecke */
.orb { border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border: 0; background: #1A2232; box-shadow: none; }
.orb.on { background: radial-gradient(circle at 40% 30%, #FFE3A0, #D8952A 70%); box-shadow: none; filter: drop-shadow(0 0 4px rgba(242, 181, 68, .6)); }

/* Kampf kompakt: Absicht unter dem Gegnerbalken, Energie über der Hülle, Stapel oben beim eigenen Schiff */
.ar-hud .hud-intent { font: 500 11.5px/1.3 var(--display); color: #FF9A8A; display: flex; align-items: center; gap: 4px; }
.ar-hud .hud-energy { display: flex; gap: 3px; cursor: help; }
.ar-hud .hud-energy .orb { width: 13px; height: 13px; }
.ar-deck { position: absolute; left: 10px; top: 10px; z-index: 3; padding: 2px 8px; border-radius: 8px; background: rgba(5, 8, 15, .7); font: 500 10.5px/1.4 var(--display); color: var(--text-2); }
@media (max-width: 639px) { .ar-hud .hud-intent { font-size: 10.5px; } .ar-hud .hud-energy .orb { width: 10px; height: 10px; } .ar-deck { font-size: 9px; } }

/* Stufenaufstieg: aktuelles Deck mit Kraft, Möglichkeiten mit Vorher/Nachher */
.offer.lvl { gap: 10px; }
.lvl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lvl-head b { font: 500 16px var(--display); }
.offer.lvl .offer-area { padding: 12px; border-radius: 12px; background: rgba(5, 8, 15, .45); border: 1px solid rgba(242, 181, 68, .18); gap: 10px; }
.lvl-area-head { display: flex; justify-content: space-between; align-items: baseline; }
.lvl-now { display: grid; gap: 6px; }
.pows { display: flex; flex-wrap: wrap; gap: 6px; }
.pow { padding: 2px 8px; border-radius: 8px; background: rgba(201, 214, 240, .07); font-size: 12px; color: var(--text-2); }
.pow b { color: var(--text); }
.pow.up { background: rgba(110, 220, 140, .12); color: #9FE8B4; } .pow.up b { color: #BFF5CD; }
.pow.down { background: rgba(255, 110, 90, .12); color: #FFA898; } .pow.down b { color: #FFC4B8; }
.pow.soft { color: var(--soft); }
.lvl-deck { gap: 8px; }
.lvl-card { position: relative; transition: opacity .2s, filter .2s; }
.lvl-tag { display: none; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-8deg); padding: 3px 9px; border-radius: 6px; font: 600 11px var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; z-index: 3; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.lvl-tag.out { background: #B8321E; color: #fff; }
.lvl-tag.chg { background: var(--amber); color: #1A1206; }
.lvl-card.mark-out .gcard { filter: grayscale(.8) brightness(.5); }
.lvl-card.mark-out .lvl-tag.out, .lvl-card.mark-chg .lvl-tag.chg { display: block; }
.lvl-card.mark-chg .gcard { outline: 2px solid var(--amber); outline-offset: 2px; }
.lvl-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.lvl-swap .gcard.mini { flex: 0 0 auto; }
.lvl-opt { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 18, 32, .85); transition: border-color .2s; }
.lvl-opt:hover, .lvl-opt:focus-within { border-color: var(--amber-lo); }
.lvl-kind { font: 500 10.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.lvl-swap { display: flex; align-items: center; gap: 8px; }
.lvl-swap .gcard.old { filter: grayscale(.5) brightness(.75); }
.lvl-arrow { font-size: 22px; color: var(--amber); }
.lvl-opt .btn { justify-self: start; }
.lvl-replace select { max-width: 100%; }
@media (min-width: 900px) { .offer.lvl .offer-areas { grid-template-columns: 1fr; } }

.lvl-area-head h3 { margin: 0; font: 600 20px var(--display); color: var(--text); }
.pow-info summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pow-info summary::-webkit-details-marker { display: none; }
.pow-info summary .pows { flex: 0 1 auto; }
.pow-q { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--amber-lo); color: var(--amber); font: 600 12px var(--display); }
.pow-info summary:hover .pow, .pow-info[open] summary .pow { background: rgba(242, 181, 68, .1); }
.pow-help { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: rgba(5, 8, 15, .85); border: 1px solid rgba(242, 181, 68, .3); }
.pow-help b { font: 500 14px var(--display); color: var(--amber); }
.pow-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 8px; }
.pow-help dt { font-weight: 600; color: var(--text); }
.pow-help dd { margin: 0; color: var(--text-2); font-size: 13px; }
@media (max-width: 639px) { .pow-help dl { grid-template-columns: 1fr; gap: 2px; } .pow-help dd { margin-bottom: 6px; } }

.lvl-one { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(242, 181, 68, .12); border: 1px solid var(--amber); color: var(--amber); }
.lvl-one b { display: block; font: 600 15px var(--display); color: var(--amber-hi, #FFD27A); }
.lvl-one span { display: block; color: var(--text); font-size: 13.5px; margin-top: 2px; }
.lvl-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.lvl-or::before, .lvl-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--amber-lo), transparent); }
.lvl-or span { font: 700 15px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); padding: 4px 14px; border: 1px solid var(--amber-lo); border-radius: 20px; background: #1A150A; }

/* Freie Kartenplätze */
.card-slot { flex: none; width: 112px; min-height: 168px; border: 2px dashed rgba(201, 214, 240, .22); border-radius: 10px; display: grid; place-items: center; background: rgba(201, 214, 240, .02); }
.card-slot span { font: 500 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: rgba(201, 214, 240, .35); text-align: center; padding: 0 8px; }
@media (max-width: 639px) { .card-slot { width: 96px; min-height: 156px; } }

/* Kartentexte gleichmäßig: jede Wirkung eine Zeile, Zahl bleibt bei ihrem Wort */
.c-fx .fx-l { display: block; text-wrap: balance; }
.c-fx .fx-l + .fx-l { margin-top: 1px; }
/* Vorher/Nachher-Chips gleich hoch */
.pows { align-items: center; }
.pow { display: inline-flex; align-items: baseline; gap: 4px; height: 24px; line-height: 24px; padding: 0 9px; box-sizing: border-box; white-space: nowrap; }
.pow b { line-height: 24px; }
.pow.up, .pow.down { margin: 0; }
/* Alle Karten gleich groß (Hand, Kartenreihen, Stufenaufstieg) */
.gcard, .gcard.mini { height: 196px; min-height: 0; }
.gcard .cbody .c-fx { font-size: 10.5px; line-height: 1.3; }
.card-slot { min-height: 196px; }
@media (max-width: 639px) { .gcard, .gcard.mini { height: 186px; min-height: 0; } .card-slot { min-height: 186px; } }

/* --- Kartentutorial: Bordcomputer als Coach, Ziel wird hervorgehoben --- */
.coach { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 26, 44, .98), rgba(8, 13, 24, .98)); border: 1px solid rgba(127, 227, 234, .55); box-shadow: 0 0 0 1px rgba(5, 8, 15, .8), 0 18px 50px rgba(0, 0, 0, .7), 0 0 30px rgba(127, 227, 234, .15);
  animation: coach-in .35s ease-out; }
.coach.placed { transform: none; bottom: auto; }
.tut-rel { position: relative; }
.coach.edge-top { top: 12px; bottom: auto; }
@keyframes coach-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.coach-face { width: 52px; height: 52px; border-radius: 12px; border: 1px solid rgba(127, 227, 234, .5); object-fit: cover; box-shadow: 0 0 14px rgba(127, 227, 234, .3); }
.coach-who { font: 500 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.coach-text p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.coach-text b { color: #FFD27A; font-weight: 600; }
.coach-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.coach-act .linkbtn { color: var(--soft); font-size: 12px; }
.coach-do { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); animation: coach-pulse 1.6s ease-in-out infinite; }
@keyframes coach-pulse { 50% { opacity: .55; } }
.coach.end { border-color: rgba(242, 181, 68, .6); }
.coach::after { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); display: none; }
.coach.arrow-up::after { display: block; top: -8px; left: var(--ax, 50%); border-width: 1px 0 0 1px; background: rgb(16, 26, 44); }
.coach.arrow-down::after { display: block; bottom: -8px; left: var(--ax, 50%); background: rgb(8, 13, 24); }
/* Hervorhebung: alles andere wird dunkler */
.tut-focus { z-index: 70 !important; border-radius: 12px; box-shadow: 0 0 0 3px rgba(127, 227, 234, .9), 0 0 0 9999px rgba(2, 4, 10, .62), 0 0 28px rgba(127, 227, 234, .45) !important; animation: tut-glow 1.8s ease-in-out infinite; }
@keyframes tut-glow { 50% { box-shadow: 0 0 0 3px rgba(127, 227, 234, .5), 0 0 0 9999px rgba(2, 4, 10, .62), 0 0 14px rgba(127, 227, 234, .25); } }
.tut-focus.hand, .hand.tut-focus { border-radius: 16px; }
body.tut-lock .hand .gcard, body.tut-lock .endturn button { pointer-events: none; }
body.tut-play .endturn button { pointer-events: none; opacity: .45; }
body.tut-end .hand .gcard { pointer-events: none; }
.arena .tut-focus, .ar-hud.tut-focus, .cw-patience.tut-focus, .cw-energy.tut-focus, .comm-intent.tut-focus, .hud-intent.tut-focus, .ar-deck.tut-focus { z-index: 70 !important; }
@media (prefers-reduced-motion: reduce) { .coach, .tut-focus, .coach-do { animation: none; } }
