:root {
  --ink: #1d1a2e;
  --panel: rgba(29, 26, 46, 0.78);
  --panel-solid: #2a2542;
  --edge: #0f0c1c;
  --text: #fff8ec;
  --muted: #c9c2e0;
  --gold: #ffc93c;
  --gold-dark: #d98c12;
  --green: #5fd068;
  --red: #ff5a5f;
  --rift: #5ef2ff;
  --display: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d0b18; color: var(--text); font-family: var(--body); }
#game { position: fixed; inset: 0; width: 100%; height: 100%; outline: none; display: block; }
.hidden { display: none !important; }

/* ---------- Grundbausteine ---------- */
.panel { background: var(--panel); border: 3px solid var(--edge); border-radius: 14px; box-shadow: 0 4px 0 var(--edge); padding: 10px 14px; }
.panel.small { font-size: 13px; padding: 8px 12px; }
.btn {
  font-family: var(--display); letter-spacing: .5px; color: var(--text); cursor: pointer;
  background: linear-gradient(#5b5290, #3d3667); border: 3px solid var(--edge); border-radius: 12px;
  box-shadow: 0 4px 0 var(--edge), inset 0 2px 0 rgba(255,255,255,.25); padding: 8px 16px; font-size: 16px;
  transition: transform .06s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.btn-gold { background: linear-gradient(#ffd75e, var(--gold-dark)); color: #3a2200; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn.big { font-size: 22px; padding: 12px 28px; width: 100%; }
.btn.mini { font-size: 13px; padding: 4px 10px; border-radius: 9px; }
.btn.round { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; padding: 0; position: relative; }
.btn kbd { position: absolute; bottom: -6px; right: -4px; font-size: 11px; }
kbd { font-family: var(--body); font-weight: 800; font-size: 12px; background: #fff8ec; color: var(--ink); border-radius: 5px; padding: 1px 6px; border-bottom: 2px solid #9a90b8; }
.badge { font-family: var(--display); font-size: 12px; padding: 2px 8px; border-radius: 8px; border: 2px solid var(--edge); margin-left: 8px; color: #fff; }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--red); font-weight: 800; min-height: 1.2em; }

/* ---------- Login ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; z-index: 20; }
#login { background: radial-gradient(ellipse at 50% 30%, #3a3170 0%, #15112a 70%); padding: 16px; overflow: auto; }
.login-card { width: min(760px, 100%); background: var(--panel-solid); border: 4px solid var(--edge); border-radius: 22px; box-shadow: 0 8px 0 var(--edge); padding: 26px; }
.logo { font-family: var(--display); font-size: clamp(40px, 8vw, 68px); margin: 0; text-align: center; letter-spacing: 2px;
  color: var(--gold); -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; text-shadow: 0 6px 0 var(--edge); }
.logo span { color: var(--rift); }
.tagline { text-align: center; color: var(--muted); margin: 4px 0 18px; font-weight: 800; }
.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.field input { width: 100%; font: 800 18px var(--body); padding: 10px 12px; border-radius: 10px; border: 3px solid var(--edge); background: #fff8ec; color: var(--ink); }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }
.class-card { background: #3a3460; border: 3px solid var(--edge); border-radius: 14px; padding: 10px; cursor: pointer; text-align: center; box-shadow: 0 4px 0 var(--edge); }
.class-card.sel { outline: 4px solid var(--gold); outline-offset: -2px; background: #4b4380; }
.class-card .avatar { width: 54px; height: 54px; margin: 2px auto 6px; border-radius: 50%; border: 3px solid var(--edge); box-shadow: inset 0 -8px 0 rgba(0,0,0,.25); }
.class-card h3 { font-family: var(--display); margin: 0 0 4px; font-size: 18px; }
.class-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.3; }
.class-card .stats { font-size: 11px; margin-top: 6px; color: #fff; opacity: .85; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud .btn, #hud input { pointer-events: auto; }
.hud-tl { position: absolute; top: 12px; left: 12px; width: 250px; }
.who { font-family: var(--display); font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; }
.hpbar { position: relative; height: 20px; background: #1a1528; border: 3px solid var(--edge); border-radius: 10px; overflow: hidden; }
#hpFill { height: 100%; width: 100%; background: linear-gradient(#8cf08f, #38b44a); transition: width .2s; }
#hpText { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px var(--body); text-shadow: 0 1px 2px #000; }
.hud-tc { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center; }
.world-name { font-family: var(--display); font-size: 30px; -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; text-shadow: 0 3px 0 var(--edge); }
.world-sub { font-weight: 800; font-size: 13px; color: var(--muted); text-shadow: 0 1px 2px #000; }
.resonance { margin-top: 6px; display: inline-block; font-family: var(--display); color: var(--ink); background: var(--rift); border: 3px solid var(--edge); border-radius: 10px; padding: 3px 10px; box-shadow: 0 0 18px var(--rift); }
.hud-tr { position: absolute; top: 12px; right: 12px; display: grid; gap: 4px; justify-items: end; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hud-bl { position: absolute; left: 12px; bottom: 12px; width: min(380px, 45vw); }
.log { display: flex; flex-direction: column; gap: 3px; max-height: 200px; overflow: hidden; justify-content: flex-end; }
.log div { background: rgba(15, 12, 28, .62); border-radius: 8px; padding: 3px 8px; font-size: 13px; font-weight: 600; animation: fadein .2s; }
.log div b { color: var(--gold); }
.chat-input { width: 100%; margin-top: 6px; font: 600 14px var(--body); padding: 7px 10px; border-radius: 9px; border: 3px solid var(--edge); }
.hud-bc { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
.hotbar { display: flex; gap: 6px; }
.slot { width: 58px; height: 58px; background: var(--panel); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 0 4px 0 var(--edge); display: grid; place-items: center; position: relative; font-size: 24px; }
.slot .q { position: absolute; bottom: 1px; right: 5px; font: 800 13px var(--body); text-shadow: 0 1px 2px #000; }
.slot.empty { opacity: .4; }
.slot.pop { animation: pop .3s; }
.hud-br { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 12px; }
.prompt { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--panel); border: 3px solid var(--edge); border-radius: 12px; padding: 6px 14px; font-weight: 800; }
.portal-charge { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-family: var(--display); font-size: 26px; color: var(--rift); -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; text-shadow: 0 0 22px var(--rift); }
.portal-charge .big { font-size: 72px; display: block; }
.build-bar { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--panel); border: 3px solid var(--edge); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 13px; pointer-events: auto; }
.build-bar .piece { padding: 4px 10px; border-radius: 8px; border: 2px solid var(--edge); background: #3d3667; }
.build-bar .piece.sel { background: var(--gold); color: var(--ink); }

#labels, #floaters { position: absolute; inset: 0; overflow: hidden; }
.label { position: absolute; transform: translate(-50%, -100%); text-align: center; white-space: nowrap; }
.label .nm { font-family: var(--display); font-size: 14px; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; }
.label .bar { width: 46px; height: 6px; margin: 2px auto 0; background: #1a1528; border: 2px solid var(--edge); border-radius: 4px; overflow: hidden; }
.label .bar i { display: block; height: 100%; background: var(--green); }
.label.mob .nm { color: #ffb4b4; font-size: 12px; }
.label.mob .bar i { background: var(--red); }
.floater { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 22px; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; animation: rise 1s forwards; }
.floater.dmg { color: #fff; }
.floater.hurt { color: var(--red); }
.floater.gain { color: var(--gold); font-size: 20px; }
#hurtFlash { position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(255, 40, 40, .7); opacity: 0; transition: opacity .3s; }
#hurtFlash.on { opacity: 1; transition: none; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10, 8, 20, .45); z-index: 15; padding: 16px; }
.modal-card { width: min(620px, 100%); max-height: 90vh; overflow: auto; background: var(--panel-solid); border: 4px solid var(--edge); border-radius: 18px; box-shadow: 0 8px 0 var(--edge); padding: 16px 18px; }
.modal-card header { display: flex; justify-content: space-between; align-items: center; }
.modal-card h2 { font-family: var(--display); margin: 0 0 10px; font-size: 28px; }
.recipe-list { display: grid; gap: 10px; }
.recipe { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: #3a3460; border: 3px solid var(--edge); border-radius: 12px; padding: 8px 10px; }
.recipe .ic { font-size: 32px; text-align: center; }
.recipe h4 { margin: 0; font-family: var(--display); font-size: 18px; }
.recipe p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.cost { display: flex; gap: 8px; margin-top: 4px; font-weight: 800; font-size: 13px; }
.cost .miss { color: var(--red); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }
.death-text { font-family: var(--display); font-size: 80px; color: var(--red); -webkit-text-stroke: 4px var(--edge); paint-order: stroke fill; }
.screen.dim { background: rgba(40, 0, 0, .45); pointer-events: none; align-content: center; justify-items: center; }

@keyframes rise { 0% { opacity: 0; margin-top: 0; } 15% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }
@keyframes pop { 50% { transform: scale(1.18); } }
@keyframes fadein { from { opacity: 0; transform: translateX(-10px); } }

/* ---------- Clan & Lager ---------- */
.modal-card.wide { width: min(780px, 100%); }
.clan-section { background: #3a3460; border: 3px solid var(--edge); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.clan-section h3 { font-family: var(--display); margin: 0 0 8px; font-size: 18px; font-weight: normal; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input, .row select, .member select { font: 700 14px var(--body); padding: 6px 8px; border-radius: 8px; border: 3px solid var(--edge); background: #fff8ec; color: var(--ink); }
.row input { flex: 1; min-width: 120px; }
.member { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.member:last-child { border-bottom: 0; }
.member .on { width: 10px; height: 10px; border-radius: 50%; background: #6b6690; }
.member .on.yes { background: var(--green); }
.role { font: 800 12px var(--body); padding: 2px 8px; border-radius: 7px; border: 2px solid var(--edge); background: #5b5290; }
.role.leader { background: var(--gold); color: var(--ink); }
.role.officer { background: #e88a3a; }
.role.builder { background: #4f8df5; }
.role.guest { background: #6b6690; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 700 12px var(--body); background: #2a2542; border: 2px solid var(--edge); border-radius: 8px; padding: 2px 8px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.matrix th, .matrix td { padding: 4px 6px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix .yes { color: var(--green); font-weight: 800; }
.matrix .no { color: #8a83a8; }
.invite { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.btn-danger { background: linear-gradient(#ff7f84, #c9363c); }
.storage-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .storage-cols { grid-template-columns: 1fr; } }
.storage-cols h3 { font-family: var(--display); font-weight: normal; margin: 0 0 6px; }
.storage-list { display: grid; gap: 6px; min-height: 60px; }
.sitem { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; background: #3a3460; border: 2px solid var(--edge); border-radius: 10px; padding: 5px 8px; font-weight: 800; font-size: 14px; }
.sitem .ic { font-size: 20px; }
.sitem .acts { display: flex; gap: 4px; }
.sitem .btn.mini { padding: 3px 7px; }
.empty-note { color: var(--muted); font-size: 13px; padding: 8px; }

/* ---------- Clan-Tor ---------- */
.hpbar.energy div { height: 100%; background: linear-gradient(#9ff7ff, #29b6d1); transition: width .3s; }
.dest { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.dest:last-child { border-bottom: 0; }
.dest.off b { opacity: .6; }
.perks { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; }

/* ---------- Level, Talente, Boss ---------- */
.lvl { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--gold); color: var(--ink); border: 3px solid var(--edge); font-size: 14px; }
.xpbar { position: relative; height: 15px; margin-top: 5px; background: #1a1528; border: 3px solid var(--edge); border-radius: 8px; overflow: hidden; }
#xpFill { height: 100%; width: 0; background: linear-gradient(#b48cff, #7b3fff); transition: width .3s; }
#xpText { position: absolute; inset: 0; display: grid; place-items: center; font: 800 10px var(--body); text-shadow: 0 1px 2px #000; }
.talent-btn { margin-top: 8px; width: 100%; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.04); filter: brightness(1.15); } }
.talent-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { .talent-offer { grid-template-columns: 1fr; } }
.tcard { cursor: pointer; text-align: center; background: #3a3460; border: 4px solid var(--edge); border-radius: 16px; padding: 14px 10px; box-shadow: 0 6px 0 var(--edge); transition: transform .1s; }
.tcard:hover { transform: translateY(-4px); }
.tcard .ti { font-size: 40px; }
.tcard h4 { font-family: var(--display); font-size: 19px; margin: 6px 0 2px; font-weight: normal; }
.tcard .rk { font: 800 12px var(--body); color: var(--muted); }
.tcard p { font-size: 13px; margin: 8px 0 0; }
.tcard.rare { border-color: #3d7bff; box-shadow: 0 6px 0 #1d3f8a, 0 0 18px rgba(61,123,255,.5); }
.tcard.epic { border-color: #b44dff; box-shadow: 0 6px 0 #5a1d8a, 0 0 22px rgba(180,77,255,.6); }
.tcard .rar { font: 800 11px var(--body); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tcard.rare .rar { color: #8fb4ff; } .tcard.epic .rar { color: #d9a3ff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; font-weight: 800; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-grid div { background: #2a2542; border: 2px solid var(--edge); border-radius: 8px; padding: 4px 8px; }
.boss-bar { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); width: min(520px, 80vw); text-align: center; }
.boss-name { font-family: var(--display); font-size: 20px; color: #ffb4f0; -webkit-text-stroke: 3px var(--edge); paint-order: stroke fill; }
.boss-hp { position: relative; height: 18px; background: #1a1528; border: 3px solid var(--edge); border-radius: 9px; overflow: hidden; }
#bossFill { height: 100%; background: linear-gradient(#ff7ad9, #b3127f); transition: width .2s; }
.boss-bar.enraged #bossFill { background: linear-gradient(#ff8a5e, #d4121f); }
#bossText { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11px var(--body); text-shadow: 0 1px 2px #000; }
.floater.crit { color: #ffd23f; font-size: 30px; }
.floater.level { color: #ffc93c; font-size: 34px; animation-duration: 1.6s; }

/* ---------- Konto ---------- */
.auth-view { margin-top: 6px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { flex: 1; font-family: var(--display); font-size: 17px; padding: 8px; border-radius: 10px; border: 3px solid var(--edge); background: #3a3460; color: var(--muted); cursor: pointer; }
.tab.sel { background: var(--gold); color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 12px; }
.check input { width: 18px; height: 18px; }
.links { text-align: center; font-size: 14px; }
.links a, .legal a, .check a { color: var(--rift); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pw-meter { height: 6px; background: #1a1528; border-radius: 4px; margin: -4px 0 10px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.notice { background: #2f5d3a; border: 3px solid var(--edge); border-radius: 10px; padding: 8px 12px; font-weight: 800; }
.notice.warn { background: #6b3a2a; }
.vt { font-family: var(--display); font-weight: normal; margin: 4px 0 12px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.char-list { display: grid; gap: 8px; margin-bottom: 12px; }
.char-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; background: #3a3460; border: 3px solid var(--edge); border-radius: 12px; padding: 8px 12px; }
.char-card .avatar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--edge); }
.char-card b { font-family: var(--display); font-weight: normal; font-size: 19px; }
.char-card .sub { font-size: 13px; color: var(--muted); }
.new-char-btn { width: 100%; }

/* ---------- Login im Corporate Design der BRIX Group ----------
   Farben aus den BRIX-Unterlagen: #27408B (CI-Blau) #314FAD #5270CE #728AD8 #B4C1EA #DBE1F5; Schrift Montserrat.
   Grautöne (#1F2633, #4A5363, #F4F6FA) sind ergänzt – bei Bedarf mit der CI-Richtlinie abgleichen. */
#login {
  --ci-900: #27408B; --ci-700: #314FAD; --ci-500: #5270CE; --ci-400: #728AD8; --ci-200: #B4C1EA; --ci-100: #DBE1F5;
  --ci-ink: #1F2633; --ci-grey: #4A5363; --ci-bg: #F4F6FA;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, var(--ci-700) 0%, var(--ci-900) 55%, #1b2d63 100%);
}
#login .login-card { background: #ffffff; color: var(--ci-ink); border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 20, 60, .35); }
#login .logo { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: 4px; -webkit-text-stroke: 0; text-shadow: none; color: var(--ci-900); font-size: clamp(34px, 6vw, 52px); }
#login .logo span { color: var(--ci-500); }
#login .tagline { color: var(--ci-grey); font-weight: 600; }
#login .field > span, #login .vt, #login .clan-section h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--ci-ink); font-size: 14px; }
#login .vt { font-size: 22px; font-weight: 700; color: var(--ci-900); }
#login .field input { font: 500 16px 'Montserrat', sans-serif; background: var(--ci-bg); border: 2px solid var(--ci-200); border-radius: 8px; color: var(--ci-ink); }
#login .field input:focus { outline: none; border-color: var(--ci-700); box-shadow: 0 0 0 3px var(--ci-100); }
#login .btn { font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0; border: 0; border-radius: 8px; box-shadow: none; background: var(--ci-100); color: var(--ci-900); text-shadow: none; }
#login .btn:hover { background: var(--ci-200); }
#login .btn:active { transform: translateY(1px); }
#login .btn-gold { background: var(--ci-900); color: #fff; }
#login .btn-gold:hover { background: var(--ci-700); }
#login .btn-danger { background: #b3261e; color: #fff; }
#login .btn.big { font-size: 17px; padding: 13px 24px; }
#login .tab { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; border: 2px solid var(--ci-100); background: #fff; color: var(--ci-700); border-radius: 8px; }
#login .tab.sel { background: var(--ci-900); border-color: var(--ci-900); color: #fff; }
#login .links a, #login .legal a, #login .check a { color: var(--ci-700); font-weight: 600; }
#login .hint, #login .check { color: var(--ci-grey); }
#login .notice { background: var(--ci-100); color: var(--ci-900); border: 0; border-left: 0; border-radius: 8px; font-weight: 600; }
#login .notice.warn { background: #fde8e6; color: #8c1d18; }
#login .error { color: #b3261e; font-weight: 600; }
#login .pw-meter { background: var(--ci-100); }
#login .clan-section { background: var(--ci-bg); border: 1px solid var(--ci-100); border-radius: 12px; }
#login .class-card { background: #fff; border: 2px solid var(--ci-100); box-shadow: none; border-radius: 12px; color: var(--ci-ink); }
#login .class-card.sel { background: var(--ci-100); outline: 0; border-color: var(--ci-900); }
#login .class-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px; color: var(--ci-900); }
#login .class-card p, #login .class-card .stats { color: var(--ci-grey); }
#login .class-card .avatar, #login .char-card .avatar { border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ci-200); }
#login .char-card { background: var(--ci-bg); border: 1px solid var(--ci-100); border-radius: 12px; }
#login .char-card b { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--ci-900); font-size: 17px; }
#login .char-card .sub { color: var(--ci-grey); }
#login .empty-note { color: var(--ci-grey); }
#login .acc-head { color: var(--ci-grey); }
#login .brand-line { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--ci-grey); letter-spacing: .5px; }
#login .brand-line b { color: var(--ci-900); }

/* ======================================================================
   Design B – „Clean Voxel“ (Pastell) für HUD und Spielfenster.
   Der Login behält die BRIX-CI (eigener #login-Block oben).
   ====================================================================== */
#hud, .modal, #labels, #floaters, .screen:not(#login) {
  --ink: #33405C;
  --panel: rgba(255, 244, 214, 0.94);
  --panel-solid: #FFF4D6;
  --edge: #5B6C8F;
  --text: #33405C;
  --muted: #6E7A96;
  --gold: #FF8C7A;
  --gold-dark: #E86F5D;
  --green: #4FB477;
  --red: #E5566B;
  --rift: #7C9CF0;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
#hud .panel, .modal-card { border-width: 2px; border-radius: 16px; box-shadow: 0 3px 0 rgba(91,108,143,.55), 0 10px 24px rgba(51,64,92,.18); }
#hud .btn, .modal .btn { background: #B8C4F2; color: #33405C; border-width: 2px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }
#hud .btn:hover, .modal .btn:hover { background: #C9D3F7; }
#hud .btn-gold, .modal .btn-gold { background: #FF8C7A; color: #fff; text-shadow: none; }
#hud .btn-gold:hover, .modal .btn-gold:hover { background: #FF9E8E; }
#hud .slot { background: #FFFDF6; border: 2px solid var(--edge); border-radius: 10px; box-shadow: 0 3px 0 rgba(91,108,143,.5); color: var(--text); }
#hud .slot.empty { background: rgba(255,253,246,.55); }
#hud .hpbar { background: #E7E1CF; border: 2px solid var(--edge); border-radius: 10px; }
#hpFill { background: linear-gradient(#8EDB9F, #4FB477) !important; }
#hud .world-name { color: #33405C; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #FFF4D6, 0 0 12px rgba(255,255,255,.8); }
#hud .world-sub, #hud .resonance { color: #5B6C8F; text-shadow: 0 1px 0 #FFF4D6; }
#hud .log div { background: rgba(255,244,214,.88); color: var(--text); border-radius: 10px; }
#hud .chat-input { background: #FFFDF6; color: var(--text); border: 2px solid var(--edge); border-radius: 10px; }
#hud .build-bar .piece { background: #FFFDF6; border: 2px solid var(--edge); border-radius: 10px; color: var(--text); }
#hud .build-bar .piece.sel { background: #A8D8B9; outline: 3px solid #FF8C7A; }
.label .nm { font-family: 'Fredoka', 'Nunito', sans-serif; color: #33405C; background: rgba(255,244,214,.92); border: 2px solid #5B6C8F; border-radius: 8px; text-shadow: none; }
.label.mob .nm { background: #FFE1DB; }
.label .bar { border-radius: 6px; border: 2px solid #5B6C8F; background: #E7E1CF; }
.recipe, .clan-section, .member { background: #FFFDF6; color: var(--text); border-color: rgba(91,108,143,.35); border-radius: 12px; }
.modal-card h2 { color: #33405C; }
kbd { background: #B8C4F2; color: #33405C; border-bottom-color: #5B6C8F; }
/* Textfarbe im HUD erben (body setzt noch die helle Login-Farbe) */
#hud, .modal { color: var(--text); }
#hud .hud-tr, #hud .build-bar { color: var(--text); }
/* Namensschilder der Welt liegen unter den HUD-Panels */
#labels, #floaters { z-index: 0; }
#hud > div:not(#labels):not(#floaters) { z-index: 2; }
