/* ==========================================================================
   Plubbi Penner 3.0 – Stylesheet
   Look: warme Pappkarton-Fenster, dunkles Holz, Comic-Kanten.
   Schriften: Lilita One (Überschriften), Nunito (Text) – beide SIL OFL, lokal eingebunden.
   ========================================================================== */
@font-face { font-family: 'Lilita One'; src: url('../fonts/lilita-one-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #2a1d14;
  --ink-2: #3b2a1c;
  --wood: #4a3322;
  --line: #2b1c12;
  --card: #c9a276;
  --card-2: #b88f63;
  --paper: #f7ecd4;
  --paper-2: #efe0bf;
  --text: #2a1d14;
  --muted: #6d5641;
  --yellow: #f6c21c;
  --yellow-2: #d99a06;
  --teal: #2a9189;
  --teal-2: #1d6c66;
  --red: #d9443a;
  --red-2: #a82c24;
  --green: #3f9d3a;
  --purple: #6d45a8;
  --r-common: #8b8b8b;
  --r-uncommon: #3f9d3a;
  --r-rare: #2f6fd6;
  --r-epic: #9340c7;
  --r-legendary: #e38a0b;
  --radius: 14px;
  --shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .35);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .08 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cardboard: var(--noise), repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, rgba(0, 0, 0, .03) 2px 5px), linear-gradient(180deg, #cfa97c, #bf9867);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 'Nunito', system-ui, sans-serif; color: var(--text); background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: #7a3d0c; font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, .h { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; letter-spacing: .3px; margin: 0 0 .5em; line-height: 1.15; }
h3.h, h4.h { color: var(--ink); }
.h small, h1 small { font-family: 'Nunito', sans-serif; font-size: 13px; color: var(--muted); font-weight: 700; }
p { margin: 0 0 .7em; }
code { background: rgba(0, 0, 0, .08); padding: 1px 5px; border-radius: 4px; font-size: 90%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1 1 auto; }
.nowrap { white-space: nowrap; }
.plus { color: var(--green); font-weight: 800; }
.minus, .bad { color: var(--red); font-weight: 800; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; border-bottom: 1px dashed rgba(0, 0, 0, .15); }

/* Icons */
.ico { width: 28px; height: 28px; object-fit: contain; display: inline-block; vertical-align: middle; }
.ico-xs { width: 14px; height: 14px; object-fit: contain; display: inline-block; vertical-align: -2px; }
.ico-s { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: -4px; }
.ico-l { width: 56px; height: 56px; object-fit: contain; display: inline-block; flex: none; }
.clock { display: inline-block; width: 17px; height: 17px; border: 2.5px solid var(--ink); border-radius: 50%; position: relative; vertical-align: -3px; }
.clock::before, .clock::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2.5px; background: var(--ink); transform-origin: 50% 0; border-radius: 2px; }
.clock::before { height: 5px; transform: translate(-50%, 0) rotate(180deg); }
.clock::after { height: 4px; transform: translate(-50%, 0) rotate(-90deg); }

