/* Beeconomy – Oberfläche. Farben: Honig, Holz, Wiese. */
:root {
    --honey: #ffc83d; --honey-d: #f0a020; --honey-dd: #c27a0a; --honey-l: #ffe590;
    --wood: #c98a4b; --wood-d: #a46a33; --wood-dd: #6b4423; --cream: #fff8e8; --cream-d: #f3e2bd;
    --green: #6cc644; --green-d: #3f9a2e; --red: #ef6a5a; --red-d: #b93a2c;
    --ink: #4a2f17; --muted: #8a6a48;
    --font: "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--ink); }
button { font-family: inherit; color: inherit; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }
.ico { width: 1.25em; height: 1.25em; vertical-align: -0.28em; }
.ico.big { width: 40px; height: 40px; }
.ico.tiny { width: 1em; height: 1em; vertical-align: -0.15em; }

/* ── Knöpfe ─────────────────────────────────────────── */
.btn {
    --b1: #ffd75e; --b2: #f5a623; --bd: #c27a0a;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 14px; padding: 10px 18px; font-weight: 900; font-size: 1rem;
    color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 0 2px rgba(80,40,0,.35);
    background: linear-gradient(180deg, var(--b1), var(--b2)); box-shadow: 0 4px 0 var(--bd), 0 6px 12px rgba(80,40,0,.2), inset 0 2px 0 rgba(255,255,255,.45);
    transition: transform .08s, box-shadow .08s, filter .15s; position: relative;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd), 0 2px 6px rgba(80,40,0,.2), inset 0 2px 0 rgba(255,255,255,.45); }
.btn:disabled { filter: grayscale(.8) opacity(.55); cursor: default; }
.btn.green { --b1: #8ee36a; --b2: #4fb33a; --bd: #2f7f22; }
.btn.red { --b1: #ff8a78; --b2: #e2513f; --bd: #a3301f; }
.btn.gold { --b1: #ffd75e; --b2: #f5a623; --bd: #c27a0a; }
.btn.ghost { --b1: #fffaf0; --b2: #f3e3c3; --bd: #cfb488; color: var(--ink); text-shadow: none; }
.btn.ghost.red-t { color: var(--red-d); }
.btn.big { font-size: 1.12rem; padding: 13px 26px; border-radius: 16px; }
.btn.sm { padding: 7px 11px; font-size: .9rem; border-radius: 11px; flex-direction: column; gap: 0; line-height: 1.1; min-width: 44px; }
.btn.sm small { font-size: .68rem; opacity: .95; }
.btn.round { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 1.4rem; }

/* ── Spielbildschirm ───────────────────────────────── */
body.game { overflow: hidden; background: #5f9e3c; touch-action: none; overscroll-behavior: none; }
#app { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
#stage { position: absolute; inset: 0; }
#stage canvas { display: block; }
body.busy #stage { cursor: progress; }

/* obere Leiste */
#hud { position: absolute; top: calc(8px + var(--safe-t)); left: 8px; right: 8px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; pointer-events: none; z-index: 5; }
#hud > * { pointer-events: auto; }
.player { display: flex; align-items: center; gap: 0; background: rgba(255,248,232,.96); border-radius: 999px 18px 18px 999px; padding: 4px 14px 4px 4px; box-shadow: 0 3px 0 rgba(107,68,35,.35), 0 6px 16px rgba(40,30,10,.18); border: 2px solid #fff; }
.lvl { position: relative; width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; }
.lvl img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(107,68,35,.4)); }
.lvl span { position: relative; font-weight: 900; font-size: 1.05rem; color: #6b4423; margin-top: 4px; }
.pinfo { display: flex; flex-direction: column; gap: 4px; min-width: 120px; padding-left: 6px; }
.pinfo b { font-size: .95rem; line-height: 1; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpbar { position: relative; height: 16px; background: #ead7b0; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 3px rgba(80,50,0,.18); }
.xpbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(180deg, #a8ec7a, #4fb33a); border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.xpbar i::after { content: ''; position: absolute; left: 6px; right: 6px; top: 2px; height: 4px; background: rgba(255,255,255,.45); border-radius: 9px; }
.xpbar span { position: relative; display: block; text-align: center; font-size: .66rem; font-weight: 900; line-height: 16px; color: #3a2a12; text-shadow: 0 1px 0 rgba(255,255,255,.7); }

.res { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px 0 5px; border: 2px solid #fff; border-radius: 999px;
    background: rgba(255,248,232,.96); box-shadow: 0 3px 0 rgba(107,68,35,.35), 0 6px 14px rgba(40,30,10,.15); font-weight: 900; font-size: .98rem; font-variant-numeric: tabular-nums; }
.pill .ico { width: 28px; height: 28px; }
.pill .plus { display: grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; border-radius: 50%; background: linear-gradient(#8ee36a, #4fb33a); color: #fff; font-size: .9rem; line-height: 1; box-shadow: 0 2px 0 #2f7f22; }
.pill.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Seitenknöpfe */
.sidebtns { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.sbtn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,248,232,.92); font-size: 1.35rem; font-weight: 900; color: var(--wood-dd); box-shadow: 0 3px 0 rgba(107,68,35,.35); line-height: 1; }
.sbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(107,68,35,.35); }

/* untere Leiste */
#dock { position: absolute; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 8px; align-items: flex-end; z-index: 5;
    padding: 8px 10px; border-radius: 26px; background: linear-gradient(180deg, rgba(201,138,75,.97), rgba(164,106,51,.97)); box-shadow: 0 5px 0 #6b4423, 0 10px 24px rgba(30,20,5,.3), inset 0 2px 0 rgba(255,255,255,.3); border: 2px solid #e2ad70; transition: transform .25s, opacity .25s; }
.dbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 72px; padding: 6px 0 4px; border: 0; border-radius: 18px; background: linear-gradient(180deg, #fff6df, #f1dcae); box-shadow: 0 3px 0 #8a5a2e, inset 0 2px 0 #fff; font-weight: 900; font-size: .78rem; color: var(--ink); }
.dbtn img { width: 34px; height: 34px; }
.dbtn.main { width: 86px; background: linear-gradient(180deg, #ffd75e, #f5a623); box-shadow: 0 3px 0 #c27a0a, inset 0 2px 0 rgba(255,255,255,.5); color: #fff; text-shadow: 0 1px 1px rgba(90,50,0,.6); }
.dbtn.main img { width: 40px; height: 40px; }
.dbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a5a2e; }
.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; padding: 0 5px; }
.burger i { display: block; height: 4px; border-radius: 3px; background: var(--wood-d); }
body.moding #dock { transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; }
body.moding .sidebtns { opacity: .5; }

/* Bau-Leiste */
#buildbar { position: absolute; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 8px 8px; border-radius: 22px; background: rgba(255,248,232,.97); border: 2px solid #fff; box-shadow: 0 5px 0 rgba(107,68,35,.4), 0 10px 22px rgba(30,20,5,.3); max-width: calc(100vw - 20px); animation: rise .25s ease; }
#buildbar > img { width: 58px; height: 46px; object-fit: contain; }
.bbinfo { display: flex; flex-direction: column; min-width: 0; }
.bbinfo b { font-size: 1rem; white-space: nowrap; }
.bbinfo span { font-size: .78rem; color: var(--muted); font-weight: 800; }
@keyframes rise { from { transform: translateX(-50%) translateY(30px); opacity: 0; } }

/* Meldungen */
#toasts { position: absolute; top: calc(78px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 50; pointer-events: none; width: min(92vw, 420px); }
.toast { padding: 10px 16px; border-radius: 14px; font-weight: 800; font-size: .92rem; background: #fff8e8; border: 2px solid #fff; box-shadow: 0 4px 0 rgba(107,68,35,.3), 0 8px 18px rgba(30,20,5,.25); opacity: 0; transform: translateY(-12px) scale(.96); transition: all .25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: #ffe3de; color: #8e2416; }
.toast.success { background: #e5f9d8; color: #2b6b1c; }

/* fliegende Symbole */
.fly { position: absolute; width: 36px; height: 36px; z-index: 40; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }

/* Ladebildschirm */
#loading { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff4c9, #ffd56b 60%, #f5a623); transition: opacity .5s; }
#loading.gone { opacity: 0; pointer-events: none; }
.lbox { text-align: center; }
.lbox .lb { width: 90px; animation: hover 1.2s ease-in-out infinite; }
#loadbar { width: 220px; height: 16px; border-radius: 99px; background: rgba(107,68,35,.2); margin: 14px auto 10px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.15); }
#loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #a8ec7a, #4fb33a); border-radius: 99px; transition: width .3s; }
#loadmsg { font-weight: 800; color: var(--wood-dd); margin: 0; }
@keyframes hover { 50% { transform: translateY(-10px) rotate(-4deg); } }

.logo { font-size: 3rem; margin: 0; font-weight: 900; letter-spacing: .5px; color: #fff;
    text-shadow: 0 3px 0 #b8650a, 0 5px 0 #6b4423, 0 9px 14px rgba(60,30,0,.35); -webkit-text-stroke: 1.5px #8a4f12; }
.logo span { color: #ffe35c; }

.adminbanner { position: fixed; bottom: 0; left: 0; right: 0; background: #b93a2c; color: #fff; text-align: center; font-weight: 800; font-size: .8rem; padding: 3px; z-index: 200; }

/* ── Fenster ──────────────────────────────────────── */
.overlay { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40,25,5,.38); opacity: 0; transition: opacity .2s; }
.overlay.open { opacity: 1; }
.overlay.closing { opacity: 0; }
.panel { position: relative; width: min(520px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; border-radius: 26px; background: var(--cream);
    border: 3px solid #fff; box-shadow: 0 8px 0 #a46a33, 0 0 0 6px #e2ad70, 0 22px 40px rgba(30,15,0,.45); transform: scale(.9) translateY(14px); transition: transform .25s cubic-bezier(.2,1.4,.4,1); overflow: hidden; }
.overlay.open .panel { transform: none; }
.panel.wide { width: min(760px, 100%); }
.panel.small { width: min(420px, 100%); }
.phead { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 56px 12px 16px; min-height: 66px;
    background: linear-gradient(180deg, #ffd75e, #f5a623); border-bottom: 3px solid #c27a0a; color: #fff; }
.phead::before { content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8z M14 32l14 8v16 M14 32L0 40v16' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.pimg { width: 64px; height: 56px; object-fit: contain; margin: -10px 0 -10px -4px; filter: drop-shadow(0 3px 2px rgba(90,50,0,.35)); position: relative; }
.ptitle { position: relative; min-width: 0; }
.ptitle h2 { margin: 0; font-size: 1.4rem; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 0 #b8650a, 0 0 3px rgba(107,68,35,.6); }
.psub { font-size: .8rem; font-weight: 800; color: #7a4a10; opacity: .9; margin-top: 2px; }
.pclose { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(#ff8a78, #e2513f); color: #fff; font-size: 1.5rem; font-weight: 900; line-height: 1; box-shadow: 0 3px 0 #a3301f; }
.pbody { padding: 14px 16px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.pfoot { display: flex; gap: 10px; justify-content: center; padding: 12px 16px 16px; border-top: 2px dashed var(--cream-d); background: #fff3d9; flex-wrap: wrap; }
.desc { margin: 0 0 12px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.ctext { font-weight: 700; text-align: center; margin: 6px 0 12px; line-height: 1.4; }
h3.sec { margin: 6px 0 10px; font-size: 1rem; font-weight: 900; color: var(--wood-dd); }

.warn { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: #ffe3de; color: #8e2416; font-size: .88rem; font-weight: 700; border: 2px solid #ffc2b8; }
.warn img { width: 38px; height: 38px; flex: 0 0 auto; }
.bonus { padding: 9px 12px; border-radius: 14px; background: #f3ecdc; font-size: .88rem; font-weight: 700; margin-bottom: 12px; color: var(--muted); }
.bonus.on { background: #fff2c2; color: #7a4a10; }
.bonus small { display: block; font-size: .76rem; opacity: .85; margin-top: 2px; }

/* Waren-Chips */
.good { display: inline-flex; align-items: center; gap: 3px; margin: 2px 6px 2px 0; font-weight: 900; font-size: .92rem; white-space: nowrap; }
.good .ico { width: 22px; height: 22px; }
.good.miss { color: var(--red-d); }
.good.free { color: var(--green-d); font-size: .82rem; }
.good.xp { color: #3f9a2e; }
.lbl { font-size: .72rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-right: 6px; }

/* Rezepte */
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.recipe { position: relative; text-align: left; border: 2px solid #ecd6a8; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 0 #e2c48d; transition: transform .1s, border-color .15s; }
.recipe:hover:not(:disabled) { border-color: var(--honey-d); transform: translateY(-2px); }
.recipe:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #e2c48d; }
.recipe.cant { background: #fbf6ec; }
.recipe.locked { filter: grayscale(.9); opacity: .6; }
.rname { font-weight: 900; font-size: 1rem; }
.rtime { font-size: .8rem; font-weight: 800; color: #6f56c4; margin: 2px 0 6px; }
.rio { display: flex; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.lock { position: absolute; top: 8px; right: 10px; font-size: .74rem; font-weight: 900; color: var(--muted); background: #f3ecdc; padding: 2px 7px; border-radius: 8px; }

.prod { padding: 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.prod.ready { background: #f0fbe6; border-color: #a8dc88; text-align: center; }
.prod.ready .btn { margin-top: 10px; width: 100%; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0; flex-wrap: wrap; }
.prod.ready .prow { justify-content: center; }
.time { font-weight: 900; color: #6f56c4; }
.time.ok { color: var(--green-d); }
.bar { height: 18px; border-radius: 99px; background: #efe1c2; overflow: hidden; margin: 8px 0; box-shadow: inset 0 2px 3px rgba(80,50,0,.15); }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, #ffd75e 0 10px, #f5b532 10px 20px); border-radius: 99px; transition: width 1s linear; box-shadow: inset 0 -3px 0 rgba(194,122,10,.35); }

/* Markt */
.market { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.mrow.empty { opacity: .6; }
.minfo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.minfo span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.mbtns { display: flex; gap: 6px; }

/* Baumenü */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: none; }
.tab { flex: 0 0 auto; border: 0; padding: 8px 16px; border-radius: 999px; font-weight: 900; font-size: .9rem; background: #f3e3c3; color: var(--wood-dd); box-shadow: inset 0 -3px 0 rgba(107,68,35,.15); }
.tab.on { background: linear-gradient(#8ee36a, #4fb33a); color: #fff; text-shadow: 0 1px 1px rgba(0,60,0,.5); box-shadow: 0 3px 0 #2f7f22; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 8px 10px; border: 2px solid #ecd6a8; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #e2c48d; transition: transform .1s, border-color .15s; }
.card:hover:not(:disabled) { border-color: var(--honey-d); transform: translateY(-3px); }
.card.locked, .card.full { opacity: .6; filter: grayscale(.7); }
.cimg { width: 100%; height: 96px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 80%, #cdeeb0 0 45%, transparent 46%); }
.cimg img { max-width: 100%; max-height: 96px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(90,60,10,.25)); }
.cname { font-weight: 900; font-size: .95rem; text-align: center; }
.cmeta { font-size: .72rem; font-weight: 800; color: var(--muted); text-align: center; }
.ccost { margin-top: 4px; font-weight: 900; background: #fff2c2; border-radius: 99px; padding: 3px 10px; }
.ccost.poor { color: var(--red-d); background: #ffe3de; }

/* Lager */
.storage { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.sitem { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 18px; background: #fff; border: 2px solid #ecd6a8; }
.sitem b { font-size: 1.15rem; margin-top: 4px; }
.sitem span { font-size: .78rem; font-weight: 800; color: var(--muted); text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { background: #fff; border: 2px solid #ecd6a8; border-radius: 14px; padding: 8px 4px; text-align: center; }
.stats b { display: block; font-size: 1.35rem; color: var(--honey-dd); }
.stats span { font-size: .7rem; font-weight: 800; color: var(--muted); }
.tips ol { margin: 0; padding-left: 20px; font-weight: 700; font-size: .9rem; line-height: 1.5; }

.costline { text-align: center; font-weight: 900; font-size: 1.15rem; }
.costline .ico { width: 30px; height: 30px; vertical-align: -8px; }
.costline.poor b { color: var(--red-d); }

/* Menü */
.menu { display: flex; flex-direction: column; gap: 8px; }
.who { display: flex; align-items: center; gap: 12px; padding: 6px 4px 10px; }
.who b { display: block; font-size: 1.1rem; }
.who span { font-size: .82rem; font-weight: 800; color: var(--muted); }
.lvlbig { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 1.3rem; color: #fff; background: linear-gradient(#ffd75e, #f5a623); box-shadow: 0 3px 0 #c27a0a; text-shadow: 0 1px 1px rgba(90,50,0,.6); }
.mbtn { display: block; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid #ecd6a8; background: #fff; font-weight: 900; font-size: 1rem; text-decoration: none; color: var(--ink); box-shadow: 0 3px 0 #e2c48d; }
.mbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e2c48d; }
.mbtn.admin { background: #f1ebff; border-color: #cdbcf7; box-shadow: 0 3px 0 #b6a2ee; }
.menu .legal, .ver { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.menu .legal a { color: var(--muted); }

/* Level-Up */
.levelup .pbody { text-align: center; overflow: hidden; position: relative; }
.levelup .star { position: relative; width: 130px; height: 130px; margin: 0 auto; animation: starpop .7s cubic-bezier(.2,1.6,.4,1); }
.levelup .star img { width: 100%; height: 100%; filter: drop-shadow(0 4px 0 rgba(107,68,35,.35)); }
.levelup .star span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: #6b4423; padding-top: 10px; }
.levelup .rw { display: flex; justify-content: center; gap: 8px; font-size: 1.2rem; }
.levelup .rw .ico { width: 32px; height: 32px; }
.unl { margin-top: 10px; padding: 8px; background: #f0fbe6; border-radius: 12px; font-weight: 700; font-size: .9rem; }
@keyframes starpop { from { transform: scale(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -10px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 3px; animation: fall 1.8s var(--d) ease-in forwards; }
@keyframes fall { to { transform: translateY(420px) rotate(540deg); opacity: 0; } }

/* Willkommen */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #ecd6a8; border-radius: 16px; padding: 8px 12px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.steps li img { width: 64px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.steps li b { display: block; color: var(--ink); font-size: .98rem; }
.hint { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 12px 0 0; }

/* ── Handy ────────────────────────────────────────── */
@media (max-width: 640px) {
    #hud { flex-direction: column; gap: 6px; }
    .player { padding-right: 10px; }
    .lvl { width: 44px; height: 44px; }
    .pinfo { min-width: 100px; }
    .res { justify-content: flex-start; gap: 5px; }
    .pill { height: 32px; font-size: .84rem; padding: 0 9px 0 3px; }
    .pill .ico { width: 24px; height: 24px; }
    .dbtn { width: 64px; font-size: .72rem; }
    .dbtn.main { width: 74px; }
    .sidebtns { top: auto; bottom: calc(110px + var(--safe-b)); transform: none; }
    .overlay { align-items: flex-end; padding: 0; }
    .panel, .panel.wide, .panel.small { width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; box-shadow: 0 -4px 0 #e2ad70, 0 -12px 30px rgba(30,15,0,.4); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
    .overlay.open .panel { transform: none; }
    .pfoot { padding-bottom: calc(14px + var(--safe-b)); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .recipes { grid-template-columns: 1fr 1fr; }
    .recipe { padding: 8px 9px; }
    .cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 380px) { .recipes { grid-template-columns: 1fr; } }

/* ── Anmeldeseite ─────────────────────────────────── */
body.login { min-height: 100%; overflow-x: hidden; background: linear-gradient(180deg, #8fd3ff 0%, #c9ecff 45%, #e8f8d0 70%, #9bd45a 100%); }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; width: 180px; height: 56px; background: #fff; border-radius: 60px; opacity: .9; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud::after { width: 100px; height: 100px; top: -55px; left: 75px; }
.c1 { top: 12%; animation-duration: 70s; left: -20%; }
.c2 { top: 28%; animation-duration: 95s; left: 40%; transform: scale(.7); }
.c3 { top: 6%; animation-duration: 120s; left: 75%; transform: scale(.5); }
@keyframes drift { from { margin-left: -30vw; } to { margin-left: 130vw; } }
.hill { position: absolute; border-radius: 50%; }
.h1 { left: -20%; right: 30%; bottom: -55vh; height: 90vh; background: radial-gradient(ellipse at 50% 20%, #9bd45a, #6cbf3a); }
.h2 { left: 35%; right: -25%; bottom: -60vh; height: 92vh; background: radial-gradient(ellipse at 50% 20%, #8ccd4c, #5aae33); }
.lhive { position: absolute; bottom: 4vh; left: 6vw; width: min(26vw, 230px); filter: drop-shadow(0 8px 6px rgba(40,70,20,.25)); }
.lhouse { position: absolute; bottom: 3vh; right: 3vw; width: min(36vw, 340px); filter: drop-shadow(0 8px 6px rgba(40,70,20,.25)); }
.ltree { position: absolute; bottom: 14vh; right: 30vw; width: min(13vw, 110px); }
.lbed { position: absolute; bottom: 1vh; left: 28vw; width: min(14vw, 120px); }
.lbed2 { position: absolute; bottom: 9vh; left: 22vw; width: min(11vw, 95px); }
.lbee { position: absolute; width: 54px; animation: buzz 7s ease-in-out infinite; }
.b1 { top: 22%; left: 12%; }
.b2 { top: 40%; right: 14%; animation-delay: -2s; animation-duration: 9s; transform: scaleX(-1); }
.b3 { top: 60%; left: 22%; animation-delay: -4s; width: 40px; }
@keyframes buzz { 25% { translate: 40px -30px; } 50% { translate: 80px 10px; } 75% { translate: 30px 30px; } }
.authwrap { position: relative; z-index: 2; max-width: 420px; margin: 0 auto; padding: 6vh 16px 40px; text-align: center; }
.claim { margin: 6px 0 18px; font-weight: 900; color: #3d6a1a; font-size: 1.1rem; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.authcard { background: var(--cream); border-radius: 26px; border: 3px solid #fff; box-shadow: 0 8px 0 #a46a33, 0 0 0 6px #e2ad70, 0 22px 40px rgba(30,15,0,.3); padding: 8px 18px 20px; text-align: left; }
.atabs { display: flex; gap: 6px; margin: 6px 0 14px; background: #f3e3c3; border-radius: 999px; padding: 4px; }
.atab { flex: 1; border: 0; background: none; padding: 10px; border-radius: 999px; font-weight: 900; font-size: 1rem; color: var(--wood-dd); }
.atab.on { background: #fff; box-shadow: 0 2px 0 #d8bc88; }
.aform { display: flex; flex-direction: column; gap: 12px; }
.aform label { display: flex; flex-direction: column; gap: 4px; font-weight: 900; font-size: .88rem; color: var(--wood-dd); }
.aform label small { font-weight: 700; color: var(--muted); }
.aform input:not([type=checkbox]) { font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 14px; border-radius: 14px; border: 2px solid #e4cc9c; background: #fff; color: var(--ink); outline: none; }
.aform input:focus { border-color: var(--honey-d); box-shadow: 0 0 0 3px rgba(255,200,61,.35); }
.aform .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.aform .check input { width: 20px; height: 20px; accent-color: var(--green-d); }
.aform .check a { color: var(--wood-d); }
.aform .btn { margin-top: 4px; }
.aform .small { text-align: center; font-size: .84rem; font-weight: 800; color: var(--wood-d); }
.aerr { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ffe3de; color: #8e2416; font-weight: 800; font-size: .9rem; }
.mnote { background: #fff2c2; border-radius: 14px; padding: 10px; font-weight: 800; margin-bottom: 14px; }
.beta { font-weight: 800; font-size: .85rem; color: #3d6a1a; margin: 18px 0 4px; }
.authwrap .legal { font-size: .8rem; font-weight: 700; }
.authwrap .legal a { color: #2f5a12; }
@media (max-width: 640px) { .logo { font-size: 2.5rem; } .lhouse, .ltree { opacity: .55; } }


/* ══ Phase 2 ═══════════════════════════════════════ */
.dbtn { position: relative; }
.badge { position: absolute; top: -8px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; border: 2px solid #fff; font-style: normal;
    display: grid; place-items: center; font-size: .74rem; font-weight: 900; color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2); animation: badgepop .3s ease; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.badge.green { background: #4fb33a; } .badge.red { background: #e2513f; } .badge.orange { background: #f59a23; } .badge.gold { background: #f5a623; animation: badgepulse 1.2s ease infinite; }
@keyframes badgepop { from { transform: scale(0); } }
@keyframes badgepulse { 50% { transform: scale(1.18); } }
.ico.mid { width: 30px; height: 30px; }

/* Bestellbrett */
.daily { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #fff; border: 2px solid #ecd6a8; margin-bottom: 12px; }
.daily.ready { background: #fff6c8; border-color: #f5c84a; animation: glow 1.6s ease infinite; }
.daily.claimed { opacity: .75; }
.daily .dinfo { flex: 1; min-width: 0; }
.daily .dinfo b { font-size: .95rem; }
.daily .dinfo span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.daily .bar { height: 12px; margin: 5px 0; }
.daily .bar i { background: linear-gradient(180deg, #a8ec7a, #4fb33a); }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(255,200,61,.35); } }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.order { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; border: 2px solid #ecd6a8; box-shadow: 0 3px 0 #e2c48d; }
.order.can { border-color: #a8dc88; box-shadow: 0 3px 0 #8cc86a; background: linear-gradient(180deg, #fff, #f4fcee); }
.order.wait { justify-content: center; min-height: 150px; background: repeating-linear-gradient(-45deg, #fffaf0 0 12px, #fbf1dc 12px 24px); }
.ohead { display: flex; align-items: center; gap: 10px; }
.ohead b { display: block; font-size: 1rem; line-height: 1.15; }
.muted { color: var(--muted); font-size: .8rem; font-weight: 700; }
.portrait { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; filter: drop-shadow(0 2px 0 rgba(107,68,35,.25)); }
.portrait.empty { display: grid; place-items: center; background: #f3e3c3; border: 3px dashed #d8bc88; font-weight: 900; font-size: 1.5rem; color: #c9a66b; }
.oskip { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ecd6a8; background: #fffaf0; color: var(--muted); font-weight: 900; line-height: 1; padding: 0; }
.oskip:hover { color: var(--red-d); border-color: #ffc2b8; }
.needs { display: flex; flex-direction: column; gap: 4px; }
.need { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 12px; background: #fff1ee; font-weight: 800; font-size: .88rem; }
.need.ok { background: #eef9e6; }
.need .nn { flex: 1; color: var(--muted); }
.need b { color: var(--red-d); font-variant-numeric: tabular-nums; }
.need.ok b { color: var(--green-d); }
.orew { display: flex; align-items: center; flex-wrap: wrap; }
.order .deliver { width: 100%; }

/* Lager */
.capbox { padding: 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; margin-bottom: 12px; }
.capbox.warn { border-color: #f5c84a; background: #fffbea; }
.capbox.full { border-color: #ffc2b8; background: #fff1ee; }
.caprow { display: flex; justify-content: space-between; font-weight: 900; }
.bar.cap i { background: linear-gradient(180deg, #ffd75e, #f5a623); }
.capbox.full .bar.cap i { background: linear-gradient(180deg, #ff8a78, #e2513f); }
.capmsg { margin: 2px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.upgrade { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #f0fbe6; border: 2px solid #c6e8b0; margin-bottom: 8px; flex-wrap: wrap; }
.upgrade .uinfo { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.upgrade .uinfo span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.sitem.zero { opacity: .5; }

/* Einführung */
#guide { position: absolute; top: calc(80px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px;
    width: min(560px, calc(100vw - 20px)); padding: 8px 12px 8px 8px; border-radius: 20px; background: rgba(255,248,232,.98); border: 3px solid #fff;
    box-shadow: 0 4px 0 rgba(107,68,35,.35), 0 10px 22px rgba(30,20,5,.25); animation: guidein .35s cubic-bezier(.2,1.4,.4,1); }
#guide > img { width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto; animation: hover 2.4s ease-in-out infinite; }
#guide .gbody { flex: 1; min-width: 0; font-size: .92rem; font-weight: 700; line-height: 1.35; }
#guide .gbody > b { display: block; color: #b8650a; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
#guide .gskip { align-self: flex-start; border: 0; background: none; font-size: .72rem; font-weight: 800; color: var(--muted); text-decoration: underline; padding: 2px; }
@keyframes guidein { from { transform: translateX(-50%) translateY(-20px) scale(.9); opacity: 0; } }
#domarrow { position: absolute; z-index: 25; width: 0; height: 0; pointer-events: none; }
#domarrow::before { content: ''; position: absolute; left: -22px; bottom: 0; width: 44px; height: 54px; animation: arrowbob .8s ease-in-out infinite;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-34 -44 68 70'%3E%3Cpath d='M-16-40H16V-12H30L0 22-30-12H-16Z' fill='%23ffc83d' stroke='%236b4423' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes arrowbob { 50% { transform: translateY(-10px); } }
.tut-pulse { position: relative; z-index: 1; animation: tutpulse 1.1s ease-in-out infinite !important; outline: 4px solid #ffc83d; outline-offset: 2px; }
@keyframes tutpulse { 50% { box-shadow: 0 0 0 9px rgba(255,200,61,.5); } }

@media (max-width: 640px) {
    #guide { top: calc(104px + var(--safe-t)); padding: 6px 10px 6px 6px; }
    #guide > img { width: 48px; height: 48px; }
    #guide .gbody { font-size: .84rem; }
    .dbtn { width: 58px; font-size: .68rem; }
    .dbtn img { width: 30px; height: 30px; }
    .dbtn.main { width: 66px; }
    #dock { gap: 5px; padding: 7px 7px; }
    .orders { grid-template-columns: 1fr; }
    .order.wait { min-height: 0; }
}


/* ══ Phase 3 ═══════════════════════════════════════ */
.leftbtns { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 4; }
.lbtn { position: relative; display: flex; flex-direction: column; align-items: center; width: 66px; padding: 6px 0 4px; border-radius: 18px; border: 2px solid #fff;
    background: rgba(255,248,232,.95); box-shadow: 0 3px 0 rgba(107,68,35,.35), 0 6px 14px rgba(40,30,10,.15); font-weight: 900; font-size: .7rem; color: var(--ink); }
.lbtn img { width: 34px; height: 34px; }
.lbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(107,68,35,.35); }
body.moding .leftbtns, body.visiting .leftbtns, body.visiting #dock { opacity: 0; pointer-events: none; }
body.visiting #dock { transform: translateX(-50%) translateY(140%); }
#visitbar { position: absolute; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px;
    width: min(640px, calc(100vw - 20px)); padding: 10px 12px; border-radius: 22px; background: rgba(255,248,232,.98); border: 3px solid #fff;
    box-shadow: 0 5px 0 rgba(107,68,35,.4), 0 10px 22px rgba(30,20,5,.3); animation: rise .3s ease; flex-wrap: wrap; }
#visitbar > img { width: 46px; height: 46px; }
#visitbar .vinfo { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
#visitbar .vinfo b { font-size: 1.05rem; }
#visitbar .vinfo span { font-size: .8rem; font-weight: 700; color: var(--muted); }
#visitbar .vinfo .vh { color: #b0427a; }
#visitbar .btn img { vertical-align: middle; }
.lv { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; font-weight: 900; color: #fff; background: linear-gradient(#ffd75e, #f5a623); box-shadow: 0 3px 0 #c27a0a; text-shadow: 0 1px 1px rgba(90,50,0,.6); }
.flist, .slist { display: flex; flex-direction: column; gap: 8px; }
.frow, .srow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; position: relative; }
.frow.me { background: #fff6c8; border-color: #f5c84a; }
.finfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.finfo b { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; }
.finfo span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.fbtns { display: flex; gap: 6px; align-items: center; }
.fbtns .oskip, .frow .oskip { position: static; }
.online { color: #2f9a2e; }
.tagf { font-size: .75rem; font-weight: 900; color: var(--muted); background: #f3ecdc; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.fsearch { display: flex; gap: 8px; margin-bottom: 10px; }
.fsearch input, .sform input, .sform textarea, .chatform input { flex: 1; font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid #e4cc9c; background: #fff; color: var(--ink); outline: none; min-width: 0; }
.fsearch input:focus, .sform input:focus, .sform textarea:focus, .chatform input:focus { border-color: var(--honey-d); }
.empty { padding: 18px; text-align: center; font-weight: 700; color: var(--muted); background: #fffaf0; border: 2px dashed #ecd6a8; border-radius: 16px; }
.rank { width: 26px; text-align: center; font-weight: 900; color: var(--honey-dd); }
.hon { white-space: nowrap; }
.queen { font-size: .75rem; color: #b8650a; }
.stag { color: var(--muted); font-size: .85rem; }
/* Aufgaben */
.loginbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff6c8; border: 2px solid #f5c84a; margin-bottom: 12px; animation: glow 1.6s ease infinite; }
.loginbar img { width: 44px; height: 44px; }
.loginbar div { flex: 1; display: flex; flex-direction: column; }
.loginbar span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.qnew { margin: 0 0 10px; }
.quests { display: flex; flex-direction: column; gap: 8px; }
.quest { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.quest.done { border-color: #a8dc88; background: #f4fcee; }
.quest.claimed { opacity: .6; }
.qinfo { flex: 1; min-width: 0; }
.qinfo b { font-size: .95rem; }
.quest .bar { position: relative; height: 16px; margin: 5px 0; }
.quest .bar i { background: linear-gradient(180deg, #a8ec7a, #4fb33a); }
.quest .bar span { position: absolute; inset: 0; text-align: center; font-size: .68rem; font-weight: 900; line-height: 16px; color: #3a2a12; }
.qrw { display: flex; flex-wrap: wrap; align-items: center; }
.qok { font-size: 1.5rem; color: #4fb33a; font-weight: 900; padding: 0 8px; }
/* Kalender */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar.big { grid-template-columns: repeat(4, 1fr); }
.cday { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: #fff; border: 2px solid #ecd6a8; font-size: .78rem; }
.cday .cd { font-weight: 900; color: var(--muted); font-size: .7rem; }
.cday b { font-size: .85rem; }
.cday.today { background: #fff6c8; border-color: #f5a623; box-shadow: 0 0 0 4px rgba(255,200,61,.35); animation: glow 1.6s ease infinite; }
.cday.done { opacity: .55; }
.cday .ok { position: absolute; top: 4px; right: 6px; font-style: normal; color: #4fb33a; font-weight: 900; }
.calendar.big .cday.seven { grid-column: span 2; background: linear-gradient(#fff6c8, #ffe9a0); }
/* Schwarm */
.sgoal { padding: 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; margin-bottom: 10px; }
.tierbar { position: relative; height: 20px; border-radius: 99px; background: #efe1c2; margin: 10px 0 6px; overflow: visible; box-shadow: inset 0 2px 3px rgba(80,50,0,.15); }
.tierbar i { display: block; height: 100%; border-radius: 99px; background: repeating-linear-gradient(-45deg, #ffd75e 0 10px, #f5b532 10px 20px); }
.tmark { position: absolute; top: -4px; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px; background: #c9b48e; border: 2px solid #fff; }
.tmark.on { background: #4fb33a; }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; text-align: center; }
.tier span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tier.ready { border-color: #f5c84a; background: #fff6c8; }
.tier.claimed { opacity: .6; }
.chat { height: min(46vh, 360px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: #fffaf0; border: 2px solid #ecd6a8; margin-bottom: 8px; overscroll-behavior: contain; }
.cmsg { max-width: 80%; padding: 6px 10px; border-radius: 14px 14px 14px 4px; background: #fff; border: 2px solid #ecd6a8; font-size: .9rem; font-weight: 600; word-wrap: break-word; }
.cmsg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #f0fbe6; border-color: #c6e8b0; }
.cmsg b { font-size: .78rem; color: #b8650a; }
.cmsg .ct { font-size: .68rem; color: var(--muted); }
.chatform { display: flex; gap: 8px; }
.small { font-size: .75rem; }
.sform { display: flex; flex-direction: column; gap: 10px; }
.sform label { display: flex; flex-direction: column; gap: 4px; font-weight: 900; font-size: .85rem; color: var(--wood-dd); }
.sform .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.emblems { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.emb { display: grid !important; place-items: center; padding: 6px; border-radius: 12px; border: 2px solid #ecd6a8; background: #fff; cursor: pointer; }
.emb input { display: none; }
.emb:has(input:checked) { border-color: #f5a623; background: #fff6c8; box-shadow: 0 0 0 3px rgba(255,200,61,.35); }
.leave { margin-top: 16px; padding-top: 12px; border-top: 2px dashed #ecd6a8; text-align: center; }
@media (max-width: 640px) {
    .leftbtns { top: auto; bottom: calc(110px + var(--safe-b)); transform: none; gap: 8px; }
    .lbtn { width: 56px; font-size: .62rem; padding: 5px 0 3px; }
    .lbtn img { width: 28px; height: 28px; }
    .calendar { grid-template-columns: repeat(4, 1fr); }
    .emblems { grid-template-columns: repeat(4, 1fr); }
    #visitbar .vinfo { min-width: 0; }
}
.sform .check input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--green-d); }
@media (max-width: 640px) {
    #visitbar { gap: 8px; padding: 8px 10px; }
    #visitbar > img { width: 36px; height: 36px; }
    #visitbar .vinfo { flex: 1 1 calc(100% - 52px); }
    #visitbar .btn { flex: 1 1 auto; }
}


/* ══ Phase 4: Saison ═══════════════════════════════ */
.lbtn.season { background: linear-gradient(180deg, #fffbe8, #ffe9a8); border-color: #fff; }
.lbtn.season small { font-size: .6rem; font-weight: 800; color: var(--muted); line-height: 1; margin-top: 1px; }
.seasonp .phead .ptitle h2 { color: #24557e; text-shadow: 0 2px 0 rgba(255,255,255,.9); }
.seasonp .phead .psub { color: rgba(40,40,60,.75); }
.season-spring.seasonp .ptitle h2 { color: #9c2f5c; }
.season-summer.seasonp .ptitle h2 { color: #8a4b00; }
.season-autumn.seasonp .ptitle h2 { color: #7a2a14; }
.settings h3 { margin-top: 18px; }
.settings h3:first-child { margin-top: 0; }
.season-winter .phead { border-bottom-color: #6aaed6; }
.season-spring .phead { border-bottom-color: #e07fa4; }
.season-autumn .phead { border-bottom-color: #c4553a; }
.sinfo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sinfo .tokens { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 2px solid #ecd6a8; font-weight: 800; }
.sinfo .tokens img { width: 30px; height: 30px; }
.sinfo .tokens b { font-size: 1.15rem; }
.sbanner { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 150px; border-radius: 18px; padding: 10px; margin-bottom: 10px; box-shadow: inset 0 -20px 30px rgba(255,255,255,.4); }
.sbanner img { height: 120px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); animation: hover 3s ease-in-out infinite; }
.sbanner img:nth-child(2) { animation-delay: -1.5s; }
.story { display: flex; flex-direction: column; gap: 8px; }
.chap { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.chap .cn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f3e3c3; font-weight: 900; color: var(--wood-dd); flex: 0 0 auto; }
.chap b { flex: 1; }
.chap.done { opacity: .65; }
.chap.locked { opacity: .5; background: #fbf6ec; }
.chap.cur { flex-direction: column; align-items: stretch; gap: 10px; border-color: #f5c84a; background: #fffbea; }
.speech { display: flex; gap: 10px; align-items: flex-start; }
.speech img { width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto; }
.speech div { position: relative; background: #fff; border: 2px solid #ecd6a8; border-radius: 14px; padding: 8px 12px; flex: 1; }
.speech p { margin: 4px 0 0; font-weight: 600; font-size: .9rem; color: var(--ink); }
.goal .bar { margin: 6px 0 2px; }
.passhead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; margin-bottom: 10px; }
.passhead img { width: 50px; height: 50px; }
.passhead > div { flex: 1; }
.passhead .bar i { background: linear-gradient(180deg, #b9a3ff, #8a6fe0); }
.premium { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #f1ebff, #fff6c8); border: 2px solid #cdbcf7; margin-bottom: 10px; flex-wrap: wrap; }
.premium > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.premium span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.passgrid { display: flex; flex-direction: column; gap: 6px; }
.passgrid .prow { display: grid; grid-template-columns: 46px 1fr 1fr; gap: 6px; align-items: stretch; margin: 0; }
.passgrid .prow.head span { font-size: .75rem; font-weight: 900; color: var(--muted); text-align: center; }
.passgrid .tn { display: grid; place-items: center; border-radius: 12px; background: #f3e3c3; font-weight: 900; color: var(--wood-dd); }
.passgrid .reached .tn { background: linear-gradient(#b9a3ff, #8a6fe0); color: #fff; }
.passgrid .next .tn { outline: 3px dashed #8a6fe0; }
.passgrid .cell { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #ecd6a8; min-height: 44px; }
.passgrid .cell.prem { background: #faf7ff; border-color: #ddd0fb; }
.passgrid .cell.lockd { opacity: .6; }
.lockic { font-size: .9rem; }
.good.vouch { background: #fff6c8; border-radius: 10px; padding: 1px 6px 1px 2px; }
.good.vouch img { width: 28px; height: 28px; object-fit: contain; }
.sshop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sitem2 { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 18px; background: #fff; border: 2px solid #ecd6a8; text-align: center; }
.sitem2.deco { border-color: #f5c84a; background: linear-gradient(#fffbea, #fff); }
.simg { height: 90px; display: grid; place-items: center; }
.simg img { max-height: 90px; max-width: 100%; object-fit: contain; }
.sitem2:not(.deco) .simg img { width: 56px; height: 56px; }
.excl { font-size: .7rem; font-weight: 900; color: #b0427a; background: #ffe3ef; padding: 1px 8px; border-radius: 99px; }
.ccost.vou { background: #f1ebff; }
.cmsg .rep { border: 0; background: none; color: var(--muted); font-size: .8rem; padding: 0 4px; float: right; }
.cmsg .rep:hover { color: var(--red-d); }
.settings .sform { margin-bottom: 6px; }
.settings h3.danger { color: var(--red-d); }
.settings .btn { width: 100%; }
.settings .legal { text-align: center; font-size: .8rem; font-weight: 700; margin-top: 12px; }
.settings .legal a { color: var(--muted); }
.bye-note { background: #fff; color: #6b4423; }
@media (max-width: 640px) {
    .passgrid .prow { grid-template-columns: 34px 1fr 1fr; }
    .passgrid .cell { padding: 5px; }
    .passgrid .cell .good { font-size: .8rem; }
    .sshop { grid-template-columns: 1fr 1fr; }
}
.authwrap .ver { margin: 6px 0 0; font-size: .72rem; opacity: .75; }

/* ══ v0.2.0: Pioniere ═════════════════════════════ */
.pionote { display: flex; gap: 10px; align-items: center; text-align: left; background: #fffdf3; border: 2px solid #f2c94c; border-radius: 16px; padding: 10px 12px; margin: 0 0 12px; font-size: .86rem; font-weight: 700; color: var(--wood-dd); box-shadow: 0 3px 0 rgba(160,110,30,.18); }
.pionote img { width: 42px; height: 42px; flex: 0 0 auto; }
.pionote b { display: block; font-weight: 900; }
.piohead { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.1rem; font-weight: 900; color: var(--wood-dd); }
.piohead img { width: 40px; height: 40px; }
.piotext { margin: 0; font-size: .88rem; font-weight: 700; color: var(--muted); text-align: left; }
.medal { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; margin: 0 .15em; }
.piowel { text-align: center; }
.piowel .pmedal { width: 120px; height: 120px; margin: -4px auto 2px; display: block; filter: drop-shadow(0 6px 8px rgba(120,70,0,.25)); animation: piopop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes piopop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.piowel .ptier { font-size: 1.5rem; font-weight: 900; margin: 2px 0 0; }
.piowel .pold { margin: 2px 0 10px; font-weight: 800; color: var(--muted); }
.piostats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.piostats div { background: #fff8e6; border-radius: 12px; padding: 8px 4px; }
.piostats b { display: block; font-size: 1.2rem; font-weight: 900; color: var(--wood-dd); }
.piostats span { font-size: .72rem; font-weight: 800; color: var(--muted); }
.piopts { font-weight: 800; color: var(--wood-dd); margin: 6px 0; }
.piopts b { font-size: 1.1rem; }
.piorew { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.pionext { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.piolink { background: #fff8e6; border-radius: 14px; padding: 10px 12px; margin: 6px 0; }
.piolink .aform { gap: 8px; }
.piobadge { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.piobadge img { width: 34px; height: 34px; }
@media (max-width: 420px) { .piostats { grid-template-columns: repeat(2, 1fr); } }
.piowel .ptier.t1 { color: #9a5a22; } .piowel .ptier.t2 { color: #5b6b7c; } .piowel .ptier.t3 { color: #b07d00; } .piowel .ptier.t4 { color: #1d8fc2; }
#pname .medal { width: 1.05em; height: 1.05em; }

/* ══ v0.3.0: Königinnen, Album, Weiselzellen ══════════════ */
:root { --r1: #7d9a4a; --r2: #3a8fd6; --r3: #9b4fd6; --r4: #e8830c; --r5: #e0457a; }
.r1 { --rc: var(--r1); --rb: #eef6dd; } .r2 { --rc: var(--r2); --rb: #e3f0fc; } .r3 { --rc: var(--r3); --rb: #f2e6fc; }
.r4 { --rc: var(--r4); --rb: #fff0d6; } .r5 { --rc: var(--r5); --rb: #ffe3ee; }
.lbtn.gift { background: linear-gradient(180deg, #fff2f4, #ffd3da); animation: giftwiggle 2.4s ease-in-out infinite; }
@keyframes giftwiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-7deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }
@media (max-height: 760px) { .leftbtns { gap: 6px; } .lbtn { width: 58px; padding: 4px 0 3px; } .lbtn img { width: 28px; height: 28px; } .lbtn span { font-size: .66rem; } }
.tab .dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #e2513f; color: #fff; font-size: .72rem; margin-left: 4px; text-shadow: none; }
.qstars { display: inline-flex; gap: 1px; font-size: .95rem; letter-spacing: -1px; }
.qstars i { font-style: normal; color: #e4d3b0; text-shadow: 0 1px 0 rgba(107,68,35,.25); }
.qstars i.on { color: #ffb800; text-shadow: 0 1px 0 #b77a00; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.qgrid.small { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-bottom: 10px; }
.qcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 8px; border-radius: 18px; border: 3px solid var(--rc); background: linear-gradient(180deg, var(--rb), #fff 70%); box-shadow: 0 3px 0 rgba(0,0,0,.12); transition: transform .1s; }
.qcard:active { transform: translateY(2px); }
.qcard .qimg { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff 30%, var(--rb) 70%); }
.qcard .qimg img { width: 84px; height: 84px; }
.r3 .qimg, .r4 .qimg, .r5 .qimg { box-shadow: 0 0 0 3px #fff, 0 0 16px var(--rc); }
.qname { font-size: .86rem; font-weight: 900; text-align: center; line-height: 1.1; }
.qstate { font-size: .7rem; font-weight: 800; color: var(--muted); }
.qstate.on { color: var(--green-d); }
.qpair { position: absolute; top: 4px; right: 4px; font-size: .7rem; font-weight: 900; color: #fff; background: #f5a623; border-radius: 99px; padding: 1px 6px; box-shadow: 0 2px 0 #c27a0a; }
.qsum { font-weight: 800; color: var(--muted); font-size: .86rem; margin: 0 0 8px; }
.qhint { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #f6efff; border: 2px solid #d9c4f5; margin-bottom: 10px; text-align: left; }
.qhint img { width: 78px; flex: 0 0 auto; }
.qhint b { display: block; font-size: 1rem; }
.qhint div { font-size: .86rem; font-weight: 700; }
.qhint .btn { margin-top: 6px; }
.qmini { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; }
.qmini img { width: 28px; height: 28px; }
.abar { margin-bottom: 8px; }
.abar b { font-size: 1rem; }
.abar .bar { margin-top: 4px; }
.ams { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.amile { flex: 0 0 auto; min-width: 128px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; background: #fff; border: 2px solid #ecd6a8; opacity: .75; }
.amile > b { font-size: 1.15rem; font-weight: 900; color: var(--wood-dd); }
.amile.ready { opacity: 1; border-color: #f5c84a; background: #fff8d6; box-shadow: 0 0 0 3px rgba(255,200,61,.35); }
.amile.got { opacity: .6; }
.amile .arw { display: flex; flex-wrap: wrap; justify-content: center; font-size: .82rem; }
.amile .ok { color: var(--green-d); font-weight: 900; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.acard { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid var(--rc); background: linear-gradient(180deg, var(--rb), #fff 75%); }
.acard img { width: 64px; height: 64px; }
.acard b { font-size: .76rem; font-weight: 900; text-align: center; line-height: 1.1; }
.acard .qstars { font-size: .78rem; }
.acard .src { font-size: .64rem; font-weight: 800; color: var(--muted); text-align: center; line-height: 1.1; }
.acard.unknown { border-style: dashed; background: #f7f1e4; }
.acard.unknown img, .qbig.unknown img { filter: brightness(0) opacity(.22); }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cellbox { padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.chead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.chead b { display: block; font-size: .98rem; }
.chead span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.odds { display: flex; flex-direction: column; gap: 4px; }
.odd { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; border-radius: 9px; background: #f7f1e4; overflow: hidden; font-size: .78rem; }
.odd i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rc); opacity: .22; }
.odd b, .odd em { position: relative; font-weight: 900; font-style: normal; }
.odd b { color: var(--rc); }
.srclist { margin: 0; padding-left: 4px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; font-weight: 700; font-size: .86rem; }
.qdetail .pbody { text-align: center; }
.qbig { width: 150px; height: 150px; margin: 2px auto 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff 35%, var(--rb) 72%); border: 4px solid var(--rc); box-shadow: 0 0 24px var(--rc); }
.qbig img { width: 140px; height: 140px; }
.qdesc { font-weight: 700; color: var(--wood-dd); margin: 6px 0; }
.qeff { display: flex; flex-direction: column; gap: 3px; margin: 8px auto; max-width: 360px; padding: 8px 10px; border-radius: 14px; background: #fff8e6; text-align: left; }
.qeff b { font-size: .82rem; color: var(--muted); }
.qeff span { font-weight: 800; font-size: .88rem; }
.qwhere { font-size: .86rem; font-weight: 700; color: var(--muted); }
.qdetail .pfoot { flex-wrap: wrap; }
.hlist { display: flex; flex-direction: column; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; border: 2px solid #ecd6a8; background: #fff; text-align: left; }
.hrow:disabled { opacity: .55; }
.hrow > img { width: 54px; }
.hrow div { flex: 1; display: flex; flex-direction: column; }
.hrow span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.hrow .hq { width: 38px; height: 38px; }
.hqueen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 8px 0; border-radius: 14px; border: 2px solid var(--rc, #e4cc9c); background: linear-gradient(90deg, var(--rb, #fff8e6), #fff); text-align: left; }
.hqueen img { width: 50px; height: 50px; flex: 0 0 auto; }
.hqueen div { flex: 1; display: flex; flex-direction: column; }
.hqueen span { font-size: .78rem; font-weight: 800; color: var(--muted); }
.hqueen.none { border-style: dashed; background: #fffaf0; }
.hqueen.none img { opacity: .5; }
.good.queen { color: var(--r3); }
.oddsbtn { border: 0; background: none; color: var(--r2); font-weight: 900; text-decoration: underline; font-size: .78rem; padding: 0 4px; }
.good.qreward { background: var(--rb); border-radius: 10px; padding: 1px 6px 1px 2px; }
.good.qreward .ico { width: 28px; height: 28px; }
.hatchp .pbody { text-align: center; overflow: hidden; }
.hatch { position: relative; height: 190px; display: grid; place-items: center; }
.hcell img { width: 110px; height: 110px; animation: cellshake .25s ease-in-out infinite alternate; }
@keyframes cellshake { from { transform: rotate(-6deg) scale(1); } to { transform: rotate(6deg) scale(1.04); } }
.hatch.crack .hcell img { animation: cellcrack .6s ease-in forwards; }
@keyframes cellcrack { 0% { transform: scale(1); filter: brightness(1); } 60% { transform: scale(1.25); filter: brightness(1.8); } 100% { transform: scale(.2); opacity: 0; filter: brightness(3); } }
.hreveal { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.3); }
.hatch.open .hreveal { animation: qreveal .7s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes qreveal { to { opacity: 1; transform: none; } }
.hatch.open .hcell { display: none; }
.hreveal img { position: relative; width: 170px; height: 170px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.rays { position: absolute; width: 260px; height: 260px; animation: spin 9s linear infinite; }
.rays i { position: absolute; left: 50%; top: 0; width: 26px; height: 50%; margin-left: -13px; transform-origin: 50% 100%; background: linear-gradient(to top, transparent, var(--rc)); opacity: .35; clip-path: polygon(50% 100%, 0 0, 100% 0); }
@keyframes spin { to { transform: rotate(360deg); } }
.hinfo { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.hinfo.show { opacity: 1; transform: none; }
.hname { font-size: 1.4rem; font-weight: 900; color: var(--wood-dd); }
.hrar { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.newtag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: linear-gradient(#ff8fb3, #e0457a); color: #fff; font-weight: 900; font-size: .78rem; box-shadow: 0 2px 0 #a8284f; animation: badgepulse 1.2s ease infinite; }

/* ══ v0.3.0: Ruhm, Ranglisten, Profil, Geschenke ══════════ */
.fbody .loading { text-align: center; color: var(--muted); font-weight: 800; }
.achhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #fff3c4, #fff); margin-bottom: 8px; font-weight: 800; }
.achhead b { font-size: 1.3rem; color: var(--honey-dd); }
.achlist { display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.ach.ready { border-color: #f5c84a; background: #fffbe8; box-shadow: 0 0 0 3px rgba(255,200,61,.3); }
.ach.done { background: linear-gradient(90deg, #fff3c4, #fff); }
.aicon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff3d6; flex: 0 0 auto; }
.aicon .ico.big { width: 34px; height: 34px; }
.ainfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ainfo b { font-size: .95rem; }
.ainfo .bar { height: 10px; }
.aval, .amaster { font-size: .74rem; font-weight: 800; color: var(--muted); }
.amaster { color: var(--honey-dd); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 6px; border-radius: 3px; background: #ecdcbc; }
.pips i.on { background: linear-gradient(#ffd75e, #f5a623); }
.arew { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .8rem; max-width: 42%; }
.arew > span { margin: 0; }
.ach .ok { color: var(--green-d); font-weight: 900; font-size: 1.3rem; }
.rlist { display: flex; flex-direction: column; gap: 6px; }
.rrow { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: #fff; border: 2px solid #ecd6a8; text-align: left; width: 100%; }
.rrow.me { background: #fff6c8; border-color: #f5c84a; }
.rrow.mine { margin-top: 8px; }
.rrow .rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; background: #f3e3c3; flex: 0 0 auto; font-size: .88rem; }
.rank.r1 { background: linear-gradient(#ffe590, #f5b623); color: #6b4423; box-shadow: 0 2px 0 #c27a0a; }
.rank.r2 { background: linear-gradient(#ffffff, #c9d3de); box-shadow: 0 2px 0 #8a99ab; }
.rank.r3 { background: linear-gradient(#f6c08a, #d08a4a); box-shadow: 0 2px 0 #9a5a26; }
.rrow .score { font-size: .98rem; white-space: nowrap; }
.rrow .score small { font-size: .7rem; color: var(--muted); }
.league { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #fff3c4, #fff); margin-bottom: 8px; }
.league img { width: 44px; }
.league b { display: block; font-size: 1.1rem; }
.league span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.lrew { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 8px; }
.lrew > div { padding: 6px 8px; border-radius: 12px; background: #fff; border: 2px solid #ecd6a8; font-size: .78rem; }
.lrew > div > b { display: block; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.stab { border: 2px solid #ecd6a8; background: #fff; border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: .82rem; }
.stab.on { background: var(--wood-dd); border-color: var(--wood-dd); color: #fff; }
.phero { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.phero > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.pname { font-size: 1.25rem; }
.ptitle { font-weight: 900; color: var(--r3); font-size: .9rem; }
.pmeta { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pstats div { padding: 8px; border-radius: 12px; background: #fff8e6; text-align: center; }
.pstats b { display: block; font-size: 1.15rem; color: var(--wood-dd); }
.pstats span { font-size: .72rem; font-weight: 800; color: var(--muted); }
.pleague { text-align: center; font-weight: 800; color: var(--muted); font-size: .86rem; margin: 8px 0; }
.pshow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pshow .qcard .qimg, .pshow .qcard .qimg img { width: 64px; height: 64px; }
.tsel { width: 100%; font: inherit; font-weight: 800; padding: 10px 12px; border-radius: 12px; border: 2px solid #e4cc9c; background: #fff; }
.pfr { font-weight: 900; color: var(--honey-dd); align-self: center; }
.gifts { display: flex; flex-direction: column; gap: 8px; }
.gift { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ffc4cf; }
.gift > img { width: 44px; flex: 0 0 auto; }
.gift > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gift span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.grew { display: flex; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 520px) { .arew { max-width: 38%; } .qcard .qimg, .qcard .qimg img { width: 70px; height: 70px; } .qgrid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } }
.lrew .good { white-space: normal; }
.oddsbtn { cursor: pointer; }
.lbtn.gift span { font-size: .62rem; }

/* ══ v0.4.0: App & Mitteilungen ══════════════════ */
.pushbox { background: #fff8e6; border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; }
.pushstate { font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pushprefs { display: flex; flex-direction: column; gap: 6px; }
.pushprefs .check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.pushprefs input { width: 18px; height: 18px; accent-color: #f5a623; flex: 0 0 auto; }
.mbtn.app { background: linear-gradient(#fff6d0, #ffe9a0); }
.stepn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(#ffd75e, #f5a623); color: #fff; font-weight: 900; flex: 0 0 auto; }

/* ══ v0.5.0: Derby, Wunder, Sticker, Expeditionen, E-Mail & Kontakt ══════════════════ */
.sec small { font-weight: 800; color: var(--muted); font-size: .78rem; margin-left: 6px; }
.small { font-size: .82rem; }
.center { text-align: center; }
.hint.gold { color: #b07800; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.linkbtn { border: 0; background: none; font: inherit; font-weight: 800; font-size: .88rem; color: var(--wood-d); text-decoration: underline; cursor: pointer; padding: 4px; align-self: center; }
.aok { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #e6f7da; color: #2f6b12; font-weight: 800; font-size: .9rem; }
.aform select, .aform textarea { font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 14px; border-radius: 14px; border: 2px solid #e4cc9c; background: #fff; color: var(--ink); outline: none; resize: vertical; }

/* Derby-Hinweis im HUD */
.derbychip { position: absolute; top: 78px; left: 0; display: flex; align-items: center; gap: 6px; max-width: 250px; padding: 5px 12px 9px 8px; border: 2px solid #fff; border-radius: 14px;
  background: linear-gradient(#fff7df, #ffe7a8); box-shadow: 0 3px 0 rgba(107,68,35,.35); font-weight: 800; font-size: .78rem; color: var(--ink); overflow: hidden; cursor: pointer; animation: chipIn .4s ease-out; }
.derbychip .ico { width: 24px; height: 24px; flex: 0 0 auto; }
.derbychip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.derbychip i { position: absolute; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #7fd05a, #2f9f2a); }
@keyframes chipIn { from { transform: translateY(-10px); opacity: 0; } }

/* Derby */
.dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 3px solid var(--lg); box-shadow: 0 3px 0 rgba(0,0,0,.08); font-weight: 800; font-size: .85rem; }
.dleague { padding: 4px 12px; border-radius: 99px; background: var(--lg); color: #fff; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.dmine { margin-left: auto; }
.track { margin: 12px 0 6px; padding: 10px; border-radius: 18px; background: repeating-linear-gradient(90deg, #8fcf63 0 22px, #84c558 22px 44px); box-shadow: inset 0 3px 6px rgba(40,80,0,.25); display: flex; flex-direction: column; gap: 6px; }
.lane { display: grid; grid-template-columns: 22px 1fr 128px; gap: 8px; align-items: center; background: rgba(255,255,255,.82); border-radius: 12px; padding: 5px 8px; }
.lane.me { background: #fff6cf; box-shadow: 0 0 0 3px #f5b532; }
.lane.npc { opacity: .92; }
.lpos { font-weight: 900; color: var(--wood-d); text-align: center; }
.lrun { position: relative; height: 26px; border-radius: 99px; background: #f1e6cf; border-right: 6px solid #e2513f; }
.lbar { position: absolute; left: 0; top: 9px; height: 8px; border-radius: 99px; background: repeating-linear-gradient(-45deg, #ffd75e 0 8px, #f5b532 8px 16px); transition: width 1s; }
.lrunner { position: absolute; top: -6px; width: 36px; height: 36px; margin-left: -18px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); transition: left 1s; animation: bob 1.6s ease-in-out infinite; }
.lane.npc .lrunner { border-radius: 50%; background: #fff; width: 32px; height: 32px; border: 2px solid #fff; }
.lname { display: flex; flex-direction: column; line-height: 1.1; font-size: .8rem; font-weight: 700; overflow: hidden; }
.lname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lname small { color: var(--muted); font-size: .68rem; }
.lname span { font-weight: 900; color: var(--wood-d); }
@keyframes bob { 50% { transform: translateY(-3px); } }
.dtask { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; margin: 10px 0; }
.dtask.mine { border-color: #7fd05a; background: #f3ffe9; }
.dtinfo { flex: 1; min-width: 0; font-weight: 700; font-size: .82rem; }
.dtinfo .bar { height: 12px; margin: 5px 0; }
.dboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; text-align: center; font-size: .82rem; box-shadow: 0 3px 0 #e2c48d; }
.dcard b { line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.dcard.taken { background: #f6f1e6; opacity: .85; box-shadow: none; }
.dcard.mine { background: #f3ffe9; border-color: #7fd05a; opacity: 1; }
.dpts { position: absolute; top: 6px; right: 8px; font-weight: 900; color: #2f9f2a; font-size: .8rem; }
.dtime, .dwho, .dneed { font-weight: 800; color: var(--muted); font-size: .74rem; }
.dneed { color: #b0532a; }
.dms { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.dmile { flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 14px; background: #f6efe0; filter: grayscale(.6); opacity: .8; font-size: .78rem; text-align: center; }
.dmile.on { background: #fff3cf; filter: none; opacity: 1; box-shadow: 0 0 0 2px #f5b532; }
.dmile.got { background: #eef9e4; box-shadow: none; }
.dmrw { display: flex; flex-wrap: wrap; justify-content: center; }
.dmrw .good { margin: 0 3px; font-size: .78rem; }
.dmrw .good .ico { width: 18px; height: 18px; }
.dmem { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dmem div { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid #f0e2c3; font-size: .8rem; }
.dmem div.me { border-color: #f5b532; }
.dmem span { color: var(--muted); font-weight: 700; }
.drules { margin: 12px 0 4px; padding: 8px 12px; border-radius: 14px; background: #fffaf0; border: 2px dashed #ecd6a8; font-size: .84rem; }
.drules summary { font-weight: 900; cursor: pointer; }
.dprize { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.dprize > span { font-size: 1.3rem; }
.cmsg.derbymsg { align-self: center; text-align: center; background: linear-gradient(#fff6cf, #ffe9a6); border: 2px solid #f5c44f; border-radius: 14px; padding: 6px 12px; font-weight: 800; font-size: .84rem; max-width: 92%; }
.cmsg.derbymsg .ct { display: block; margin-top: 2px; }

/* Imkerwunder */
.whero { position: relative; display: flex; justify-content: center; margin: -4px 0 4px; }
.whero img { width: 220px; max-width: 70%; filter: drop-shadow(0 8px 10px rgba(110,70,0,.25)); }
.whero.small img { width: 140px; }
.wlvl { position: absolute; top: 8px; left: calc(50% + 50px); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3a0, #f5b532); border: 4px solid #6b4423; font-weight: 900; font-size: 1.3rem; color: #6b4423; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.weff { text-align: center; font-weight: 800; margin-bottom: 6px; }
.weff b { display: block; font-size: 1.1rem; color: #2f7f22; }
.weff span { color: var(--muted); font-size: .84rem; }
.wprog .bar { height: 22px; }
.wbar i { background: repeating-linear-gradient(-45deg, #ff9ec7 0 10px, #f27fb0 10px 20px); box-shadow: inset 0 -3px 0 rgba(180,40,100,.3); }
.bpbox { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff0f6; border: 2px solid #f6c6dc; margin: 8px 0; }
.bpbox b { display: block; }
.bpbox .muted { font-size: .8rem; font-weight: 700; }
.wgive, .wpick { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.wpick b { min-width: 70px; text-align: center; font-size: 1.1rem; }
.wbuy { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; font-size: .84rem; margin: 4px 0 8px; }
.wranks { display: flex; flex-direction: column; gap: 6px; }
.wrank { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: #fff; border: 2px solid #f0e2c3; font-size: .84rem; }
.wrank .wpl { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; color: #fff; flex: 0 0 auto; }
.wrank.p1 .wpl { background: linear-gradient(#ffe066, #e8a010); } .wrank.p2 .wpl { background: linear-gradient(#e9eef3, #8a99ab); } .wrank.p3 .wpl { background: linear-gradient(#f6c08a, #9a5a26); }
.wrank b { display: block; }
.wrw .good { font-size: .8rem; }
.wrw .good .ico { width: 18px; height: 18px; }
.wlist { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; }
.wcard > img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.winfo { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; }
.winfo .bar { height: 12px; margin: 4px 0; }
.ccost.plan { color: #6b4fb5; }
.ccost.plan.poor { color: #b0532a; }
.ccost.goodsc .good { font-size: .8rem; margin: 0 4px 0 0; }
.ccost.goodsc .good .ico { width: 18px; height: 18px; }
.cmeta.weff { color: #2f7f22; font-weight: 800; font-size: .72rem; line-height: 1.15; margin: 2px 0; }

/* Sticker-Album */
.ahead { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.ahead > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ahead .muted { font-size: .8rem; font-weight: 700; }
.ahead .bar { height: 12px; margin: 4px 0 0; }
.apages { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.apg { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 62px; padding: 6px 0; border: 2px solid #ecd6a8; border-radius: 14px; background: #fff; font-weight: 900; font-size: .72rem; color: var(--muted); }
.apg .ico { width: 28px; height: 28px; }
.apg.on { border-color: #f5b532; background: #fff6cf; color: var(--ink); }
.apg.full { background: #eef9e4; }
.apg.ready::after { content: '!'; position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #e8a010; color: #fff; display: grid; place-items: center; font-size: .75rem; }
.apage { padding: 12px; border-radius: 20px; background: linear-gradient(#fffdf6, #fff4dc); border: 3px solid #e9cf94; box-shadow: inset 0 0 0 4px #fffaf0; }
.apage h3 { margin: 0 0 10px; text-align: center; font-size: 1.05rem; color: var(--wood-d); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sgrid.small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.sslot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stk { position: relative; width: 100%; max-width: 132px; display: flex; flex-direction: column; align-items: center; padding: 6px 6px 4px; border-radius: 14px; background: #fff; border: 3px solid var(--sc, #d8c7a2);
  box-shadow: 0 3px 0 rgba(107,68,35,.2); transform: rotate(-1deg); font-size: .72rem; text-align: center; }
.sslot:nth-child(even) .stk { transform: rotate(1.2deg); }
.stk.r1 { --sc: #b8c4cf; } .stk.r2 { --sc: #6cc25b; } .stk.r3 { --sc: #5ba7e8; } .stk.r4 { --sc: #a56ee0; } .stk.r5 { --sc: #f2b81c; background: linear-gradient(#fffbe8, #fff0b8); }
.sfr { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fff, #f6efe0); overflow: hidden; }
.sfr img { width: 88%; height: 88%; object-fit: contain; }
.stk b { display: block; margin-top: 3px; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.sst { color: var(--sc); font-style: normal; font-size: .7rem; letter-spacing: -1px; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.stk em { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #e2513f; color: #fff; font-style: normal; font-weight: 900; font-size: .72rem; display: grid; place-items: center; }
.stk.miss { background: #f3ede1; border-style: dashed; box-shadow: none; }
.stk.miss .sfr img { filter: brightness(0) opacity(.18); }
.stk.miss b, .stk.miss .sst { opacity: .55; }
.wish { border: 0; background: none; font: inherit; font-size: .72rem; font-weight: 900; color: #b07800; cursor: pointer; }
.wish.on { color: #e2513f; }
.arew { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; font-weight: 800; }
.afull { margin-top: 10px; padding: 10px; border-radius: 16px; background: #fffaf0; border: 2px dashed #ecd6a8; text-align: center; font-size: .86rem; }
.afull.ready { border-style: solid; border-color: #f5b532; background: #fff6cf; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 18px; background: #fff; border: 2px solid #ecd6a8; text-align: center; font-size: .84rem; }
.pack .ico.big { width: 72px; height: 72px; }
.pack.empty { opacity: .6; }
.trow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: #fff; border: 2px solid #f0e2c3; margin-bottom: 6px; }
.trow .stk { width: 76px; flex: 0 0 auto; font-size: .62rem; }
.trow.can { border-color: #f5b532; background: #fffbe9; }
.tinfo { flex: 1; font-size: .84rem; font-weight: 700; }
.dupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.recv { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.flist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.vhead { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff6cf; }
.vhead b { display: block; font-size: 1.2rem; }
.vrec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; font-weight: 800; }
.vaults { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.vault { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; text-align: center; font-size: .82rem; }
.vault.ok { border-color: #f5b532; box-shadow: 0 0 0 3px rgba(245,181,50,.3); }
.vault .bar { width: 100%; height: 10px; }
/* Tütchen öffnen */
.packshow { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle, rgba(60,30,0,.55), rgba(20,10,0,.82)); animation: fadeIn .25s; }
.packshow.out { opacity: 0; transition: opacity .25s; }
.pkwrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; max-width: 96vw; }
.pkbag { width: 150px; height: 150px; filter: drop-shadow(0 10px 20px rgba(255,210,80,.5)); animation: pkshake .25s ease-in-out infinite alternate; }
.pkbag.burst { animation: pkburst .45s ease-in forwards; }
@keyframes pkshake { from { transform: rotate(-6deg) scale(1); } to { transform: rotate(6deg) scale(1.05); } }
@keyframes pkburst { to { transform: scale(1.8) rotate(10deg); opacity: 0; } }
.pkcards { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: -150px; min-height: 150px; }
.pkcard { position: relative; width: 120px; transform: rotateY(90deg) scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .3s; }
.pkcard.show { transform: none; opacity: 1; }
.pkcard .stk { max-width: none; transform: none; }
.pkcard.shine .stk { box-shadow: 0 0 22px 6px rgba(255,215,90,.75); }
.pknew, .pkdup { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 2px 10px; border-radius: 99px; font-weight: 900; font-size: .72rem; white-space: nowrap; }
.pknew { background: #e2513f; color: #fff; animation: pop .4s .2s both; }
.pkdup { background: #fff; color: var(--muted); }
@keyframes pop { from { transform: translateX(-50%) scale(0); } }
@keyframes fadeIn { from { opacity: 0; } }

/* Expeditionen */
.xmap { position: relative; width: 100%; aspect-ratio: 100 / 64; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 4px #c9a26a, 0 4px 0 rgba(107,68,35,.25); background: #a8d878; user-select: none; }
.xbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xpath { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xpath path { fill: none; stroke: #fff8e0; stroke-width: .7; stroke-dasharray: 1.6 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 4px; opacity: .9; }
.xhome { position: absolute; transform: translate(-50%, -78%); width: 13%; pointer-events: none; }
.xhome img { width: 100%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.xnode { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 15%; padding: 0; border: 0; background: none; cursor: pointer; }
.xnode img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(107,68,35,.45), 0 0 0 3px rgba(255,255,255,.35); background: #fff; transition: transform .15s; }
.xnode:hover img { transform: scale(1.06); }
.xname { margin-top: -6px; padding: 2px 7px; border-radius: 99px; background: rgba(255,250,235,.95); font-weight: 900; font-size: clamp(.55rem, 1.6vw, .74rem); white-space: nowrap; box-shadow: 0 2px 0 rgba(107,68,35,.25); }
.xnode.locked img { filter: grayscale(.85) brightness(.85); }
.xnode.locked .xname { opacity: .75; }
.xnode.out img { box-shadow: 0 0 0 4px #ffd24a, 0 3px 0 rgba(107,68,35,.45); }
.xlock, .xtrips, .xnew { position: absolute; top: -4px; right: 2%; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: .68rem; }
.xtrips { background: #4fb33a; color: #fff; }
.xnew { background: #e2513f; color: #fff; animation: pop .4s both; }
.xlock { background: #fff; }
.xbee { position: absolute; width: 6%; transform: translate(-50%, -60%); transition: left 1s linear, top 1s linear; pointer-events: none; animation: bob 1.2s ease-in-out infinite; }
.xbee img { width: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.xbee.back img { transform: scaleX(-1); }
.xrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #ecd6a8; margin-bottom: 6px; }
.xrow > img { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; }
.xrow.back { border-color: #f5b532; background: #fffbe6; animation: glowpulse 1.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 4px rgba(245,181,50,.35); } }
.xinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; }
.xinfo .bar { height: 12px; margin: 4px 0; }
.xhero { display: flex; justify-content: center; margin: -6px 0 6px; }
.xhero img { width: 150px; height: 150px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 0 rgba(107,68,35,.3); }
.xstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.xstats > div { padding: 8px 4px; border-radius: 14px; background: #fff; border: 2px solid #f0e2c3; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.xstats b { font-size: 1rem; }
.xstats span { font-size: .72rem; color: var(--muted); font-weight: 800; }
.xlocked { text-align: center; padding: 16px; border-radius: 16px; background: #f6efe0; font-weight: 900; }
.xloot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.qpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.qopt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 16px; background: #fff; border: 3px solid #ecd6a8; font: inherit; font-size: .76rem; cursor: pointer; text-align: center; }
.qopt img { width: 54px; height: 54px; object-fit: contain; }
.qopt b { font-size: .82rem; }
.qopt span { color: #2f7f22; font-weight: 800; }
.qopt.on { border-color: #4fb33a; background: #f1ffe8; box-shadow: 0 0 0 3px rgba(79,179,58,.25); }
.qopt.r3 { border-color: #b6d6f5; } .qopt.r4 { border-color: #d6c0f2; } .qopt.r5 { border-color: #f5d98a; }
.qopt.on.r3, .qopt.on.r4, .qopt.on.r5 { border-color: #4fb33a; }
.diary { position: relative; padding: 16px 18px; border-radius: 6px 18px 18px 6px; background: repeating-linear-gradient(#fffdf4 0 26px, #e9e0c8 26px 27px); border-left: 8px solid #d98c5f; box-shadow: 0 3px 6px rgba(0,0,0,.12);
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", var(--font); font-size: 1.02rem; line-height: 27px; color: #5a3a1a; }
.diary p { margin: 0; }
.dlabel { position: absolute; top: -12px; left: 12px; padding: 1px 10px; border-radius: 99px; background: #d98c5f; color: #fff; font-family: var(--font); font-weight: 900; font-size: .72rem; }
.dqueen { position: absolute; right: -10px; bottom: -14px; width: 56px; height: 56px; transform: rotate(10deg); }
.xstick { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 10px 0; font-size: .9rem; }
.xstick .stk { width: 96px; }

/* E-Mail & Kontakt */
.mailbox { padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid #f0e2c3; margin-bottom: 6px; }
.maddr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mok { color: #2f7f22; font-weight: 900; font-size: .84rem; }
.mno { color: #b0532a; font-weight: 900; font-size: .84rem; }
.mailbox p { margin: 6px 0; }
.mchange { margin-top: 8px; }
.mchange summary { font-weight: 800; font-size: .86rem; cursor: pointer; color: var(--wood-d); }
.mchange form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mchange input { font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 12px; border: 2px solid #e4cc9c; }
.ccats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.ccat { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 99px; border: 2px solid #ecd6a8; background: #fff; font: inherit; font-weight: 900; font-size: .82rem; cursor: pointer; }
.ccat span { font-size: 1.05rem; }
.ccat.on { border-color: #4fb33a; background: #f1ffe8; }
.cform textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 700; padding: 12px; border-radius: 14px; border: 2px solid #e4cc9c; resize: vertical; }
.crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tickets { display: flex; flex-direction: column; gap: 8px; }
.ticket { padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid #f0e2c3; font-size: .86rem; }
.ticket.done { border-color: #bfe3a8; }
.thead { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.thead span { color: var(--muted); font-weight: 700; font-size: .78rem; }
.tmsg { white-space: pre-wrap; margin: 6px 0; color: var(--muted); font-weight: 700; }
.treply { padding: 8px 10px; border-radius: 12px; background: #f1ffe8; }
.treply p { white-space: pre-wrap; margin: 4px 0 0; font-weight: 700; }
.news6 .steps li img { width: 54px; height: 54px; }
@media (max-height: 760px) { .derbychip { top: 70px; } }

/* Menü: Hinweis „E-Mail bestätigen“ */
.mbtn.hot { background: linear-gradient(#fff8dc, #ffe7a3); border-color: #f2c457; box-shadow: 0 3px 0 #dba73a; animation: hotglow 2.4s ease-in-out infinite; }
.mbtn.hot small { display: block; font-size: .78rem; font-weight: 800; color: #9a6a00; margin-top: 2px; }
@keyframes hotglow { 50% { box-shadow: 0 3px 0 #dba73a, 0 0 0 4px rgba(255, 205, 80, .35); } }
@media (prefers-reduced-motion: reduce) { .mbtn.hot { animation: none; } }