/* --------------------------------------------------------------- Buttons */
.btn { --b: #efe3c8; --b2: #cdb994; --t: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 400 15px/1 'Lilita One', sans-serif; letter-spacing: .3px;
  color: var(--t); background: linear-gradient(180deg, var(--b), var(--b2)); border: 2.5px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer;
  box-shadow: 0 3px 0 var(--line), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .08s, filter .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn:disabled, .btn[disabled] { filter: grayscale(.8) opacity(.6); cursor: not-allowed; transform: none; }
.btn.yellow { --b: #ffd84a; --b2: #f0ae0a; }
.btn.teal { --b: #37aaa1; --b2: #1f7770; --t: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn.red { --b: #ec5a4e; --b2: #b8322a; --t: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn.ghost { --b: rgba(255, 255, 255, .35); --b2: rgba(255, 255, 255, .15); box-shadow: 0 2px 0 var(--line); }
.btn.sm { font-size: 13px; padding: 6px 10px; border-width: 2px; border-radius: 8px; }
.btn.big { font-size: 18px; padding: 13px 22px; width: 100%; }
.btn small { font: 700 12px 'Nunito', sans-serif; display: inline-flex; align-items: center; gap: 2px; opacity: .9; }
.btn.paypal::before { content: 'PayPal'; font: italic 900 12px 'Nunito', sans-serif; background: #003087; color: #fff; padding: 3px 6px; border-radius: 5px; margin-right: 4px; }
button.link { background: none; border: 0; padding: 0; font: 700 12px 'Nunito', sans-serif; color: #7a3d0c; cursor: pointer; text-decoration: underline; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); background: linear-gradient(#ffd84a, #f0ae0a); font: 400 30px/1 'Lilita One'; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); padding: 0 0 4px; }
form.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }

/* --------------------------------------------------------------- Chips, Flash, Tabellen */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-weight: 800; font-size: 12px; color: var(--ink); white-space: nowrap; }
.chip.ok { background: #cfeec1; border-color: #2d6d29; color: #214f1f; }
.chip.bad { background: #f7c9c3; border-color: var(--red-2); color: var(--red-2); }
.chip.lock { background: #e5d7bd; color: var(--muted); }
.chip.big { font-size: 15px; padding: 8px 14px; }
a.chip:hover { text-decoration: none; filter: brightness(.97); }
.flash { padding: 10px 14px; border-radius: 10px; border: 2.5px solid var(--line); margin: 0 0 12px; font-weight: 700; background: var(--paper); }
.flash-success { background: #d8f1c9; border-color: #2d6d29; }
.flash-error { background: #fbd3cc; border-color: var(--red-2); }
.flash-info { background: #dcecf5; border-color: #2b5f7d; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 12px; font-size: 14px; }
.tbl th { background: var(--ink-2); color: #f5e6c8; font: 400 14px 'Lilita One'; letter-spacing: .3px; text-align: left; padding: 8px 10px; }
.tbl td { padding: 7px 10px; border-top: 1px solid rgba(0, 0, 0, .1); vertical-align: middle; }
.tbl tr:nth-child(even) td { background: rgba(0, 0, 0, .025); }
.tbl tr.me td { background: #fff3c2; }
.tbl tr.dim td { opacity: .6; }
.tbl .tile { width: 46px; height: 46px; }
.tbl.rank .pos { font: 400 18px 'Lilita One'; width: 44px; text-align: center; }
.pos.p1 { color: #d49b00; } .pos.p2 { color: #8a8f99; } .pos.p3 { color: #b0662e; }
.kv { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.kv li { display: contents; }
.kv li > span, .kv dt { color: var(--muted); font-weight: 700; }
.kv li > b, .kv dd { margin: 0; }
dl.kv { display: grid; }
.trend.up { color: var(--green); font-weight: 800; } .trend.down { color: var(--red); font-weight: 800; } .trend.flat { color: var(--muted); font-weight: 800; }
.price { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; }
.r-t-common { color: #6d6d6d; } .r-t-uncommon { color: var(--r-uncommon); } .r-t-rare { color: var(--r-rare); } .r-t-epic { color: var(--r-epic); } .r-t-legendary { color: var(--r-legendary); }
.chip.r-common { border-color: var(--r-common); } .chip.r-uncommon { border-color: var(--r-uncommon); color: var(--r-uncommon); } .chip.r-rare { border-color: var(--r-rare); color: var(--r-rare); } .chip.r-epic { border-color: var(--r-epic); color: var(--r-epic); } .chip.r-legendary { border-color: var(--r-legendary); color: #9c5d00; }
img.r-common, img.r-uncommon, img.r-rare, img.r-epic, img.r-legendary { border-radius: 8px; background: var(--paper); border: 2.5px solid var(--r-common); }
img.r-uncommon { border-color: var(--r-uncommon); } img.r-rare { border-color: var(--r-rare); } img.r-epic { border-color: var(--r-epic); } img.r-legendary { border-color: var(--r-legendary); }
.empty { text-align: center; padding: 24px 10px; color: var(--muted); font-weight: 700; }
.empty .ico-l { margin: 0 auto 8px; opacity: .75; filter: grayscale(.3); }

/* --------------------------------------------------------------- Formulare */
.form { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 13px; color: var(--ink); }
.form h3, .form h4 { margin: 6px 0 0; }
input, select, textarea { font: 600 15px 'Nunito', sans-serif; color: var(--ink); background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; outline: none; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); }
input:focus, select:focus, textarea:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(42, 145, 137, .3); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--teal); }
form.inline input, form.inline select { width: auto; }
.qty-in { width: 64px !important; padding: 6px 8px; }
.qty-in.wide { width: 110px !important; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 600; }
.form label.check input { margin-top: 3px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form.danger { border: 2.5px dashed var(--red-2); padding: 12px; border-radius: 12px; background: rgba(217, 68, 58, .07); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.grid-form .btn.big, .grid-form p { grid-column: 1 / -1; }
.inv-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.inv-tools input[type=search], .inv-tools input:not([type]), .inv-tools input[name=name] { flex: 1 1 180px; width: auto; }
.inv-tools select { width: auto; flex: 0 0 auto; }
.copy { display: flex; gap: 8px; margin: 6px 0; }
.faq details { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; }
.faq summary { font: 400 16px 'Lilita One'; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
details summary { cursor: pointer; font-weight: 800; }
.ava-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ava-opt { position: relative; cursor: pointer; }
.ava-opt input { position: absolute; opacity: 0; }
.ava-opt img { width: 64px; height: 84px; object-fit: contain; background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 3px; }
.ava-opt input:checked + img { border-color: var(--yellow-2); box-shadow: 0 0 0 3px var(--yellow); }

/* --------------------------------------------------------------- Pappkarten (öffentlich) & Fenster */
.card, .window { background: var(--cardboard); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.card { padding: 30px 20px 20px; }
.card-tab { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-1deg); background: var(--paper); border: 3px solid var(--line); border-radius: 8px; padding: 5px 16px 6px; font-size: 19px; white-space: nowrap; box-shadow: 0 3px 0 var(--line); margin: 0; }
.card-tab::before, .card-tab::after { content: ''; position: absolute; top: -9px; width: 38px; height: 16px; background: rgba(240, 230, 200, .85); border: 1px solid rgba(0, 0, 0, .15); }
.card-tab::before { left: -16px; transform: rotate(-24deg); }
.card-tab::after { right: -16px; transform: rotate(24deg); }
.card.narrow { max-width: 460px; margin: 40px auto; }

/* --------------------------------------------------------------- Öffentliche Seiten */
body.public { min-height: 100vh; background: #1b120c; overflow-x: hidden; }
.pub-bg { position: fixed; inset: 0; background: var(--hero) center / cover no-repeat; z-index: -2; }
.pub-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 12, 6, .15), rgba(20, 12, 6, .7)); }
.pub-head { text-align: center; padding: 22px 12px 8px; }
.pub-logo img { max-width: 360px; width: 80%; margin: 0 auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
.claim { display: inline-block; margin: 6px 0 0; color: #fff; font: 400 20px 'Lilita One'; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0, 0, 0, .7); }
.pub-main { max-width: 760px; margin: 0 auto; padding: 22px 14px 40px; }
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 22px; position: relative; }
.pub-hero-l, .pub-hero-r { position: fixed; bottom: 0; height: min(82vh, 640px); width: auto; z-index: -1; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); pointer-events: none; }
.pub-hero-l { left: max(0px, calc(50% - 720px)); animation: sway 6s ease-in-out infinite; }
.pub-hero-r { right: max(0px, calc(50% - 720px)); animation: sway 6s ease-in-out infinite reverse; }
@keyframes sway { 50% { transform: translateY(-6px) rotate(.6deg); } }
.pub-foot { text-align: center; color: #e8d6b5; padding: 16px; font-size: 13px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; background: rgba(20, 12, 6, .7); }
.pub-foot a { color: #ffd84a; }
.carousel { position: relative; border: 3px solid var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.carousel figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s; }
.carousel figure.on { opacity: 1; }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel figcaption { position: absolute; left: 8px; bottom: 8px; background: var(--paper); border: 2px solid var(--line); border-radius: 6px; padding: 2px 8px; font: 400 14px 'Lilita One'; }
.carousel .dots { position: absolute; right: 10px; bottom: 12px; display: flex; gap: 5px; }
.carousel .dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); background: #fff; padding: 0; cursor: pointer; }
.carousel .dots button.on { background: var(--yellow); }
.features { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.features li { display: flex; gap: 10px; align-items: flex-start; background: rgba(247, 236, 212, .8); border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.features li b { display: block; font: 400 15px 'Lilita One'; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stat-row div { background: var(--ink-2); color: #fff; border-radius: 10px; padding: 6px 2px; border: 2px solid var(--line); }
.stat-row b { display: block; font: 400 20px 'Lilita One'; color: var(--yellow); }
.stat-row small { font-size: 11px; font-weight: 700; }
.ava-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ava-stage { position: relative; height: 190px; flex: 1; }
.ava-stage img { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; object-fit: contain; opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.ava-stage img.on { opacity: 1; transform: none; }
.news { background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.news h3 { font-size: 17px; margin: 0 0 2px; }
.news time { font-size: 12px; font-weight: 800; color: var(--muted); display: block; margin-bottom: 4px; }
.news p { margin: 0; font-size: 14px; }
.note { background: #fff3c2; border: 2px dashed var(--yellow-2); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.legal { max-width: 800px; margin: 20px auto; }
.legal h2 { margin-top: 1em; }
.legal .legal-body { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 16px 20px; }

/* ==========================================================================
   Spieloberfläche
   ========================================================================== */
body.game { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: 1fr 250px; grid-template-rows: 64px 1fr 76px; grid-template-areas: 'hud hud' 'stage side' 'dock side';
  background: #1a110b; }

/* HUD */
.hud { grid-area: hud; position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #f5e6c8; z-index: 30; min-width: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 38px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 7px), linear-gradient(180deg, #4a3322 0%, #33231a 55%, #21160e 100%);
  border-bottom: 3px solid #120b06; box-shadow: inset 0 1px 0 rgba(255, 220, 160, .18), 0 3px 0 #0b0703, 0 6px 14px rgba(0, 0, 0, .45); }
.hud::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: linear-gradient(90deg, transparent, #c9962e 12%, #f6d06a 50%, #c9962e 88%, transparent); opacity: .85; pointer-events: none; }
.hud-char { display: flex; align-items: center; gap: 10px; color: #f5e6c8; min-width: 0; text-decoration: none !important; padding: 3px 12px 3px 3px; border-radius: 99px; transition: background .2s; }
.hud-char:hover { background: rgba(255, 255, 255, .06); }
.hud-ava { position: relative; width: 50px; height: 50px; border-radius: 50%; flex: none; padding: 3px;
  background: conic-gradient(#5ec8ff calc(var(--xp, 0) * 1%), rgba(0, 0, 0, .55) 0); box-shadow: 0 0 0 2px #0e0804, 0 2px 6px rgba(0, 0, 0, .5); transition: background .6s; }
.hud-ava-in { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fbe7bd, #b98c55 75%); border: 2px solid #0e0804; }
.hud-ava-in img { width: 100%; height: 160%; object-fit: cover; object-position: top; }
.hud-ava .lvl { position: absolute; right: -5px; bottom: -4px; background: linear-gradient(#ffe27a, #f2b61a); color: var(--ink); border: 2px solid #120b06; border-radius: 8px; min-width: 24px; height: 20px; padding: 0 3px; font: 400 13px/16px 'Lilita One'; text-align: center; box-shadow: 0 2px 0 #0e0804; transform: rotate(-6deg); }
.hud-name { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.hud-name b { font: 400 18px 'Lilita One'; letter-spacing: .2px; text-shadow: 0 2px 0 #0e0804; display: flex; align-items: center; gap: 6px; }
.hud-vip { font: 400 10px/1 'Lilita One'; font-style: normal; color: #3a2400; background: linear-gradient(#ffe27a, #e9a90f); border: 1.5px solid #0e0804; border-radius: 5px; padding: 2px 4px; text-shadow: none; }
.hud-name em { font-style: normal; color: #f6c955; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xpbar { display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.bar { position: relative; height: 16px; background: linear-gradient(#0f0905, #24170e); border: 2px solid #0e0804; border-radius: 99px; overflow: hidden; min-width: 60px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #ffe066, #e0a800); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.bar > i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 2px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .45); }
.bar > span { position: relative; display: block; text-align: center; font: 800 11px/12px 'Nunito'; color: #fff; text-shadow: 0 1px 1px #000, 0 0 3px #000; padding: 0 6px; white-space: nowrap; }
.bar.xp { width: 150px; height: 13px; } .bar.xp > span { font-size: 10px; line-height: 9px; } .bar.xp > i { background: linear-gradient(180deg, #8fdcff, #2c86c9); }
.bar.en { width: 118px; } .bar.en > i { background: linear-gradient(180deg, #ffe066, #e0a800); }
.bar.hpb > i { background: linear-gradient(180deg, #ff8a7c, #c7332a); }
.bar.thin { height: 7px; border-width: 1.5px; min-width: 0; background: rgba(0, 0, 0, .2); border-color: rgba(0, 0, 0, .35); box-shadow: none; } .bar.thin > i { background: linear-gradient(90deg, var(--teal), #4cc3b6); box-shadow: none; } .bar.thin > i::after { display: none; } .bar.thin > span { display: none; }
.hud-res { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud-pill { position: relative; display: flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 8px 0 24px; margin-left: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .3)); border: 2px solid #0e0804; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 220, 160, .12), 0 1px 0 rgba(255, 220, 160, .08); }
.hp-ico { position: absolute; left: -18px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #fff3d6, #d9b77c 70%); border: 2.5px solid #0e0804; box-shadow: 0 2px 0 #0e0804; }
.hp-ico .ico { width: 26px; height: 26px; }
.hud-pill.energy .hp-ico { background: radial-gradient(circle at 40% 30%, #fff6c9, #f3c63f 75%); }
.hud-pill.hp .hp-ico { background: radial-gradient(circle at 40% 30%, #ffe1dc, #f07a6c 75%); }
.hud-pill.prem .hp-ico { background: radial-gradient(circle at 40% 30%, #fff3c4, #e7a92a 75%); }
.hud-pill.resp .hp-ico { background: radial-gradient(circle at 40% 30%, #f3e2d0, #b58a62 75%); }
.hp-body { display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1; }
.hud-pill .cap { font: 800 9.5px/1 'Nunito'; letter-spacing: .6px; text-transform: uppercase; color: #cdb58a; white-space: nowrap; }
.hud-pill .cap span { color: #9fe38f; text-transform: none; letter-spacing: 0; margin-left: 3px; }
.hud-pill b { font: 400 17px/1 'Lilita One'; color: #fff; min-width: 24px; text-shadow: 0 2px 0 #0e0804; }
.hud-pill.coins b { color: #ffe27a; }
.hud-pill.prem b { color: #ffd166; }
.hud-pill small { font-size: 11px; color: #d9c7a4; font-weight: 700; white-space: nowrap; }
.hud-pill.hp .bar { width: 96px; }
.hud-pill.prem.active { border-color: #7a5a10; box-shadow: 0 0 0 2px rgba(246, 194, 28, .7), 0 0 14px rgba(246, 194, 28, .45); }
.hud-pill.energy.over .bar.en > i { background: linear-gradient(180deg, #fff6a8, #ffb300); animation: overglow 1.6s ease-in-out infinite; }
.hud-pill.energy.over .bar.en { box-shadow: 0 0 10px rgba(255, 210, 60, .7), inset 0 2px 3px rgba(0, 0, 0, .6); }
@keyframes overglow { 50% { filter: brightness(1.25); } }
.plus { text-decoration: none !important; }
.hud-pill .plus { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(#6fd46b, #2e8a2c); border: 2px solid #0e0804; color: #fff; font: 400 17px/16px 'Lilita One'; display: grid; place-items: center; box-shadow: 0 2px 0 #0e0804; transition: transform .15s; }
.hud-pill .plus:hover { transform: translateY(-1px) scale(1.08); }
.hud-right { margin-left: auto; display: flex; gap: 7px; }
.hud-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(#f6ead0, #cfb88c); border: 2.5px solid #0e0804; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 3px 0 #0e0804; transition: transform .12s, box-shadow .12s; }
.hud-btn:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 5px 0 #0e0804; }
.hud-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 1px 0 #0e0804; }
.hud-btn .ico { width: 25px; height: 25px; }
.hud-btn .badge { position: absolute; top: -7px; right: -7px; background: linear-gradient(#ff6a55, #d0301f); color: #fff; border: 2px solid #0e0804; border-radius: 99px; font: 400 11px/14px 'Lilita One'; padding: 0 5px; animation: pulse 1.8s ease-in-out infinite; }
.mute-x { position: absolute; inset: 6px; }
.mute-x::before { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 3px; background: var(--red); transform: rotate(45deg); border-radius: 2px; }
.side-menu { position: fixed; top: 70px; right: 262px; z-index: 60; background: var(--cardboard); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; min-width: 220px; }
.side-menu a, .side-menu button { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font: 400 15px 'Lilita One'; text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.side-menu a:hover, .side-menu button:hover { background: rgba(255, 255, 255, .35); text-decoration: none; }
.side-menu form { margin: 4px 0 0; border-top: 2px dashed rgba(0, 0, 0, .2); padding-top: 4px; }

/* Bühne & Szene */
.stage { grid-area: stage; position: relative; overflow: hidden; min-height: 0; }
.scene-wrap, .scene { position: absolute; inset: 0; }
.scene { background: #2d2015 center / cover no-repeat; }
.scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(15, 8, 3, .45)); }
.area-title { position: absolute; left: 14px; top: 10px; z-index: 3; max-width: 360px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, .8); pointer-events: none; }
.area-title h1 { font-size: 30px; color: var(--yellow); margin: 0; -webkit-text-stroke: 1px #3a2412; }
.area-title p { font-weight: 700; font-size: 13.5px; margin: 2px 0 0; }
.hs { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; text-decoration: none !important; font-family: inherit; }
.hs b { font: 800 12px 'Nunito'; text-shadow: 0 1px 0 #000, 0 0 4px #000, 0 0 2px #000; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.hs em { font-style: normal; font-size: 11px; font-weight: 800; background: rgba(20, 12, 6, .75); border-radius: 99px; padding: 0 7px; display: inline-flex; align-items: center; gap: 2px; color: var(--yellow); }
.hs em.role { color: #ffe39a; }
.hs-ico, .hs-por, .hs-sq { display: grid; place-items: center; background: rgba(247, 236, 212, .92); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line), 0 6px 14px rgba(0, 0, 0, .45); transition: transform .15s; position: relative; }
.hs-ico { width: 46px; height: 46px; border-radius: 50%; }
.hs-ico img { width: 34px; height: 34px; object-fit: contain; }
.hs-por { width: 52px; height: 52px; border-radius: 50%; overflow: visible; }
.hs-por img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; }
.hs-sq { width: 48px; height: 48px; border-radius: 10px; }
.hs-sq img { width: 40px; height: 40px; object-fit: contain; }
.hs:hover .hs-ico, .hs:hover .hs-por, .hs:hover .hs-sq { transform: translateY(-4px) scale(1.08); }
.hs.act .hs-ico { animation: bob 2.8s ease-in-out infinite; }
.hs.act:nth-of-type(2n) .hs-ico { animation-delay: -1.3s; }
.hs.busy { pointer-events: none; opacity: .6; }
.hs.cool .hs-ico { filter: grayscale(1); opacity: .7; }
.hs.npc.t-enemy .hs-por { border-color: #7a1712; background: #f6c9c2; }
.hs.npc.t-trader .hs-por, .hs.npc.t-petdealer .hs-por { border-color: #1d6c66; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.qmark { position: absolute; top: -14px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--line); font: 400 17px/19px 'Lilita One'; font-style: normal; text-align: center; animation: pulse 1.4s ease-in-out infinite; }
.qmark.ready { background: #6fd46b; }
@keyframes pulse { 50% { transform: scale(1.18); } }
.player-fig { position: absolute; z-index: 3; transform: translate(-50%, -100%) scale(var(--d, 1)); transform-origin: bottom center; display: flex; flex-direction: column; align-items: center; pointer-events: none; will-change: left, top; }
.pf-body { display: block; transform-origin: bottom center; }
.pf-body img { display: block; height: 150px; width: auto; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .55)); animation: idle 3.6s ease-in-out infinite; transform-origin: bottom center; transition: transform .2s; }
.player-fig.flip .pf-body img { transform: scaleX(-1); }
.pf-shadow { position: absolute; bottom: 18px; left: 50%; width: 70px; height: 14px; margin-left: -35px; background: radial-gradient(rgba(0, 0, 0, .45), transparent 70%); border-radius: 50%; }
.pf-pet { position: absolute; bottom: 20px; right: -44px; width: 54px; transition: right .3s; }
.pf-pet img { width: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); animation: bob 1.8s ease-in-out infinite; }
.player-fig.flip .pf-pet { right: auto; left: -44px; }
.player-fig.flip .pf-pet img { transform: scaleX(-1); }
.player-fig b { position: relative; font: 800 12px 'Nunito'; color: #fff; background: rgba(20, 12, 6, .8); border-radius: 99px; padding: 1px 9px 1px 3px; margin-top: -4px; display: flex; gap: 5px; align-items: center; }
.player-fig b i { font-style: normal; background: var(--yellow); color: var(--ink); border-radius: 50%; min-width: 18px; text-align: center; font: 400 11px/18px 'Lilita One'; }
@keyframes idle { 50% { transform: scaleY(.985) translateY(1px); } }
.player-fig.walking .pf-body { animation: pfwalk .38s ease-in-out infinite; }
.player-fig.walking .pf-body img { animation: none; }
.player-fig.walking .pf-pet img { animation: bob .3s ease-in-out infinite; }
.player-fig.walking .pf-shadow { animation: pfshadow .38s ease-in-out infinite; }
@keyframes pfwalk { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(-7px) rotate(2.5deg); } }
@keyframes pfshadow { 50% { transform: scale(.8); opacity: .7; } }
.player-fig.arrive .pf-body { animation: pfarrive .4s ease-out; }
@keyframes pfarrive { 30% { transform: scaleY(.93) scaleX(1.04); } 70% { transform: scaleY(1.03); } }
.player-fig.working .pf-body { animation: pfwork .3s ease-in-out 3; }
@keyframes pfwork { 50% { transform: rotate(-7deg) translateY(4px); } }
.pf-dust { position: absolute; z-index: 2; width: 18px; height: 10px; margin: -6px 0 0 -9px; background: radial-gradient(rgba(235, 215, 180, .8), transparent 70%); border-radius: 50%; pointer-events: none; animation: pfdust .65s ease-out forwards; }
@keyframes pfdust { to { transform: translateY(-10px) scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .player-fig.walking .pf-body, .player-fig.working .pf-body, .pf-dust { animation: none; } }
.event-pill { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; background: linear-gradient(#7c53bd, #53308d); color: #fff; border: 2.5px solid #1e0e36; border-radius: 99px; padding: 3px 14px 3px 4px; font-size: 13px; box-shadow: 0 3px 0 #1e0e36; white-space: nowrap; text-decoration: none !important; }
.event-pill b { font: 400 15px 'Lilita One'; }
.event-pill small { color: #e3d5ff; }
.ev-ico { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #1e0e36; }

/* Minimap */
.minimap { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 160px; background: var(--cardboard); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.mm-map { position: relative; height: 110px; background: #7fa982 linear-gradient(135deg, #8bb68d, #5f8c66); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-svg line { stroke: #f0e6cc; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-width: 2.5px; }
.mm-dot { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); border-radius: 50%; background: #52606b; border: 2px solid #1c252b; }
.mm-dot.near { background: var(--teal); }
.mm-dot.cur { background: var(--yellow); width: 15px; height: 15px; box-shadow: 0 0 0 3px rgba(255, 216, 74, .45); animation: pulse 1.6s infinite; }
.mm-dot.locked { background: #b64a3e; }
.mm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font: 400 14px 'Lilita One'; padding: 0 2px; }
.mm-plus { width: 22px; height: 22px; background: var(--yellow); border: 2px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--ink); font: 400 16px/1 'Lilita One'; text-decoration: none !important; }

/* Fenster */
.win-layer { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.win-shade { position: absolute; inset: 0; background: rgba(15, 8, 3, .35); backdrop-filter: blur(1px); }
.win-host { position: relative; width: min(860px, 100%); max-height: 100%; display: flex; }
.window { width: 100%; display: flex; flex-direction: column; max-height: calc(100dvh - 58px - 76px - 32px); animation: winIn .22s cubic-bezier(.2, 1.3, .4, 1); }
.window.wide { max-width: none; }
@keyframes winIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.win-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 12px; flex: none; }
.win-tab { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 3px solid var(--line); border-radius: 10px; padding: 5px 16px 5px 8px; font-size: 24px; margin: 0; box-shadow: 0 3px 0 var(--line); transform: rotate(-.6deg); }
.win-tab .ico { width: 30px; height: 30px; }
.win-close { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff7a6e, #c7332a); border: 3px solid var(--line); color: #fff; display: grid; place-items: center; font: 400 22px/1 'Lilita One'; box-shadow: 0 3px 0 var(--line); text-decoration: none !important; }
.win-close:hover { filter: brightness(1.1); }
.win-body { padding: 14px 16px 16px; overflow: auto; flex: 1 1 auto; min-height: 120px; scrollbar-width: thin; scrollbar-color: #7b5a3a transparent; }
.win-body > .loading { text-align: center; padding: 40px; font: 400 18px 'Lilita One'; color: var(--ink-2); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 12px; border-bottom: 3px solid var(--line); }
.tabs a { padding: 6px 14px 4px; background: rgba(247, 236, 212, .55); border: 2.5px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--ink); font: 400 15px 'Lilita One'; margin-bottom: -1px; text-decoration: none !important; }
.tabs a.on { background: var(--paper); padding-bottom: 7px; margin-bottom: -3px; }

/* Seitenleiste */
.sidebar { grid-area: side; background: #22170f; border-left: 3px solid #120b06; display: flex; flex-direction: column; gap: 8px; padding: 8px; min-height: 0; overflow: hidden; z-index: 25; }
.panel { background: var(--cardboard); border: 3px solid var(--line); border-radius: 12px; padding: 8px 10px; flex: none; }
.panel h3 { display: flex; align-items: center; gap: 6px; font-size: 16px; margin: 0 0 6px; }
.panel h3 > a { margin-left: auto; font: 800 12px 'Nunito'; }
.mission { display: block; padding: 4px 0 6px; color: var(--ink); text-decoration: none !important; border-bottom: 1px dashed rgba(0, 0, 0, .18); }
.mission:last-child { border-bottom: 0; }
.m-top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.m-top b { font-weight: 900; }
.mission small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; margin-bottom: 3px; }
.mission.done .m-top b::after { content: ' – abholen'; color: var(--green); }
.mission.done { animation: glowGreen 1.8s ease-in-out infinite; border-radius: 6px; }
@keyframes glowGreen { 50% { background: rgba(63, 157, 58, .15); } }
.panel .muted { font-size: 13px; margin: 0; }
.timer { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--ink); padding: 3px 0; text-decoration: none !important; }
.timer b { font-variant-numeric: tabular-nums; color: var(--teal-2); }
.panel.chat { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 180px; }
.chat-tabs { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.chat-tabs button { font: 800 10px 'Nunito'; padding: 2px 5px; border-radius: 99px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.chat-tabs button.on { background: var(--yellow); }
.chat-tabs button.new::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 3px; vertical-align: 1px; }
.chat-log { flex: 1 1 auto; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 2px 6px; scrollbar-width: thin; }
.chat-msg { display: grid; grid-template-columns: 24px 1fr; gap: 0 6px; font-size: 13px; position: relative; }
.chat-msg img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--paper); border: 1.5px solid var(--line); grid-row: span 2; }
.chat-msg .who { font-weight: 900; color: #8a3a06; cursor: pointer; }
.chat-msg .who.mod { color: var(--teal-2); } .chat-msg .who.admin { color: var(--red-2); }
.chat-msg .who small { font-weight: 700; color: var(--muted); margin-left: 4px; font-size: 10.5px; }
.chat-msg .txt { word-break: break-word; line-height: 1.3; }
.chat-msg .to { font-size: 11px; color: var(--purple); font-weight: 800; }
.chat-msg .cm-act { position: absolute; right: 0; top: -2px; display: none; gap: 2px; }
.chat-msg:hover .cm-act { display: flex; }
.cm-act button { font: 800 10px 'Nunito'; border: 1.5px solid var(--line); background: var(--paper); border-radius: 5px; padding: 0 4px; cursor: pointer; }
.chat-sys { font-size: 12px; color: var(--muted); text-align: center; font-weight: 700; }
.chat-form { display: flex; gap: 6px; margin-top: 4px; }
.chat-form input { padding: 7px 9px; font-size: 13px; }
.chat-form .btn { padding: 7px 10px; font-size: 13px; }
.sb-toggle { display: none; }

/* Dock */
.dock { grid-area: dock; display: flex; gap: 6px; align-items: center; padding: 6px 10px; background: linear-gradient(180deg, #2b1d13, #1a110b); border-top: 3px solid #120b06; overflow-x: auto; scrollbar-width: none; z-index: 25; }
.dock::-webkit-scrollbar { display: none; }
.dock a { flex: 1 1 64px; min-width: 58px; max-width: 78px; height: 60px; border-radius: 10px; background: linear-gradient(180deg, #f3e5c7, #cdb68b); border: 2.5px solid #0e0804; box-shadow: 0 3px 0 #0e0804; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink); text-decoration: none !important; transition: transform .1s; }
.dock a .ico { width: 32px; height: 32px; transition: transform .15s; }
.dock a span { font: 800 10.5px 'Nunito'; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
.dock a:hover { transform: translateY(-3px); }
.dock a:hover .ico { transform: scale(1.12) rotate(-4deg); }
.dock a.on { background: linear-gradient(180deg, #ffd84a, #f0ae0a); }

/* --------------------------------------------------------------- Kacheln & Inventar */
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; align-content: start; }
.grid-tiles.sm { grid-template-columns: repeat(auto-fill, 50px); }
.grid-tiles.sm .tile { width: 50px; height: 50px; }
.tile { --rc: var(--r-common); position: relative; width: 100%; aspect-ratio: 1; min-width: 50px; background: linear-gradient(#fbf3e1, #eadbb9); border: 3px solid var(--line); border-radius: 10px; padding: 6px; cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 2.5px var(--rc), 0 3px 0 var(--line); transition: transform .12s; font: inherit; color: var(--ink); }
.tile:hover { transform: translateY(-2px); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25)); }
.tile.r-uncommon { --rc: var(--r-uncommon); } .tile.r-rare { --rc: var(--r-rare); } .tile.r-epic { --rc: var(--r-epic); } .tile.r-legendary { --rc: var(--r-legendary); }
.tile.r-legendary::after { content: ''; position: absolute; inset: 0; border-radius: 7px; background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 150, .55) 50%, transparent 65%) 0 0 / 250% 100%; animation: shine 3s linear infinite; pointer-events: none; }
.tile.r-epic::after { content: ''; position: absolute; inset: 0; border-radius: 7px; box-shadow: inset 0 0 12px rgba(147, 64, 199, .35); pointer-events: none; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.tile.sel { transform: translateY(-2px); box-shadow: inset 0 0 0 2.5px var(--rc), 0 0 0 3px var(--yellow), 0 3px 0 var(--line); }
.tile .qty { position: absolute; right: -5px; bottom: -5px; background: var(--ink); color: #fff; border: 2px solid #f5e6c8; border-radius: 99px; font: 400 11px/15px 'Lilita One'; min-width: 20px; padding: 0 4px; text-align: center; }
.tile .eq { position: absolute; left: 2px; top: 1px; background: var(--r-uncommon); color: #fff; border-radius: 4px; font: 400 10px/13px 'Lilita One'; padding: 0 3px; }
.tile small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; white-space: nowrap; font-weight: 800; }
.tile.empty { cursor: default; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; background: rgba(247, 236, 212, .45); border-style: dashed; box-shadow: none; }
.tile.hide { display: none; }
.inv-layout { display: grid; grid-template-columns: 1fr 240px; gap: 12px; align-items: start; }
.detail { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: 0; }
.detail .d-img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
.detail h3 { margin: 0 0 4px; font-size: 19px; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail .acts form.inline, .detail .acts .btn { width: 100%; }
.detail .acts form.inline .btn { flex: 1; }
.area-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); margin-bottom: 8px; }

/* Charakter */
.char-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.char-fig { display: grid; grid-template-columns: 64px 1fr 64px; gap: 6px; background: radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, .35), transparent 65%); align-items: center; }
.eq-col { display: flex; flex-direction: column; gap: 10px; }
.eq-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eq-slot .tile { width: 60px; height: 60px; min-width: 0; }
.fig { position: relative; display: grid; place-items: end center; }
.fig > img { height: 260px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)); }
.fig-pet { position: absolute; right: -8px; bottom: 0; width: 70px; }
.fig-pet img { width: 100%; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .4)); animation: bob 2s ease-in-out infinite; }
.attrs { width: 100%; border-collapse: collapse; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.attrs th, .attrs td { padding: 5px 8px; border-bottom: 1px solid rgba(0, 0, 0, .1); text-align: left; }
.attrs th { font: 400 15px 'Lilita One'; width: 110px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-bottom: 12px; }
.stat-grid > div { background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.stat-grid b { display: block; font: 400 18px 'Lilita One'; }
.stat-grid small { color: var(--muted); font-weight: 700; font-size: 11.5px; }

/* Werkbank */
.craft-top { margin-bottom: 12px; }
.craft-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 6px; }
.craft-slot { background: rgba(247, 236, 212, .6); border: 2.5px dashed var(--line); border-radius: 12px; padding: 8px; min-height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: 13px; }
.craft-slot.busy { background: var(--paper); border-style: solid; }
.craft-slot .tile { width: 44px; height: 44px; }
.craft-progress { height: 10px; background: rgba(0, 0, 0, .15); border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.craft-progress i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--teal) 0 8px, #3fb5ab 8px 16px); animation: stripes 1s linear infinite; background-size: 22px 22px; }
@keyframes stripes { to { background-position: 22px 0; } }
.craft-layout { display: grid; grid-template-columns: 260px 1fr; gap: 12px; align-items: start; }
.recipe-list { display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.recipe { display: flex; align-items: center; gap: 8px; background: rgba(247, 236, 212, .7); border: 2px solid var(--line); border-radius: 10px; padding: 5px 8px; color: var(--ink); text-decoration: none !important; }
.recipe img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.recipe b { display: block; font-size: 13.5px; }
.recipe small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.recipe.can { border-color: #2d6d29; background: #e6f5d9; }
.recipe.locked { opacity: .55; }
.recipe.on { box-shadow: 0 0 0 3px var(--yellow); }
.recipe-detail { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 12px; }
.rd-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.rd-head > .tile { width: 80px; height: 80px; flex: none; }
.mats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.mat { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; text-align: center; }
.mat .tile { width: 56px; height: 56px; }
.mat b { font-size: 12.5px; }
.mat.ok b { color: var(--green); } .mat.miss b { color: var(--red); }
.mat small { font-size: 10.5px; line-height: 1.1; color: var(--muted); font-weight: 700; }
.mats .arrow { font: 400 28px 'Lilita One'; color: var(--ink-2); }

/* Kampf */
.my-combat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.enemy-list { display: flex; flex-direction: column; gap: 8px; }
.enemy { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 10px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.enemy > img, .enemy .e-img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; border: 2.5px solid var(--line); background: #f3d2c8; }
.enemy b { font: 400 16px 'Lilita One'; }
.enemy small { display: block; }
.enemy.d-boss { background: linear-gradient(90deg, #ffe1d6, var(--paper)); border-color: #7a1712; }
.enemy.d-elite { background: linear-gradient(90deg, #efe0ff, var(--paper)); }
.e-rew { font-size: 12.5px; font-weight: 800; text-align: right; }
.chance { font-weight: 900; }
.chance.good { color: var(--green); } .chance.mid { color: #b27a00; } .chance.bad { color: var(--red); }
.diff { font: 400 16px 'Lilita One'; }
.diff.d-easy { color: var(--green); } .diff.d-normal { color: #b27a00; } .diff.d-hard { color: #d45f12; } .diff.d-elite { color: var(--purple); } .diff.d-boss { color: var(--red); }
.arena { position: relative; height: 290px; border: 3px solid var(--line); border-radius: 12px; background: center / cover; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 30px 0; }
.arena::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); }
.fighter { position: relative; display: flex; flex-direction: column; align-items: center; width: 40%; z-index: 1; }
.fighter .f-img { height: 190px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .5)); transition: transform .15s; }
.fighter.right .f-img { transform: scaleX(-1); }
.f-bar { width: 100%; max-width: 220px; background: rgba(247, 236, 212, .95); border: 2.5px solid var(--line); border-radius: 10px; padding: 4px 8px; margin-bottom: 6px; }
.f-bar b { font: 400 14px 'Lilita One'; display: block; }
.f-bar .bar { width: 100%; }
.fighter.hit .f-img { animation: hit .35s; }
.fighter.right.hit .f-img { animation: hitR .35s; }
.fighter.atk .f-img { animation: atk .35s; }
.fighter.right.atk .f-img { animation: atkR .35s; }
@keyframes hit { 30% { transform: translateX(-12px) rotate(-6deg); filter: drop-shadow(0 0 10px red) brightness(1.4); } }
@keyframes hitR { 30% { transform: scaleX(-1) translateX(-12px) rotate(-6deg); filter: drop-shadow(0 0 10px red) brightness(1.4); } }
@keyframes atk { 40% { transform: translateX(40px) scale(1.05); } }
@keyframes atkR { 0% { transform: scaleX(-1); } 40% { transform: scaleX(-1) translateX(40px) scale(1.05); } 100% { transform: scaleX(-1); } }
.vs { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 400 46px 'Lilita One'; color: var(--yellow); -webkit-text-stroke: 2px var(--line); text-shadow: 0 4px 0 var(--line); z-index: 1; }
.dmg { position: absolute; z-index: 5; font: 400 26px 'Lilita One'; color: #fff; -webkit-text-stroke: 1.5px #7a1712; pointer-events: none; animation: floatUp 1s ease-out forwards; }
.dmg.crit { color: var(--yellow); font-size: 34px; }
.dmg.miss { color: #cfe8ff; -webkit-text-stroke-color: #1f4f7a; font-size: 20px; }
.battle-result { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 8, 3, .55); color: #fff; animation: winIn .3s; }
.battle-result h3 { font-size: 54px; margin: 0; -webkit-text-stroke: 2px var(--line); text-shadow: 0 5px 0 var(--line); }
.battle-result h3.win { color: var(--yellow); } .battle-result h3.lose { color: #ff7c6e; }
.battle-result p { font-weight: 800; background: rgba(0, 0, 0, .45); padding: 4px 12px; border-radius: 99px; }
.battle-log { max-height: 140px; overflow-y: auto; background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 10px 0; font-size: 13px; }
.battle-log p { margin: 0; padding: 2px 0; border-bottom: 1px dashed rgba(0, 0, 0, .12); }
.pvp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; color: var(--ink); text-decoration: none !important; }
a.pvp-row:hover { background: #fff8e4; }
.mini-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--paper-2); border: 2px solid var(--line); flex: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9b8b78; }
.dot.on { background: #3fcf55; box-shadow: 0 0 0 2px rgba(63, 207, 85, .3); }

/* Stadt */
.city-layout { display: grid; grid-template-columns: 1fr 250px; gap: 12px; }
.city-map { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #9dc39a, #6b9a6e); border: 3px solid var(--line); border-radius: 12px; overflow: hidden; }
.city-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-map svg line { stroke: #f3e6c6; stroke-width: 5px; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2 9; }
.city-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none !important; z-index: 1; }
.city-node span { width: 46px; height: 46px; border-radius: 50%; background: center / cover; border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); transition: transform .15s; }
.city-node b { font-size: 11px; text-shadow: 0 1px 0 #000, 0 0 3px #000; white-space: nowrap; margin-top: 1px; }
.city-node:hover span { transform: scale(1.12); }
.city-node.cur span { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(246, 194, 28, .6); }
.city-node.sel span { box-shadow: 0 0 0 4px #fff; }
.city-node.near span { border-color: var(--teal); }
.city-node.locked span { filter: grayscale(1) brightness(.7); }

/* NPC */
.npc-layout { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.npc-por { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.npc-por img { width: 190px; height: 190px; object-fit: cover; object-position: top; border-radius: 16px; border: 3px solid var(--line); background: var(--paper); box-shadow: 0 4px 0 var(--line); }
.speech { position: relative; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 10px 14px; margin: 0 0 12px 10px; font-weight: 700; font-size: 15px; }
.speech::before { content: ''; position: absolute; left: -15px; top: 18px; border: 8px solid transparent; border-right: 12px solid var(--line); }
.speech::after { content: ''; position: absolute; left: -9px; top: 20px; border: 6px solid transparent; border-right: 9px solid #fff; }
.speech p { margin: 0; }
.vs-card { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vs-card > div { background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 90px; }
.vs-card b { display: block; font: 400 18px 'Lilita One'; }
.vs-card small { font-weight: 700; color: var(--muted); font-size: 11.5px; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 12px; }
.train { background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }

/* Missionen */
.quest-list { display: flex; flex-direction: column; gap: 8px; }
.quest-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.npc-layout .quest-card { grid-template-columns: 1fr auto; }
.quest-card p { margin: 3px 0; font-size: 13.5px; }
.quest-card.main { border-left: 8px solid var(--yellow-2); }
.quest-card.daily { border-left: 8px solid var(--teal); }
.quest-card.weekly { border-left: 8px solid var(--purple); }
.quest-card.event { border-left: 8px solid #d4388f; }
.quest-card.guild { border-left: 8px solid var(--r-rare); }
.quest-card.completed { background: #e6f5d9; animation: glowGreen 1.8s infinite; }
.quest-card.claimed { opacity: .65; }
.q-por { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--line); background: var(--paper-2); display: grid; place-items: center; }
.q-por img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.q-por .ico { width: 34px; height: 34px; }
.qa { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 120px; }
.qa .bar { width: 120px; background: rgba(0, 0, 0, .15); border-color: var(--line); }
.qa .bar > span { color: #fff; }
.rew { color: #7a4a0c; font-weight: 800; font-size: 12.5px; }

/* Läden, Markt, Aktionshaus */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shop-card { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; gap: 4px; transition: transform .12s; box-shadow: 0 3px 0 var(--line); }
.shop-card:hover { transform: translateY(-3px); }
.shop-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.shop-card b { font: 400 16px 'Lilita One'; }
.shop-card small { color: var(--muted); font-weight: 700; font-size: 12px; }
.shop-card.here { box-shadow: 0 0 0 3px var(--teal), 0 3px 0 var(--line); }
.shop-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.shop-img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 2.5px solid var(--line); flex: none; }
.ware-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.ware { --rc: var(--line); position: relative; background: var(--paper); border: 2.5px solid var(--line); border-top: 6px solid var(--rc); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; }
.ware.r-uncommon { --rc: var(--r-uncommon); } .ware.r-rare { --rc: var(--r-rare); } .ware.r-epic { --rc: var(--r-epic); } .ware.r-legendary { --rc: var(--r-legendary); } .ware.r-common { --rc: var(--r-common); }
.ware > img, .ware .tile { width: 70px; height: 70px; object-fit: contain; }
.ware b { font: 400 15px 'Lilita One'; }
.ware small { font-size: 11.5px; }
.ware.locked { opacity: .6; }
.ware-buy { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding-top: 4px; }
.ware-grid.prem .ware { padding: 14px 10px; }
.prem-pack .eur { font: 400 24px 'Lilita One'; color: var(--ink); }
.ribbon { position: absolute; top: 8px; right: -6px; background: var(--red); color: #fff; font: 400 12px 'Lilita One'; padding: 2px 10px; border-radius: 4px 0 0 4px; box-shadow: 0 2px 0 var(--red-2); }
.prem-head, .guild-head, .guild-intro, .bonus-box, .ref-box, .biz-intro { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.bonus-box .form { flex: 1; margin: 0; }
.code-in { text-transform: uppercase; font: 400 22px 'Lilita One'; letter-spacing: 2px; text-align: center; }
.auction-list { display: flex; flex-direction: column; gap: 6px; }
.auction { --rc: var(--line); display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-left: 7px solid var(--rc); border-radius: 12px; padding: 6px 10px; }
.auction.r-uncommon { --rc: var(--r-uncommon); } .auction.r-rare { --rc: var(--r-rare); } .auction.r-epic { --rc: var(--r-epic); } .auction.r-legendary { --rc: var(--r-legendary); } .auction.r-common { --rc: var(--r-common); }
.auction .tile { width: 54px; height: 54px; }
.au-info b { font: 400 15px 'Lilita One'; display: block; }
.au-info small { display: block; font-size: 12px; }
.au-price { text-align: right; }
.au-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.au-act { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tbl.market td:first-child { width: 58px; }

/* Geschäft */
.biz { display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.biz-stage { position: relative; }
.biz-img { width: 100%; border-radius: 12px; border: 3px solid var(--line); object-fit: cover; aspect-ratio: 4 / 3; }
.biz-intro .biz-img { width: 160px; flex: none; }
.biz-lvl { position: absolute; left: 8px; top: 8px; background: var(--yellow); border: 2.5px solid var(--line); border-radius: 8px; padding: 2px 10px; font: 400 14px 'Lilita One'; }
.biz-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.biz-type { background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; flex-direction: column; }
.biz-type:has(input:checked) { box-shadow: 0 0 0 3px var(--yellow); background: #fff6d4; }
.biz-type small { font-weight: 600; color: var(--muted); }
.biz-next { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 2px dashed var(--line); border-radius: 10px; padding: 6px 10px; margin: 8px 0; }
.biz-thumb { width: 70px; height: 52px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.biz-next small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }

/* Erfolge, Rangliste, Profil */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: rgba(247, 236, 212, .55); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px; filter: grayscale(.9); opacity: .7; }
.ach img { width: 54px; height: 54px; object-fit: contain; }
.ach b { font: 400 14.5px 'Lilita One'; }
.ach small { font-size: 11.5px; }
.ach.on { filter: none; opacity: 1; background: var(--paper); }
.ach.on.t-gold { background: linear-gradient(#fff4c4, var(--paper)); border-color: #9c6f00; }
.ach.on.t-silver { background: linear-gradient(#eef1f5, var(--paper)); }
.ach.on.t-bronze { background: linear-gradient(#f5dfc8, var(--paper)); }
.ach .bar { width: 100%; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 0 0 12px; }
.pod { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none !important; width: 120px; }
.pod img { height: 110px; width: auto; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); }
.pod b { font: 400 14px 'Lilita One'; }
.pod::after { content: attr(data-pos); display: block; width: 100%; border: 3px solid var(--line); border-radius: 8px 8px 0 0; background: #cfd3da; margin-top: 4px; }
.pod.p1::after { height: 70px; background: linear-gradient(#ffe066, #e0a800); }
.pod.p2::after { height: 50px; background: linear-gradient(#eef1f5, #a9b0bb); }
.pod.p3::after { height: 36px; background: linear-gradient(#f0c39b, #b0662e); }
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.pr-fig { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pr-fig > img { height: 250px; width: auto; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .4)); }
.pr-fig .fig-pet { right: 6px; bottom: 30px; }
.online { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--paper); border: 2px solid var(--line); border-radius: 99px; padding: 1px 10px; }
.online.on { color: #1f6b28; background: #d6f3cf; }
.bio { font-style: italic; background: #fff; border: 2px dashed var(--line); border-radius: 10px; padding: 6px 10px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.badge-img img { width: 42px; height: 42px; object-fit: contain; background: var(--paper); border: 2px solid var(--line); border-radius: 50%; padding: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Nachrichten, Benachrichtigungen, Events */
.msg-list, .note-list { display: flex; flex-direction: column; gap: 5px; }
.msg { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.msg.unread { border-left: 7px solid var(--yellow-2); font-weight: 900; background: #fff8e0; }
.msg small { color: var(--muted); font-size: 12px; }
.msg-read { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 12px; }
.msg-body { background: #fff; border-radius: 8px; padding: 10px; margin: 10px 0; border: 1.5px solid rgba(0, 0, 0, .15); }
.note-list .note { display: flex; gap: 8px; align-items: center; background: var(--paper); border: 2px solid var(--line); }
.note-list .note.unread { border-left: 7px solid var(--teal); background: #eaf7f5; }
.note-list .note small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.event-list { display: flex; flex-direction: column; gap: 10px; }
.event { display: grid; grid-template-columns: 160px 1fr; gap: 12px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px; }
.event .ev-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.event.live { border-color: #3c1f6e; box-shadow: 0 0 0 3px rgba(109, 69, 168, .35); }
.event.over { opacity: .6; filter: grayscale(.6); }

/* Gilde & Haustiere */
.member-list { display: flex; flex-direction: column; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pet-card { --rc: var(--line); background: var(--paper); border: 2.5px solid var(--line); border-top: 6px solid var(--rc); border-radius: 12px; padding: 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pet-card.r-uncommon, .pet-row.r-uncommon { --rc: var(--r-uncommon); } .pet-card.r-rare, .pet-row.r-rare { --rc: var(--r-rare); } .pet-card.r-epic, .pet-row.r-epic { --rc: var(--r-epic); } .pet-card.r-legendary, .pet-row.r-legendary { --rc: var(--r-legendary); }
.pet-img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); animation: bob 3s ease-in-out infinite; }
.pet-img.sad { filter: grayscale(.6) drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); animation: none; transform: rotate(-6deg); }
.pet-card b { font: 400 16px 'Lilita One'; }
.pet-list { display: flex; flex-direction: column; gap: 8px; }
.pet-row { --rc: var(--line); display: flex; gap: 12px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-left: 7px solid var(--rc); border-radius: 12px; padding: 8px 10px; }
.pet-row.active { box-shadow: 0 0 0 3px var(--teal); }
.pet-pic { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.pet-row .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pet-row .bar { max-width: 260px; margin: 3px 0; background: rgba(0, 0, 0, .15); }

/* Battle Pass */
.bp-head { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #3b2a6e, #6d45a8); color: #fff; border: 3px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.bp-head .h { color: #fff; font-size: 22px; } .bp-head .muted { color: #ded2f5; }
.bp-head .bar { width: 100%; max-width: 360px; margin-top: 4px; }
.bp-buy .btn.big { width: auto; }
.bp-track { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scroll-behavior: smooth; }
.bp-labels { position: sticky; left: 0; z-index: 2; display: grid; grid-template-rows: 26px 96px 96px; gap: 6px; flex: none; background: var(--card); padding-right: 4px; }
.bp-labels span { display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font: 400 13px 'Lilita One'; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); padding: 4px 2px; }
.bp-labels span:first-child { writing-mode: horizontal-tb; transform: none; font-size: 11px; }
.bp-labels .free { background: #dff0da; } .bp-labels .prem { background: #fff0b8; }
.bp-col { flex: 0 0 92px; display: grid; grid-template-rows: 26px 96px 96px; gap: 6px; }
.bp-tier { display: grid; place-items: center; background: var(--ink-2); color: #fff; border-radius: 99px; font: 400 14px 'Lilita One'; border: 2px solid var(--line); }
.bp-col.reached .bp-tier { background: var(--teal); }
.bp-col.current .bp-tier { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 3px rgba(246, 194, 28, .45); }
.bp-cell { position: relative; background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: 11px; font-weight: 800; }
.bp-cell.premium { background: linear-gradient(#fff4c4, #f3dc8d); }
.bp-cell.claimed { opacity: .55; }
.bp-cell.locked .bp-img { filter: grayscale(.6) opacity(.6); }
.bp-img { width: 40px; height: 40px; object-fit: contain; }
.bp-cell .btn.sm { padding: 3px 7px; font-size: 11px; }
.lock { position: absolute; right: 4px; top: 4px; width: 14px; height: 12px; background: var(--ink); border-radius: 3px; }
.lock::before { content: ''; position: absolute; left: 2.5px; top: -7px; width: 9px; height: 9px; border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.chip.lock { position: static; width: auto; height: auto; }
.chip.lock::before { display: none; }

/* --------------------------------------------------------------- Effekte */
#fxLayer { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.fx-pop { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: auto; background: var(--cardboard); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 20px 14px; min-width: 280px; max-width: 92vw; text-align: center; animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1); }
.fx-pop h3 { font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.fx-pop .fx-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 10px; }
.fx-pop .fx-items .tile { width: 68px; height: 68px; animation: dropIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.fx-pop .fx-items .tile small { bottom: -17px; }
.fx-pop .fx-sum { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.fx-pop .btn { min-width: 120px; }
.fx-pop.levelup { background: radial-gradient(circle at 50% 30%, #fff4b0, #f0b92a 70%); }
.fx-pop.levelup .big-lvl { font: 400 84px/1 'Lilita One'; color: #fff; -webkit-text-stroke: 3px var(--line); text-shadow: 0 6px 0 var(--line); animation: pulse 1s ease-in-out infinite; }
.fx-pop.achievement img { width: 80px; height: 80px; margin: 0 auto 6px; animation: spinIn .7s ease-out; }
.rays { position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 230, 120, .28) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spin 12s linear infinite; mask: radial-gradient(circle, #000 20%, transparent 65%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-30px) scale(.5) rotate(-12deg); } }
@keyframes spinIn { from { transform: rotateY(540deg) scale(.4); } }
.float { position: fixed; z-index: 95; font: 400 20px 'Lilita One'; color: #fff; -webkit-text-stroke: 1px var(--line); text-shadow: 0 2px 0 var(--line); pointer-events: none; animation: floatUp 1.3s ease-out forwards; white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.float.xp { color: #9fe0ff; } .float.coin { color: var(--yellow); } .float.en { color: #ffe066; } .float.bad { color: #ff8a7e; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -70px); } }
.confetti { position: fixed; top: -10px; width: 9px; height: 14px; z-index: 92; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.coin-fly { position: fixed; z-index: 96; width: 26px; height: 26px; pointer-events: none; transition: left .7s cubic-bezier(.5, -0.3, .7, 1), top .7s cubic-bezier(.3, 0, .9, .6), opacity .2s .6s; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); color: var(--yellow); } }
.sparkle { position: fixed; z-index: 94; width: 10px; height: 10px; pointer-events: none; background: radial-gradient(circle, #fff 0 20%, #ffe066 40%, transparent 70%); border-radius: 50%; animation: sparkle .8s ease-out forwards; }
@keyframes sparkle { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.travel-fade { position: fixed; inset: 0; background: #120b06; z-index: 88; pointer-events: none; animation: tfade 1.1s ease-in-out forwards; display: grid; place-items: center; color: var(--yellow); font: 400 36px 'Lilita One'; }
@keyframes tfade { 0% { opacity: 0; } 35%, 60% { opacity: 1; } 100% { opacity: 0; } }

#toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: var(--paper); border: 2.5px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 800; box-shadow: 0 4px 0 var(--line); animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1); pointer-events: auto; max-width: 90vw; }
.toast.error { background: #fbd3cc; border-color: var(--red-2); }
.toast.success { background: #d8f1c9; }
.toast.out { opacity: 0; transform: translateY(10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }

/* Tutorial */
.tut { position: fixed; z-index: 80; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(560px, 94vw); display: flex; gap: 12px; align-items: flex-end; pointer-events: auto; animation: winIn .3s; }
.tut-por { width: 110px; height: 140px; object-fit: cover; object-position: top; border-radius: 14px; border: 3px solid var(--line); background: var(--paper); flex: none; box-shadow: var(--shadow); }
.tut-box { background: var(--cardboard); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; flex: 1; }
.tut-box h4 { font-size: 18px; margin: 0 0 4px; }
.tut-box .step { font: 800 11px 'Nunito'; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.tut-box p { font-size: 14px; font-weight: 600; background: rgba(247, 236, 212, .85); border-radius: 8px; padding: 6px 8px; }
.tut-box .row { display: flex; gap: 8px; justify-content: flex-end; }
.tut-focus { position: relative; z-index: 79; animation: tutPulse 1.2s ease-in-out infinite; border-radius: 12px; }
@keyframes tutPulse { 50% { box-shadow: 0 0 0 5px var(--yellow), 0 0 22px var(--yellow); } }

/* ==========================================================================
   Adminbereich
   ========================================================================== */
body.admin { background: #efe2c6; min-height: 100vh; }
.a-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #2a1d14; color: #f5e6c8; border-bottom: 3px solid #120b06; }
.a-brand { display: flex; align-items: center; gap: 8px; color: var(--yellow); font: 400 22px 'Lilita One'; text-decoration: none !important; }
.a-badge { background: var(--red); color: #fff; font: 400 12px 'Lilita One'; border-radius: 6px; padding: 2px 8px; letter-spacing: .5px; }
.a-menu { display: none; }
.a-wrap { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 56px); }
.a-nav { background: #e2d0ac; border-right: 3px solid #cbb48a; padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.a-nav h5 { font: 900 11px 'Nunito'; text-transform: uppercase; color: #7a6246; letter-spacing: .8px; margin: 12px 8px 4px; }
.a-nav a { color: var(--ink); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 99px; text-decoration: none !important; display: flex; justify-content: space-between; }
.a-nav a:hover { background: rgba(0, 0, 0, .06); }
.a-nav a.on { background: #2a1d14; color: #fff; }
.a-count { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.a-main { padding: 18px 22px 40px; min-width: 0; }
.a-main h1 { font-size: 30px; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.a-card { background: #fbf2de; border: 3px solid #2a1d14; border-radius: 14px; padding: 10px 14px; box-shadow: 0 3px 0 #2a1d14; }
.a-card small { display: block; font-weight: 800; color: var(--muted); font-size: 12px; }
.a-card b { font: 400 26px 'Lilita One'; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.a-box { background: #fbf2de; border: 3px solid #2a1d14; border-radius: 14px; padding: 12px 14px; }
.a-box h3 { font-size: 19px; }
.a-box > form.inline { margin: 0 4px 8px 0; }
.a-chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.a-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.a-bar i { display: block; width: 100%; min-height: 3px; background: linear-gradient(#3fb5ab, var(--teal-2)); border: 2px solid #2a1d14; border-radius: 5px 5px 0 0; }
.a-bar small { font-size: 10px; font-weight: 800; color: var(--muted); }
.a-search { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.a-search input { max-width: 340px; }
.a-edit { max-width: 760px; background: #fbf2de; border: 3px solid #2a1d14; border-radius: 14px; padding: 14px; }
.a-thumb { width: 90px; height: 90px; object-fit: contain; margin-top: 4px; background: #fff; border: 2px solid var(--line); border-radius: 8px; }
.a-mini { width: 34px; height: 34px; object-fit: contain; }
.a-pager { display: flex; gap: 4px; flex-wrap: wrap; }
.a-pager a, .a-pager b { padding: 3px 9px; border: 2px solid #2a1d14; border-radius: 6px; background: #fbf2de; }
.a-pager b { background: #2a1d14; color: #fff; }
.admin .tbl td { font-size: 13px; }
.admin .tbl tr.muted td { opacity: .5; }

/* Installer */
body.install { padding: 30px 12px; }
.install-card { max-width: 720px; margin: 0 auto; }
.install-card.pub-card { background: var(--cardboard); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.install-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.install-logo { width: 190px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.checks li { background: var(--paper); border: 2px solid var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.checks li.ok { border-color: #2d6d29; } .checks li.bad { border-color: var(--red-2); background: #fbd3cc; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hud-pill.resp, .hud-pill .cap { display: none; }
  .hud-pill { height: 34px; }
  .bar.xp { width: 110px; } .bar.en { width: 90px; } .hud-pill.hp .bar { width: 76px; }
}
@media (max-width: 900px) {
  body.game { grid-template-columns: 1fr; grid-template-areas: 'hud' 'stage' 'dock'; grid-template-rows: auto 1fr 70px; }
  .hud { flex-wrap: wrap; padding: 6px 8px; gap: 6px; }
  .hud-char { flex: 1 1 100%; }
  .hud-right { position: absolute; right: 8px; top: 8px; }
  .hud-res { flex-wrap: wrap; gap: 6px; }
  .hud-pill { padding: 0 6px 0 18px; margin-left: 12px; height: 30px; }
  .hp-ico { width: 30px; height: 30px; left: -14px; } .hp-ico .ico { width: 20px; height: 20px; }
  .hud-pill b { font-size: 14px; }
  .bar.en { width: 76px; } .hud-pill.hp .bar { width: 64px; }
  .sidebar { position: fixed; right: 0; top: 0; bottom: 70px; width: min(320px, 88vw); transform: translateX(100%); transition: transform .25s; box-shadow: -8px 0 20px rgba(0, 0, 0, .5); }
  body.sb-open .sidebar { transform: none; }
  .sb-toggle { display: grid; place-items: center; position: fixed; right: 10px; bottom: 80px; z-index: 26; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--line); }
  .side-menu { right: 8px; top: 100px; }
  .dock a { flex: 0 0 62px; height: 56px; }
  .dock a .ico { width: 28px; height: 28px; }
  .win-layer { padding: 6px; align-items: stretch; }
  .window { max-height: none; height: 100%; }
  .win-tab { font-size: 19px; }
  .inv-layout, .craft-layout, .char-grid, .npc-layout, .city-layout, .biz, .profile, .event { grid-template-columns: 1fr; }
  .detail { position: static; }
  .fig > img { height: 200px; }
  .char-fig { max-width: 320px; margin: 0 auto; }
  .area-title h1 { font-size: 22px; }
  .area-title p { display: none; }
  .pf-body img { height: 110px; } .pf-pet { width: 40px; right: -32px; }
  .minimap { width: 120px; } .mm-map { height: 80px; }
  .hs-ico { width: 40px; height: 40px; } .hs-ico img { width: 28px; height: 28px; }
  .hs-por { width: 44px; height: 44px; } .hs-por img { width: 38px; height: 38px; }
  .hs b { font-size: 10.5px; max-width: 100px; }
  .enemy { grid-template-columns: 50px 1fr; }
  .enemy > :nth-child(3), .enemy > :nth-child(4) { grid-column: span 1; }
  .auction { grid-template-columns: 50px 1fr; }
  .quest-card { grid-template-columns: 46px 1fr; }
  .quest-card .qa { grid-column: 1 / -1; align-items: stretch; }
  .msg { grid-template-columns: 1fr; gap: 2px; }
  .tut { bottom: 80px; }
  .tut-por { width: 80px; height: 100px; }
  .arena { height: 230px; padding: 8px 10px 0; }
  .fighter .f-img { height: 140px; }
  .a-wrap { grid-template-columns: 1fr; }
  .a-nav { display: none; position: fixed; inset: 56px 0 0 0; z-index: 9; height: auto; }
  body.a-open .a-nav { display: flex; }
  .a-menu { display: inline-flex; background: var(--yellow); border: 2px solid #120b06; border-radius: 8px; font: 400 14px 'Lilita One'; padding: 4px 10px; }
  .a-two { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; }
}
@media (max-width: 720px) {
  .pub-grid { grid-template-columns: 1fr; }
  .pub-hero-l, .pub-hero-r { display: none; }
  .two, .checks { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Abklingzeit der Fundorte */
.hs.act .hs-cd{display:none;position:absolute;left:50%;top:-6px;transform:translate(-50%,-100%);background:rgba(20,16,12,.9);color:#ffd35a;font:700 11px/1 system-ui,sans-serif;font-style:normal;padding:3px 6px;border-radius:8px;white-space:nowrap;border:1px solid rgba(255,211,90,.5)}
.hs.act.cooling .hs-cd{display:block}
.hs.act.cooling .hs-ico{filter:grayscale(1) brightness(.7)}
.hs.act.cooling{cursor:not-allowed}

/* ==========================================================================
   Profil 3.1
   ========================================================================== */
.pf { display: flex; flex-direction: column; gap: 14px; }
.pf-hero { --fr: #6b4a2b; --fr2: #a57a4c; position: relative; display: grid; grid-template-columns: 210px 1fr 150px; gap: 16px; align-items: end; min-height: 250px; padding: 16px 18px 16px 10px; border-radius: 16px; overflow: hidden; color: #fff8e8;
  background: linear-gradient(90deg, rgba(18, 11, 6, .35) 0%, rgba(18, 11, 6, .82) 42%, rgba(18, 11, 6, .9) 100%), var(--bg) center 40% / cover no-repeat, #2a1c12;
  border: 4px solid var(--fr); box-shadow: inset 0 0 0 2px var(--fr2), inset 0 0 40px rgba(0, 0, 0, .55), 0 4px 0 var(--line); }
.pf-hero.fr-bronze { --fr: #8a5424; --fr2: #d99357; }
.pf-hero.fr-silver { --fr: #6f7780; --fr2: #d7dde3; }
.pf-hero.fr-gold { --fr: #9a6c0c; --fr2: #ffd866; box-shadow: inset 0 0 0 2px var(--fr2), inset 0 0 40px rgba(0, 0, 0, .55), 0 4px 0 var(--line), 0 0 18px rgba(255, 200, 60, .35); }
.pf-hero.fr-neon { --fr: #2a1150; --fr2: #d65cff; animation: neonfr 2.6s ease-in-out infinite; }
.pf-hero.fr-vip { --fr: #5c3a00; --fr2: #ffcf3f; background-blend-mode: normal; }
.pf-hero.fr-vip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 220, 120, .16) 45%, transparent 60%); background-size: 250% 100%; animation: vipshine 5s linear infinite; pointer-events: none; }
@keyframes neonfr { 50% { box-shadow: inset 0 0 0 2px #7ef9ff, inset 0 0 40px rgba(0, 0, 0, .55), 0 4px 0 var(--line), 0 0 22px rgba(214, 92, 255, .6); } }
@keyframes vipshine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.pf-stage { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 220px; }
.pf-plate { position: absolute; bottom: 4px; left: 50%; width: 150px; height: 30px; margin-left: -75px; border-radius: 50%; background: radial-gradient(rgba(255, 215, 130, .35), rgba(0, 0, 0, .5) 60%, transparent 72%); }
.pf-fig { position: relative; height: 230px; width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .6)); animation: idle 3.6s ease-in-out infinite; transform-origin: bottom center; }
.pf-hpet { position: absolute; right: 0; bottom: 8px; width: 74px; }
.pf-hpet img { width: 100%; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .5)); animation: bob 2s ease-in-out infinite; }
.pf-info { min-width: 0; padding-bottom: 4px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pf-hero .online { display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .55); color: #d8c9ad; border-color: rgba(0, 0, 0, .7); }
.pf-hero .online i { width: 8px; height: 8px; border-radius: 50%; background: #8a7a66; }
.pf-hero .online.on { color: #b9f5ad; } .pf-hero .online.on i { background: #54e04a; box-shadow: 0 0 6px #54e04a; }
.pf-chip { font: 800 12px/1 'Nunito'; padding: 4px 10px; border-radius: 99px; border: 2px solid #0e0804; background: #3a2a1c; color: #f5e6c8; text-decoration: none !important; }
.pf-chip.vip { background: linear-gradient(#ffe27a, #e9a90f); color: #3a2400; }
.pf-chip.team { background: #2b6fb3; color: #fff; }
.pf-chip.guild { background: #1d6c66; color: #fff; }
.pf-name { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 34px/1.05 'Lilita One'; text-shadow: 0 3px 0 #0e0804, 0 0 14px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.pf-lvl { flex: none; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; background: linear-gradient(#ffe27a, #f2b61a); color: var(--ink); border: 3px solid #0e0804; font: 400 22px/1 'Lilita One'; text-shadow: none; box-shadow: 0 3px 0 #0e0804; transform: rotate(-5deg); }
.pf-title { margin: 4px 0 6px; color: #f6c955; font: 800 15px 'Nunito'; }
.pf-bio { margin: 0 0 8px; color: #efe2c8; font-style: italic; max-width: 520px; }
.pf-bio.muted { color: #b9a78a; font-style: normal; font-size: 13px; }
.pf-xp { margin-bottom: 10px; } .pf-xp .bar.xp { display: block; width: min(100%, 320px); height: 16px; } .pf-xp .bar.xp > span { font-size: 11px; line-height: 12px; }
.pf-info .actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pf-show { align-self: stretch; display: flex; flex-direction: column; gap: 6px; justify-content: center; background: rgba(0, 0, 0, .35); border: 2px solid rgba(0, 0, 0, .6); border-radius: 12px; padding: 8px; }
.pf-show-h { font: 400 14px 'Lilita One'; color: #f6c955; text-align: center; }
.pf-medal { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-medal img, .pf-medal.empty i { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: contain; padding: 3px; background: radial-gradient(#fff4d8, #caa46a); border: 2.5px solid #0e0804; }
.pf-medal.t-silver img { background: radial-gradient(#ffffff, #aeb7c0); } .pf-medal.t-gold img { background: radial-gradient(#fff6c4, #f0b92a); box-shadow: 0 0 10px rgba(255, 205, 70, .6); }
.pf-medal.empty i { display: block; background: rgba(255, 255, 255, .08); border-style: dashed; border-color: rgba(255, 255, 255, .3); }
.pf-medal small { font: 800 11px/1.15 'Nunito'; color: #efe2c8; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pf-medal.empty small { color: #9e8e74; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pf-stats > div { position: relative; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 7px 10px; box-shadow: 0 3px 0 var(--line); }
.pf-stats .ico { grid-row: span 2; width: 36px; height: 36px; }
.pf-stats b { font: 400 19px/1 'Lilita One'; }
.pf-stats small { color: var(--muted); font-weight: 800; font-size: 11.5px; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-card { background: var(--paper); border: 2.5px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 3px 0 var(--line); min-width: 0; }
.pf-card .h:first-child { margin-top: 0; }
.pf-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; background: linear-gradient(#fff8e9, #efdcb7); border: 2.5px solid var(--line); border-radius: 12px; padding: 6px 4px; min-width: 0; }
.pf-slot img { width: 52px; height: 52px; object-fit: contain; }
.pf-slot.empty i { display: block; width: 52px; height: 52px; border-radius: 10px; border: 2px dashed rgba(0, 0, 0, .25); }
.pf-slot small { font-weight: 800; font-size: 11px; text-align: center; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-slot.empty small { color: var(--muted); }
.pf-slot.r-uncommon { border-color: #2e8a2c; } .pf-slot.r-rare { border-color: #2c6fc9; box-shadow: 0 0 0 2px rgba(44, 111, 201, .25); } .pf-slot.r-epic { border-color: #8b3fc9; box-shadow: 0 0 0 2px rgba(139, 63, 201, .25); } .pf-slot.r-legendary { border-color: #d89b00; box-shadow: 0 0 10px rgba(255, 190, 40, .5); }
.pf-attr { display: flex; flex-direction: column; gap: 6px; }
.pf-attr > div { display: grid; grid-template-columns: 100px 1fr 32px; gap: 8px; align-items: center; font-weight: 800; font-size: 13px; }
.pf-attr b { text-align: right; font: 400 15px 'Lilita One'; }
.pf-attr .bar.thin { height: 10px; }
.pf-battles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pf-battles li { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; border: 2px solid var(--line); background: #fff8ea; font-size: 13px; }
.pf-battles li b { font: 400 14px 'Lilita One'; }
.pf-battles li.res-win b { color: #237a21; } .pf-battles li.res-lose b { color: #b52a1f; }
.pf-battles small { color: var(--muted); font-weight: 700; }
.gb-form { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.gb-form textarea { flex: 1; resize: vertical; min-height: 44px; }
.gb-entry { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 2px dashed rgba(0, 0, 0, .12); }
.gb-entry p { margin: 0 0 2px; overflow-wrap: anywhere; }
.gb-ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--line); background: radial-gradient(#fbe7bd, #b98c55); display: block; }
.gb-ava img { width: 100%; height: 160%; object-fit: cover; object-position: top; }
.frame-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.frame-opt { position: relative; cursor: pointer; }
.frame-opt input { position: absolute; opacity: 0; }
.frame-opt span { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; background: #2a1c12; color: #f5e6c8; border: 3px solid var(--fr, #6b4a2b); box-shadow: inset 0 0 0 2px var(--fr2, #a57a4c); }
.frame-opt input:checked + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.frame-opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.frame-opt.fr-bronze { --fr: #8a5424; --fr2: #d99357; } .frame-opt.fr-silver { --fr: #6f7780; --fr2: #d7dde3; } .frame-opt.fr-gold { --fr: #9a6c0c; --fr2: #ffd866; } .frame-opt.fr-neon { --fr: #2a1150; --fr2: #d65cff; } .frame-opt.fr-vip { --fr: #5c3a00; --fr2: #ffcf3f; }
@media (max-width: 900px) {
  .pf-hero { grid-template-columns: 1fr; padding: 12px; background: linear-gradient(180deg, rgba(18, 11, 6, .3), rgba(18, 11, 6, .9) 55%), var(--bg) center / cover no-repeat, #2a1c12; }
  .pf-stage { min-height: 180px; } .pf-fig { height: 180px; }
  .pf-show { flex-direction: row; flex-wrap: wrap; } .pf-show-h { width: 100%; }
  .pf-cols { grid-template-columns: 1fr; }
  .pf-name { font-size: 26px; }
}

/* ==========================================================================
   3.2 – Premium, Startseite, Charakter, Inventar, Karte, Gilde, Werkbank,
         Aktionshaus, Kampf, Geschäft
   ========================================================================== */
html { scroll-behavior: smooth; }
.btn.disabled { filter: grayscale(.8) opacity(.6); pointer-events: none; }
.pulse { animation: pp-pulse 1.6s ease-in-out infinite; }
@keyframes pp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 194, 28, .7); } 50% { box-shadow: 0 0 0 7px rgba(246, 194, 28, 0); } }
.chip.gold { background: linear-gradient(#ffe27a, #f0b41a); border-color: #8a5a00; color: #4a2e00; }
.win-body .panel { background: var(--paper); border-width: 2.5px; padding: 10px 12px; }
.win-body .panel > h3, .win-body .panel > h4 { margin-top: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; margin: 12px 0; }
.sec-h { font: 400 17px 'Lilita One'; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.sec-h::after { content: ''; flex: 1; height: 3px; border-radius: 3px; background: rgba(43, 28, 18, .25); }
td.r, th.r { text-align: right; }
td.neg { color: var(--red-2); font-weight: 800; } td.pos { color: var(--green); font-weight: 800; }
.tbl tr.me td { background: rgba(246, 194, 28, .22); }

/* ---------- Premium */
.prem-hero { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 3px solid var(--line);
  background: radial-gradient(circle at 12% 40%, rgba(255, 226, 122, .55), transparent 45%), linear-gradient(135deg, #5b3a8c, #2e1d4d); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); margin-bottom: 10px; }
.prem-hero.on { background: radial-gradient(circle at 12% 40%, rgba(255, 226, 122, .7), transparent 45%), linear-gradient(135deg, #b77a0c, #6b3f06); }
.ph-crown img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); animation: sway 4s ease-in-out infinite; }
.ph-main h3 { margin: 0; font: 400 24px 'Lilita One'; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.ph-main p { margin: 4px 0 6px; opacity: .92; }
.prem-bar { background: rgba(0, 0, 0, .35); }
.prem-bar i { background: linear-gradient(90deg, #ffe27a, #f0b41a); }
.ph-wallet { display: flex; flex-direction: column; gap: 6px; }
.ph-wallet > div { background: rgba(0, 0, 0, .28); border-radius: 10px; padding: 5px 10px; min-width: 130px; }
.ph-wallet small { display: block; font-size: 11px; opacity: .8; }
.ph-wallet b { color: #fff; }
.prem-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.prem-benefits > div { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; align-items: center; }
.prem-benefits img { grid-row: span 2; width: 36px; height: 36px; }
.prem-benefits b { font-size: 13.5px; } .prem-benefits small { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pack { position: relative; overflow: hidden; background: linear-gradient(#fff8e6, #efdcb4); border: 3px solid var(--line); border-radius: 14px; padding: 12px 10px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .15s, box-shadow .15s; }
.pack:hover { transform: translateY(-3px); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.pack.hot { border-color: #b57a00; box-shadow: 0 0 0 3px rgba(246, 194, 28, .55); }
.pack.pk-premium { background: linear-gradient(#f1e6ff, #d7c1f2); }
.pack.pk-energy { background: linear-gradient(#e5fbf6, #bfe7dd); }
.pack-ico { position: relative; height: 70px; width: 90px; }
.pack-ico img { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%, -50%); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.pack-ico img.pk2 { transform: translate(-95%, -40%) rotate(-14deg) scale(.8); z-index: -0; opacity: .9; }
.pack-ico img.pk3 { transform: translate(-5%, -40%) rotate(14deg) scale(.8); opacity: .9; }
.pack-amt { font: 400 26px 'Lilita One'; line-height: 1; }
.pack .eur { font: 400 18px 'Lilita One'; color: var(--ink-2); margin-top: 2px; }
.pack form, .pack .btn { width: 100%; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.perk { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.perk.poor { opacity: .7; }
.perk-ico img { width: 44px; height: 44px; }
.perk-body b { display: block; } .perk-body small { color: var(--muted); font-size: 12px; line-height: 1.25; display: block; }
.perk-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------- Startseite */
.lp-hero { text-align: center; color: #fff; margin: 0 0 28px; }
.lp-hero h1 { font: 400 clamp(26px, 4.4vw, 40px) 'Lilita One'; margin: 0 0 8px; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 0, 0, .6); letter-spacing: .5px; }
.lp-hero-txt p { max-width: 580px; margin: 0 auto 14px; font-size: 16px; text-shadow: 0 1px 3px #000; }
.lp-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lp-live { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lp-live > div { background: rgba(20, 12, 6, .72); border: 2px solid rgba(255, 216, 74, .5); border-radius: 12px; padding: 6px 14px; min-width: 104px; }
.lp-live b { display: block; font: 400 22px 'Lilita One'; color: #ffd84a; }
.lp-live small { font-size: 12px; color: #f2e3c4; }
.lp-live .live b { display: inline; }
.lp-live .live i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5fe25a; margin-right: 6px; box-shadow: 0 0 0 0 rgba(95, 226, 90, .8); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(95, 226, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 226, 90, 0); } }
.lp-live .live small { display: block; }
.lp-event { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; background: linear-gradient(90deg, #d9443a, #a82c24); border: 2px solid #000; border-radius: 12px; padding: 6px 14px 6px 6px; text-align: left; }
.lp-event img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.lp-event b { display: block; } .lp-event small { font-size: 12px; opacity: .9; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: st; }
.lp-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; background: rgba(247, 236, 212, .8); border: 2px solid var(--line); border-radius: 12px; padding: 8px; position: relative; }
.lp-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); font: 400 13px/18px 'Lilita One'; text-align: center; }
.lp-steps img { width: 42px; height: 42px; }
.lp-steps b { display: block; } .lp-steps small { color: var(--muted); font-size: 12.5px; }
.lp-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.lp-top li { display: flex; align-items: center; gap: 8px; background: rgba(247, 236, 212, .8); border: 2px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.lp-top .pos { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); font: 400 13px/20px 'Lilita One'; text-align: center; flex: none; }
.lp-top .pos.p1 { background: #ffd84a; } .lp-top .pos.p2 { background: #d8dde3; } .lp-top .pos.p3 { background: #e7a86a; }
.lp-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--line); background: #f3d2c8; }
.lp-top b { flex: 1; font-size: 14px; }
.lp-sub { font: 400 16px 'Lilita One'; margin: 14px 0 6px; }
.lp-guilds { display: flex; flex-direction: column; gap: 5px; }
.lp-guilds > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.lp-guilds .g-emb { grid-row: span 2; }
.lp-guilds small { color: var(--muted); font-size: 12px; }

/* ---------- Gildenwappen */
.g-emb { --gc: #c8912c; position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 52px; flex: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 75%, #fff), var(--gc) 55%, color-mix(in srgb, var(--gc) 70%, #000));
  clip-path: polygon(50% 100%, 0 78%, 0 0, 100% 0, 100% 78%); padding-bottom: 6px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); }
.g-emb::before { content: ''; position: absolute; inset: 3px; clip-path: polygon(50% 100%, 0 78%, 0 0, 100% 0, 100% 78%); border: 2px solid rgba(255, 255, 255, .45); }
.g-emb .g-emb-i { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.g-emb b { font: 400 10px 'Lilita One'; color: #fff; text-shadow: 0 1px 0 #000; letter-spacing: .5px; line-height: 1; }
.g-emb.sm { width: 30px; height: 34px; padding-bottom: 4px; } .g-emb.sm .g-emb-i { width: 15px; height: 15px; } .g-emb.sm b { font-size: 7.5px; }
.g-emb.lg { width: 74px; height: 84px; padding-bottom: 10px; } .g-emb.lg .g-emb-i { width: 40px; height: 40px; } .g-emb.lg b { font-size: 14px; }

/* ---------- Charakter */
.ch-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ch-power { display: flex; align-items: center; gap: 8px; background: linear-gradient(#3b2a1c, #2a1d14); color: #ffd84a; border: 2.5px solid #000; border-radius: 12px; padding: 5px 12px; }
.ch-power small { display: block; color: #e8d6b5; font-size: 11px; } .ch-power b { font: 400 22px 'Lilita One'; }
.ch-id { flex: 1; } .ch-id h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.ch-free { background: var(--yellow); border: 2.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 900; }
.char-grid.v2 { grid-template-columns: 330px 1fr; }
.char-grid.v2 .eq-slot { flex-direction: row; align-items: center; gap: 6px; background: rgba(247, 236, 212, .8); border: 2px solid var(--line); border-radius: 10px; padding: 3px; text-decoration: none; color: var(--ink); min-width: 0; }
.char-grid.v2 .eq-slot .tile { width: 48px; height: 48px; flex: none; }
.char-grid.v2 .eq-slot .tile.empty { display: grid; place-items: center; font: 400 22px 'Lilita One'; color: var(--muted); border-style: dashed; }
.eq-info { min-width: 0; display: flex; flex-direction: column; }
.eq-info b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-info small { font-size: 10.5px; color: var(--muted); line-height: 1.15; }
.eq-info form, .eq-info .btn { font-size: 10.5px; padding: 1px 6px; }
.char-grid.v2 .char-fig { grid-template-columns: 1fr 110px 1fr; }
.ch-next { margin: 4px 0 10px; }
.attr-list { display: flex; flex-direction: column; gap: 6px; }
.attr-row { display: grid; grid-template-columns: 150px 1fr 56px auto; gap: 8px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 5px 8px; }
.ar-name b { display: block; font-size: 13.5px; } .ar-name small { color: var(--muted); font-size: 11px; line-height: 1.1; display: block; }
.ar-bar { height: 12px; background: #d9c8a4; border: 2px solid var(--line); border-radius: 8px; display: flex; overflow: hidden; }
.ar-bar i.base { background: linear-gradient(#f6c21c, #d99a06); }
.ar-bar i.bon { background: repeating-linear-gradient(45deg, #3f9d3a 0 5px, #58b653 5px 10px); }
.ar-val { text-align: right; } .ar-val b { font: 400 18px 'Lilita One'; } .ar-val small { display: block; font-size: 11px; }
.ar-btn { display: flex; gap: 3px; }
.cmb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.cmb-grid > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 6px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 5px 8px; }
.cmb-grid img { grid-row: span 2; width: 26px; height: 26px; }
.cmb-grid small { font-size: 11px; color: var(--muted); } .cmb-grid b { font: 400 16px 'Lilita One'; }

/* ---------- Inventar */
.inv-sum { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.inv-sum > div { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.inv-sum > div small { color: var(--muted); font-size: 11.5px; }
.inv-sum > form { margin-left: auto; }
.inv-cats, .r-types { display: flex; flex-wrap: wrap; gap: 5px; flex: 1 1 100%; }
.cat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font: 800 12.5px 'Nunito'; color: var(--ink); cursor: pointer; }
.cat i { font-style: normal; background: rgba(43, 28, 18, .15); border-radius: 999px; padding: 0 6px; font-size: 11px; }
.cat.on { background: var(--yellow); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.cat:hover { filter: brightness(.97); }
.inv-none, .r-none { grid-column: 1 / -1; text-align: center; padding: 16px; }
.tile.locked-it::after { content: ''; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; background: url('../images/badges/lock.webp') center / contain no-repeat; filter: drop-shadow(0 1px 0 #000); }
.detail.v2 { padding: 10px; }
.d-empty { text-align: center; color: var(--muted); padding: 20px 8px; }
.d-empty img { width: 56px; height: 56px; opacity: .6; margin: 0 auto 6px; }
.d-head { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.d-head h3 { font-size: 16px; margin: 0 0 3px; }
.d-head p { margin: 0; display: flex; gap: 3px; flex-wrap: wrap; }
.detail.v2 .d-img { width: 76px; height: 76px; margin: 0; border-radius: 12px; border: 3px solid var(--rc, var(--line)); background: linear-gradient(#fbf3e1, #eadbb9); display: grid; place-items: center; }
.d-head.r-uncommon { --rc: var(--r-uncommon); } .d-head.r-rare { --rc: var(--r-rare); } .d-head.r-epic { --rc: var(--r-epic); } .d-head.r-legendary { --rc: var(--r-legendary); }
.detail.v2 .d-img img { width: 62px; height: 62px; object-fit: contain; }
.d-desc { font-size: 12.5px; margin: 4px 0; color: var(--ink-2); }
.d-cmp { font-size: 12px; font-weight: 800; background: #e6f5d9; border: 2px solid #2d6d29; border-radius: 8px; padding: 3px 7px; margin: 4px 0; }
.d-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }
.d-facts > div { background: var(--paper-2); border-radius: 8px; padding: 3px 5px; text-align: center; }
.d-facts small { display: block; font-size: 10.5px; color: var(--muted); } .d-facts b { font-size: 13px; }
.d-sec { margin: 6px 0; } .d-sec small { font-weight: 800; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.d-sec ul { margin: 2px 0 0; padding-left: 16px; font-size: 12px; }
.d-row { display: flex; gap: 5px; width: 100%; }
.d-row form { flex: 1; } .d-row .btn { width: 100%; }
.sell-f { display: flex; gap: 4px; flex-wrap: wrap; }
.sell-f .qty-in { width: 64px; }

/* ---------- Aktionshaus */
.au-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: stretch; }
.au-head > div { display: flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.au-head > div > div b { display: block; font: 400 17px 'Lilita One'; line-height: 1.05; } .au-head small { font-size: 11px; color: var(--muted); }
.au-recent { flex: 1 1 240px; flex-direction: column; align-items: flex-start !important; }
.au-recent > div { display: flex; gap: 6px; flex-wrap: wrap; }
.au-recent span { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.au-recent img { width: 22px; height: 22px; object-fit: contain; }
.au-filter .check { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; }
.au-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.au-card { position: relative; overflow: hidden; background: var(--paper); border: 2.5px solid var(--line); border-left-width: 6px; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.au-card.r-uncommon { border-left-color: var(--r-uncommon); } .au-card.r-rare { border-left-color: var(--r-rare); } .au-card.r-epic { border-left-color: var(--r-epic); } .au-card.r-legendary { border-left-color: var(--r-legendary); }
.au-card.done { opacity: .7; }
.au-top { display: flex; gap: 8px; align-items: center; }
.au-top .tile { width: 54px; height: 54px; flex: none; min-width: 0; }
.au-info b { display: block; font-size: 14px; } .au-info small { font-size: 11.5px; color: var(--muted); }
.au-prices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.au-prices > div { background: var(--paper-2); border-radius: 8px; padding: 3px 6px; }
.au-prices small { display: block; font-size: 10.5px; color: var(--muted); } .au-prices b { font-size: 13px; }
.au-prices .urgent b, .au-card .urgent { color: var(--red); }
.au-act { display: flex; gap: 4px; flex-wrap: wrap; } .au-act form { display: flex; gap: 4px; }
.au-sell { display: grid; grid-template-columns: 1fr 320px; gap: 12px; align-items: start; }
.au-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto; padding: 3px; }
.au-opt { cursor: pointer; } .au-opt input { position: absolute; opacity: 0; pointer-events: none; }
.au-opt .tile { display: grid; place-items: center; } .au-opt .tile img { width: 80%; height: 80%; object-fit: contain; }
.au-opt input:checked + .tile { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5px var(--line); transform: translateY(-2px); }
.au-opt.dis { opacity: .4; cursor: not-allowed; }
.au-form { background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 12px; position: sticky; top: 0; }
.au-form h3 { margin: 0 0 2px; font-size: 17px; }
.au-calc { background: var(--paper-2); border-radius: 8px; padding: 5px 8px; }

/* ---------- Werkbank */
.craft-top { position: relative; border-radius: 12px; overflow: hidden; padding: 10px; background: var(--bg, none) center / cover, #4a3322; border: 3px solid var(--line); }
.craft-top::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20, 12, 6, .25), rgba(20, 12, 6, .55)); }
.craft-top > * { position: relative; }
.craft-top h4, .craft-top .h { color: #fff; text-shadow: 0 2px 0 #000; }
.craft-slot { background: rgba(247, 236, 212, .92); }
.cs-img { position: relative; display: inline-block; }
.cs-img.work::after { content: ''; position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; background: url('../images/badges/hammer.webp') center / contain no-repeat; transform-origin: 80% 80%; animation: hammer .7s ease-in-out infinite; }
.cs-img.ready img { animation: pp-pulse 1.4s infinite; border-radius: 10px; }
@keyframes hammer { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
.cs-free { display: flex; flex-direction: column; align-items: center; opacity: .6; } .cs-free small { font-size: 11px; font-weight: 800; }
.recipe-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.r-tools { display: flex; flex-direction: column; gap: 5px; }
.r-tools input { width: 100%; }
.recipe { position: relative; }
.recipe > span { flex: 1; min-width: 0; }
.r-mats { display: flex; gap: 2px; margin-top: 2px; }
.r-mats i { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #2d6d29; background: #fff; display: grid; place-items: center; }
.r-mats i.miss { border-color: var(--red-2); opacity: .55; }
.r-mats img { width: 16px !important; height: 16px !important; }
.r-max { font-style: normal; font: 400 13px 'Lilita One'; background: #2d6d29; color: #fff; border-radius: 999px; padding: 1px 7px; }
.r-lock { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.where { background: #fff4e0; border: 2px dashed var(--yellow-2); border-radius: 10px; padding: 6px 8px; margin: 8px 0; }
.where .h { margin: 0 0 4px; font-size: 14px; }
.where-row { display: grid; grid-template-columns: 24px auto 1fr; gap: 6px; align-items: center; font-size: 12.5px; margin: 3px 0; }
.where-row img { width: 22px; height: 22px; object-fit: contain; }
.where-row > span { display: flex; flex-wrap: wrap; gap: 3px; }
.chip.src-fight { background: #f7c9c3; } .chip.src-craft { background: #d9ecfa; } .chip.src-shop { background: #fff0b3; }
.craft-go { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.craft-go select { width: auto; }

/* ---------- Stadtkarte */
.city-layout.v2 { grid-template-columns: 1fr 270px; align-items: start; }
.city-map[data-map] { aspect-ratio: 3 / 2; background: var(--map) center / cover, #6b9a6e; box-shadow: inset 0 0 40px rgba(0, 0, 0, .35); }
.city-map svg line.hot { stroke: #ffd84a; stroke-dasharray: 3 7; }
.city-map svg line.route { stroke: #fff; stroke-width: 7px; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.city-map svg line.route.far { stroke: #ff8a6a; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.city-node span { position: relative; width: 52px; height: 52px; }
.city-node b { background: rgba(20, 12, 6, .72); padding: 0 6px; border-radius: 6px; }
.city-node.sel span { box-shadow: 0 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .8); }
.n-lock { position: absolute; inset: 0; display: grid; place-items: center; font: 400 11px 'Lilita One'; font-style: normal; color: #fff; text-shadow: 0 1px 0 #000; background: url('../images/badges/lock.webp') center 20% / 22px no-repeat; padding-top: 22px; }
.n-on { position: absolute; right: -8px; top: -6px; font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: #3f9d3a; color: #fff; border: 2px solid var(--line); font: 800 11px/16px 'Nunito'; text-align: center; padding: 0 4px; }
.me-pin { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); width: 38px; height: 38px; animation: bob 1.4s ease-in-out infinite; pointer-events: none; }
.me-pin img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--yellow); background: #f3d2c8; }
.me-pin::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--yellow); }
@keyframes bob { 50% { transform: translate(-50%, -5px); } }
.map-legend { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; background: rgba(20, 12, 6, .75); color: #f2e3c4; border-radius: 10px; padding: 5px 9px; font-size: 11px; font-weight: 800; z-index: 2; max-width: calc(100% - 16px); }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.lgd { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; display: inline-block; font-style: normal; }
.lgd.cur { border-color: var(--yellow); background: var(--yellow); } .lgd.near { border-color: var(--teal); background: var(--teal); } .lgd.far { border-color: #ff8a6a; } .lgd.lock { background: #777; border-color: #999; }
.lgd.on { width: auto; min-width: 16px; height: 16px; border-radius: 8px; background: #3f9d3a; border-color: var(--line); font-size: 9.5px; line-height: 12px; text-align: center; padding: 0 3px; color: #fff; }
.map-tip { position: absolute; transform: translate(-50%, -170%); background: var(--paper); color: var(--ink); border: 2px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 800; white-space: nowrap; pointer-events: none; z-index: 3; }
.area-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: thin; }
.area-chip { flex: none; display: flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 3px 8px 3px 3px; color: var(--ink); text-decoration: none !important; }
.area-chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.area-chip b { display: block; font-size: 12.5px; white-space: nowrap; } .area-chip small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.area-chip.cur { border-color: var(--yellow-2); background: #fff3c4; } .area-chip.sel { box-shadow: 0 0 0 3px var(--teal); } .area-chip.locked { opacity: .6; }
.cd-img { position: relative; } .cd-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2.5px solid var(--line); }
.cd-img .chip { position: absolute; left: 6px; top: 6px; }
.cd-foes, .cd-finds { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.cd-finds .tile { width: 42px; height: 42px; min-width: 0; }
.chip.d-hard { background: #fde2c6; } .chip.d-elite { background: #efd4fb; } .chip.d-boss { background: #f7c9c3; border-color: var(--red-2); }

/* ---------- Gilde */
.guild-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-bottom: 14px; }
.guild-card { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.gc-body b { display: block; font-size: 15px; } .gc-body small { font-size: 11.5px; color: var(--muted); } .gc-body p { margin: 2px 0 0; }
.gc-act { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.guild-head.v2 { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, rgba(247, 236, 212, .95), rgba(247, 236, 212, .6)); border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.guild-head.v2 h3 { margin: 0 0 4px; } .gh-main { flex: 1; min-width: 0; }
.motd { display: flex; gap: 10px; background: #fff4c7; border: 2.5px solid var(--yellow-2); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.motd img { width: 30px; height: 30px; flex: none; } .motd > div { flex: 1; } .motd p { margin: 2px 0 4px; }
.motd form { display: flex; gap: 5px; } .motd input { flex: 1; }
.g-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.g-stats > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.g-stats img { grid-row: span 2; width: 34px; height: 34px; } .g-stats b { font: 400 18px 'Lilita One'; } .g-stats small { font-size: 11px; color: var(--muted); line-height: 1.15; }
.quick-amt { display: flex; gap: 4px; flex-wrap: wrap; } .quick-amt .chip { cursor: pointer; }
.g-top { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.g-top li { display: flex; align-items: center; gap: 6px; font-size: 13px; } .g-top li a { flex: 1; font-weight: 800; }
.gt-n { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); font: 400 11px/16px 'Lilita One'; text-align: center; }
.g-top li:first-child .gt-n { background: #ffd84a; }
.g-online { display: flex; flex-wrap: wrap; gap: 4px; }
.g-log { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.g-log li { display: grid; grid-template-columns: 18px 1fr; column-gap: 6px; font-size: 12.5px; border-bottom: 1px dashed rgba(43, 28, 18, .2); padding-bottom: 3px; }
.g-log li small { grid-column: 2; font-size: 10.5px; color: var(--muted); }
.g-log img { width: 16px; height: 16px; margin-top: 2px; }
.g-edit summary { cursor: pointer; font-weight: 800; display: flex; gap: 6px; align-items: center; }
.g-row { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.emb-pick { display: flex; gap: 14px; align-items: center; background: var(--paper-2); border-radius: 10px; padding: 8px 10px; margin: 6px 0 10px; flex-wrap: wrap; }
.emb-cols, .emb-icons { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 6px; }
.emb-col, .emb-ico { cursor: pointer; position: relative; } .emb-col input, .emb-ico input { position: absolute; opacity: 0; pointer-events: none; }
.emb-col i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--gc); border: 2.5px solid var(--line); }
.emb-col input:checked + i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.emb-ico { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.emb-ico:has(input:checked) { background: var(--yellow); box-shadow: 0 0 0 2px var(--line); }

/* ---------- Kampf */
.my-combat.v2 { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #3b2a1c, #5a3e27); color: #f7ecd4; border: 2.5px solid #000; border-radius: 12px; padding: 6px 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mc-ava { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--yellow); background: #f3d2c8; }
.mc-main { flex: 1; min-width: 200px; } .mc-main > b { display: block; font: 400 16px 'Lilita One'; } .mc-main > b small { font: 800 12px 'Nunito'; color: #ffd84a; }
.mc-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 800; margin-top: 3px; font-size: 13px; }
.mc-stats span { display: flex; align-items: center; gap: 3px; } .mc-stats .muted { color: #d8c4a0; }
.foe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.foe { position: relative; background: var(--paper); border: 3px solid var(--line); border-radius: 14px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; text-align: center; transition: transform .15s; }
.foe:hover { transform: translateY(-3px); }
.foe.d-elite { background: linear-gradient(#f5e8ff, #e4cff7); border-color: #5b2d85; }
.foe.d-boss { background: linear-gradient(#ffe3dc, #f6bdb1); border-color: #7a1a12; box-shadow: 0 0 0 3px rgba(217, 68, 58, .35); }
.foe-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; }
.foe-diff { display: flex; align-items: center; gap: 2px; } .foe-diff i { width: 10px; height: 10px; background: #cdb993; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.foe-diff i.on { background: #e38a0b; }
.foe-lv { background: var(--ink); color: #ffd84a; border-radius: 999px; padding: 1px 8px; }
.foe-img .e-img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--line); background: #f3d2c8; margin: 0 auto; display: block; }
.foe-name { font: 400 17px 'Lilita One'; }
.foe-vs { display: flex; justify-content: space-between; font-size: 11.5px; }
.foe-chance { position: relative; height: 20px; border-radius: 10px; background: #e5d7bd; border: 2px solid var(--line); overflow: hidden; }
.foe-chance span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#58b653, #3f9d3a); }
.foe-chance.mid span { background: linear-gradient(#f6c21c, #d99a06); } .foe-chance.bad span { background: linear-gradient(#e36158, #a82c24); }
.foe-chance em { position: relative; font: 800 11.5px/16px 'Nunito'; font-style: normal; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.foe-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; font-size: 12px; font-weight: 800; }
.foe-stats li { display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--paper-2); border-radius: 6px; padding: 2px; }
.foe-rew { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 800; }
.foe-loot { display: flex; justify-content: center; gap: 4px; }
.foe-loot span { width: 30px; height: 30px; border-radius: 7px; border: 2px solid var(--r-common); background: #fff; display: grid; place-items: center; }
.foe-loot span.r-uncommon { border-color: var(--r-uncommon); } .foe-loot span.r-rare { border-color: var(--r-rare); } .foe-loot span.r-epic { border-color: var(--r-epic); } .foe-loot span.r-legendary { border-color: var(--r-legendary); }
.foe-loot img { width: 24px; height: 24px; object-fit: contain; }
.foe-hist { font-size: 11px; }
.foe-act form, .foe-act .btn { width: 100%; }
.bt-ctrl { display: flex; gap: 6px; align-items: center; margin: 8px 0 4px; }
.bt-round { font: 400 16px 'Lilita One'; }
.battle-log p.crit { font-weight: 900; } .battle-log p.miss { opacity: .7; font-style: italic; }
.bt-sum { margin: 8px auto; max-width: 460px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 6px 10px; animation: dropIn .4s; }
.bt-sum table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-sum td { width: 30%; text-align: center; font: 400 16px 'Lilita One'; } .bt-sum th { color: var(--muted); font-size: 12px; }
.bt-sum thead td { font-size: 14px; border-bottom: 2px solid var(--line); }
.bt-sum tr + tr td, .bt-sum tr + tr th { border-top: 1px dashed rgba(43, 28, 18, .2); }

/* ---------- Geschäft */
.biz.v2 { grid-template-columns: 300px 1fr; align-items: start; }
.biz-stage { position: relative; }
.biz-stage.boosted::after { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 4px var(--yellow), 0 0 22px rgba(246, 194, 28, .8); animation: pp-pulse 1.6s infinite; pointer-events: none; }
.biz-boost { position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff; border: 2px solid #000; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.biz-staff { position: absolute; bottom: 6px; width: 44px; height: 44px; animation: bob 2s ease-in-out infinite; }
.biz-staff img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2.5px solid var(--line); background: #f3d2c8; }
.biz-staff.s0 { left: 10%; } .biz-staff.s1 { left: 42%; animation-delay: .4s; } .biz-staff.s2 { left: 74%; animation-delay: .8s; }
.biz-title { display: flex; align-items: center; gap: 8px; } .biz-ti { width: 40px; height: 40px; object-fit: contain; flex: none; }
.biz-type .biz-ti { width: 44px; height: 44px; margin: 0 auto 4px; display: block; }
.biz-type em { display: block; font-style: normal; font-weight: 800; font-size: 12px; margin-top: 3px; color: var(--green); }
.biz-till { background: linear-gradient(#3b2a1c, #2a1d14); color: #f7ecd4; border: 2.5px solid #000; border-radius: 12px; padding: 8px 12px; margin: 6px 0 8px; }
.biz-till small { display: block; font-size: 11px; opacity: .8; }
.biz-till > b { font: 400 34px 'Lilita One'; color: #ffd84a; margin-right: 8px; text-shadow: 0 2px 0 #000; }
.biz-till.full > b { color: #ff9b6a; }
.biz-till .muted { color: #d8c4a0; }
.biz-calc .kv { font-size: 13px; }
.biz-seats { display: flex; gap: 5px; margin-bottom: 6px; } .biz-seats i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px dashed var(--muted); }
.biz-seats i.on { border-style: solid; border-color: var(--line); background: url('../images/ui/friends.webp') center / 80% no-repeat, var(--yellow); }
.biz-actions .panel { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.biz-actions .panel p { margin: 0; }
.biz-road { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 8px; }
.br-step { flex: 0 0 132px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; position: relative; }
.br-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.br-step b { font-size: 12px; } .br-step small { font-size: 10.5px; }
.br-step.done { opacity: .75; } .br-step.done::after { content: ''; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #3f9d3a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' stroke='%23fff' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat; border: 2px solid var(--line); }
.br-step.cur { border-color: var(--yellow-2); box-shadow: 0 0 0 3px var(--yellow); }
.br-step.todo img { filter: grayscale(.8) brightness(.9); }

@media (max-width: 860px) {
  .g2, .g3, .au-sell, .city-layout.v2, .biz.v2, .char-grid.v2 { grid-template-columns: 1fr; }
  .g-stats { grid-template-columns: 1fr 1fr; }
  .prem-hero { grid-template-columns: 60px 1fr; } .ph-crown img { width: 56px; height: 56px; } .ph-wallet { grid-column: 1 / -1; flex-direction: row; }
  .attr-row { grid-template-columns: 1fr 50px auto; } .ar-bar { grid-column: 1 / -1; grid-row: 2; }
  .guild-card { grid-template-columns: auto 1fr; } .gc-act { grid-column: 1 / -1; flex-direction: row; }
  .au-form { position: static; }
  .map-legend { font-size: 9.5px; gap: 2px 6px; padding: 3px 6px; left: 4px; bottom: 4px; }
  .inv-sum > form { margin-left: 0; }
}
.foe-else { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.fe-row { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 4px; color: var(--ink); text-decoration: none !important; }
.fe-row:hover { background: #fff3c4; }
.fe-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--line); background: #f3d2c8; }
.fe-row span { flex: 1; min-width: 0; } .fe-row b { display: block; font-size: 13px; } .fe-row small { font-size: 11px; color: var(--muted); }
.fe-row em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--teal-2, #1f7f78); }
.fe-row.locked { opacity: .6; } .fe-row.d-boss { border-color: var(--red-2); } .fe-row.d-elite { border-color: #5b2d85; }
/* 3.2 Feinschliff Charakter */
.ico-m { width: 34px; height: 34px; object-fit: contain; display: inline-block; flex: none; }
.char-grid.v2 { align-items: start; grid-template-columns: 340px 1fr; }
.char-grid.v2 .char-fig { grid-template-columns: 1fr 1fr; grid-template-areas: "fig fig" "l r"; gap: 8px; background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .45), transparent 60%); border-radius: 14px; }
.char-grid.v2 .char-fig > .eq-col:first-child { grid-area: l; } .char-grid.v2 .char-fig > .fig { grid-area: fig; } .char-grid.v2 .char-fig > .eq-col:last-child { grid-area: r; }
.char-grid.v2 .fig > img { height: 230px; }
.char-grid.v2 .eq-col { gap: 6px; }
.char-grid.v2 .bar.xp { width: 100%; height: 16px; } .char-grid.v2 .bar.xp > span { font-size: 11px; line-height: 12px; }
.char-grid.v2 .bar.hpb { margin-bottom: 4px; }
.city-layout.v2 { grid-template-columns: minmax(0, 1fr) 260px; }
.city-layout.v2 > * { min-width: 0; }
.city-map[data-map] { width: 100%; height: auto; max-height: none; }
.city-layout.v2 { grid-template-columns: minmax(0, 1fr) 235px; gap: 10px; }
.city-layout.v2 .city-node span { width: 36px; height: 36px; border-width: 2.5px; }
.city-layout.v2 .city-node.cur span, .city-layout.v2 .city-node.sel span { width: 44px; height: 44px; }
.city-layout.v2 .city-node b { font-size: 9.5px; padding: 0 4px; }
.city-layout.v2 .city-node.locked b { opacity: 0; transition: opacity .15s; }
.city-layout.v2 .city-node.locked:hover b { opacity: 1; }
.city-layout.v2 .n-lock { font-size: 8.5px; background-size: 15px; padding-top: 16px; }
.city-layout.v2 .city-node { z-index: 1; } .city-layout.v2 .city-node:hover, .city-layout.v2 .city-node.cur { z-index: 2; }
/* 3.2 Feinschliff Werkbank */
.craft-top .craft-slots { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: center; }
.craft-top .craft-slot { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto auto; column-gap: 8px; row-gap: 3px; align-items: center; justify-content: stretch; min-height: 84px; }
.craft-top .craft-slot .cs-img { grid-row: span 3; }
.craft-top .cs-img img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff8e8; border: 2px solid var(--line); padding: 3px; }
.craft-top .craft-slot > b { font-size: 13px; }
.craft-top .craft-slot form, .craft-top .craft-slot small { justify-self: start; }
.craft-top .craft-slot .cs-free { grid-column: 1 / -1; }
.craft-top > p.muted { color: #f7ecd4; text-shadow: 0 1px 2px #000; margin: 4px 2px 0; }
.craft-top .craft-slots > form { align-self: center; justify-self: start; }
@media (max-width: 860px) {
  .city-layout.v2, .char-grid.v2, .biz.v2, .au-sell { grid-template-columns: minmax(0, 1fr); }
  .char-grid.v2 .char-fig { max-width: 360px; margin: 0 auto; width: 100%; }
  .ch-top { gap: 8px; } .ch-id { flex: 1 1 100%; order: 3; }
  .attr-row { grid-template-columns: minmax(0, 1fr) 46px auto; }
  .city-layout.v2 .city-node b { display: none; }
  .city-layout.v2 .city-node.cur b { display: block; }
}
.f-bar .bar { display: block; height: 16px; } .f-bar .bar > span { line-height: 12px; }

/* ---------- 3.3: andere Spieler in der Szene ---------- */
.others { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.other-fig { position: absolute; transform: translate(-50%, -100%) scale(var(--d, 1)); transform-origin: bottom center; display: flex; flex-direction: column; align-items: center; pointer-events: auto; text-decoration: none !important; transition: opacity .5s; }
.other-fig .pf-body img { height: 128px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .5)) saturate(.92); animation-delay: -1.3s; }
.other-fig:nth-child(2n) .pf-body img { animation-delay: -2.4s; }
.other-fig.flip .pf-body img { transform: scaleX(-1); }
.other-fig .pf-shadow { bottom: 16px; width: 58px; margin-left: -29px; }
.other-fig .pf-pet { width: 44px; right: -36px; }
.other-fig.flip .pf-pet { right: auto; left: -36px; } .other-fig.flip .pf-pet img { transform: scaleX(-1); }
.other-fig b { position: relative; font: 800 11.5px 'Nunito'; color: #f5ead6; background: rgba(20, 12, 6, .72); border-radius: 99px; padding: 1px 8px 1px 3px; margin-top: -4px; display: flex; align-items: center; gap: 4px; white-space: nowrap; opacity: .92; transition: opacity .2s, background .2s; }
.other-fig b i { font-style: normal; background: #d9c7a4; color: var(--ink); border-radius: 50%; min-width: 17px; text-align: center; font: 400 10.5px/17px 'Lilita One'; }
.other-fig b.vip i { background: linear-gradient(#ffe27a, #e9a90f); }
.other-fig b small { font: 800 9.5px/1 'Nunito'; padding: 2px 5px; border-radius: 6px; background: var(--gc, #c8912c); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.other-fig b small.team { background: #2b6fb3; }
.other-fig:hover b, .other-fig:focus-visible b { opacity: 1; background: rgba(20, 12, 6, .92); }
.other-fig:hover .pf-body img { filter: drop-shadow(0 0 6px rgba(255, 230, 150, .9)) drop-shadow(0 5px 4px rgba(0, 0, 0, .5)); }
.other-fig.walking .pf-body { animation: pfwalk .38s ease-in-out infinite; }
.other-fig.walking .pf-body img { animation: none; }
.other-fig.walking .pf-shadow { animation: pfshadow .38s ease-in-out infinite; }
.other-fig.enter { animation: ofin .5s ease-out; }
.other-fig.leave { opacity: 0; pointer-events: none; }
@keyframes ofin { from { opacity: 0; margin-top: 10px; } to { opacity: 1; margin-top: 0; } }
.here { position: absolute; z-index: 6; top: 10px; right: 10px; }
.here-badge { display: flex; align-items: center; gap: 5px; font: 800 12.5px 'Nunito'; color: #fff; background: rgba(20, 12, 6, .78); border: 2px solid #0e0804; border-radius: 99px; padding: 3px 10px 3px 5px; cursor: pointer; }
.here-badge b { font: 400 14px 'Lilita One'; color: #b9f5ad; }
.here-badge:hover { background: rgba(20, 12, 6, .95); }
.here-list { position: absolute; right: 0; top: calc(100% + 6px); width: 240px; max-height: 300px; overflow: auto; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; box-shadow: 0 4px 0 var(--line), 0 10px 22px rgba(0, 0, 0, .45); padding: 6px; }
.here-list .hl-h { margin: 2px 4px 6px; font: 400 14px 'Lilita One'; }
.here-list .hl-e { margin: 4px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.here-list a { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 4px 6px; border-radius: 9px; color: var(--ink); text-decoration: none !important; }
.here-list a:hover { background: rgba(0, 0, 0, .07); }
.here-list a img { grid-row: span 2; width: 34px; height: 34px; object-fit: cover; object-position: top; border-radius: 50%; background: #e9d6b0; border: 2px solid var(--line); }
.here-list a b { font: 400 14px/1.1 'Lilita One'; } .here-list a small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.scene { cursor: default; }
@media (max-width: 860px) { .other-fig .pf-body img { height: 92px; } .other-fig .pf-pet { width: 32px; right: -26px; } .here { top: 6px; right: 6px; } }
@media (prefers-reduced-motion: reduce) { .other-fig.walking .pf-body, .other-fig.enter { animation: none; } }
@media (max-width: 860px) { .here { top: 58px; } }
