/* Asiansoul v1.1.0 – neue Komponenten (nutzt die Tokens aus style.css, hell & dunkel) */

/* ---------- Glocke & Benachrichtigungen */
.nbell { position: relative; }
.nbell .badge[hidden] { display: none; }
.notipop { position: absolute; z-index: 9000; width: min(360px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; }
.nlist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nitem { display: flex; gap: 8px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; align-items: flex-start; }
.nitem:hover { background: var(--surface-2); }
.nitem.new { background: var(--s-soft); }
.nitem .ni { font-size: 20px; line-height: 1; }
.nitem small { display: block; color: var(--ink-soft); font-size: 11px; }
.langsw { font-size: 18px; }

/* ---------- Allgemein */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.subtabs a { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.subtabs a.on { background: var(--p); color: var(--on-p); border-color: var(--p); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--s); border-color: var(--s); color: #fff; }
.pbar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 6px 0; }
.pbar > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p), var(--s)); transition: width .6s; }
.pbar.fire > div { background: linear-gradient(90deg, #ffb02e, #ff5a3a); }
.lvbadge { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #ffe58a, #ffb02e); color: #5a3a00; vertical-align: middle; }
.ttl, .ttlchip { font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 4px; }
.ttlchip { padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.okbox { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.viewonly-note { padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); font-weight: 600; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }

/* ---------- Level & Serie */
.lvcard { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.lvring { --p: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--s) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.lvring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.lvring b, .lvring small { position: relative; display: block; }
.lvring b { font-size: 34px; line-height: 1; }
.streakcard { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.flame { width: 120px; text-align: center; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #fff3d6, #ffe0cc); color: #5a2a00; }
.flame span { font-size: 40px; display: block; animation: flick 1.4s ease-in-out infinite; }
.flame.hot span { filter: drop-shadow(0 0 10px #ff8a1f); }
.flame b { font-size: 30px; display: block; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.exptab tr.done td, .table tr.done td { opacity: .55; }
.quests { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quest { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.quest.done { border-color: var(--s); box-shadow: 0 0 0 2px var(--s-soft); }
.quest.claimed { opacity: .6; }
.badgegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 10px 0; }
.bdg { --bc: #999; text-align: center; padding: 10px 6px; border-radius: 14px; border: 2px dashed var(--line); filter: grayscale(1); opacity: .45; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bdg span { font-size: 30px; }
.bdg b { font-size: 12px; }
.bdg small { font-size: 10px; color: var(--ink-soft); }
.bdg.on { filter: none; opacity: 1; border: 2px solid var(--bc); background: color-mix(in srgb, var(--bc) 10%, var(--surface)); box-shadow: 0 4px 14px color-mix(in srgb, var(--bc) 25%, transparent); }
.ranklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ranklist li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.ranklist li.top1 { background: linear-gradient(90deg, #fff5cc, var(--surface-2)); }
.ranklist .rk { width: 28px; text-align: center; font-weight: 700; }
.ranklist .val { margin-left: auto; }
:root[data-mode="dark"] .ranklist li.top1 { background: linear-gradient(90deg, #4a3d10, var(--surface-2)); }

/* ---------- Freundschafts-Leiste (10 Stufen, kräftiger + Glitzern am Ende) */
.fbar { --c1: #ffd6e7; --c2: #ffb3d1; position: relative; height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; margin: 4px 0; }
.fbar.big { height: 16px; }
.fbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .6s; }
.fbar i { flex: 1; border-right: 2px solid color-mix(in srgb, var(--surface) 70%, transparent); position: relative; z-index: 1; }
.fbar i:last-child { border: 0; }
.fbar.s2 { --c1: #ffc9de; --c2: #ffa3c6; } .fbar.s3 { --c1: #ffb3d1; --c2: #ff8fbb; } .fbar.s4 { --c1: #ff9fc8; --c2: #ff7aae; }
.fbar.s5 { --c1: #ff8fbe; --c2: #ff5fa2; } .fbar.s6 { --c1: #ff7aae; --c2: #f0458e; } .fbar.s7 { --c1: #ff5fa2; --c2: #d6307c; }
.fbar.s8 { --c1: #f0458e; --c2: #b8257a; box-shadow: 0 0 8px rgba(240, 69, 142, .5); }
.fbar.s9 { --c1: #e0457b; --c2: #8b5cf6; box-shadow: 0 0 10px rgba(224, 69, 123, .6); }
.fbar.s10 { --c1: #ff5fa2; --c2: #ffd23f; box-shadow: 0 0 14px rgba(255, 210, 63, .8); }
.fbar.s10 .fill { background: linear-gradient(90deg, #ff5fa2, #b388ff, #36c5f0, #ffd23f, #ff5fa2); background-size: 300% 100%; animation: fshine 3s linear infinite; }
.fbar .glit { position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle, #fff 1px, transparent 1.5px) 0 0 / 12px 12px; animation: fglit 1.2s linear infinite; mix-blend-mode: screen; }
@keyframes fshine { to { background-position: 300% 0; } }
@keyframes fglit { 0% { opacity: .2; background-position: 0 0; } 50% { opacity: 1; } 100% { opacity: .2; background-position: 12px 6px; } }
.frlist { display: flex; flex-direction: column; gap: 6px; }
.frrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.frmid { flex: 1; min-width: 160px; }
.gestures { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.gest { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 17px; cursor: pointer; transition: transform .15s; }
.gest:hover:not(:disabled) { transform: scale(1.18) rotate(-6deg); }
.gest.locked, .gest:disabled { filter: grayscale(1); opacity: .35; cursor: not-allowed; }
.inbox { padding: 10px; border-radius: 14px; background: var(--s-soft); border: 1px solid var(--s-line); margin: 10px 0; }
.packs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pack { width: 70px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.pack .pk { font-size: 34px; animation: packw 1.6s ease-in-out infinite; display: inline-block; }
.pack.s8 .pk, .pack.s9 .pk, .pack.s10 .pk { filter: drop-shadow(0 0 8px #ffd23f); }
.pack small { font-size: 10px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
@keyframes packw { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(0); } }
.stagelist { display: grid; gap: 4px; margin-top: 8px; }
.fst { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); }
.rewardbox { position: relative; text-align: center; padding: 20px 10px; overflow: hidden; }
.rewardbox .coins { font-size: 30px; color: var(--gold); display: block; animation: pop .5s; }
.rewardbox.glitter { background: radial-gradient(circle, rgba(255, 210, 63, .25), transparent 70%); }
.rewardbox .burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--s); transform: rotate(var(--a)) translate(0); animation: burst .9s ease-out forwards; }
.rewardbox .burst i:nth-child(3n) { background: #ffd23f; } .rewardbox .burst i:nth-child(3n+1) { background: #36c5f0; }
@keyframes burst { to { transform: rotate(var(--a)) translate(120px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.jackpot { font-weight: 800; color: #e2a400; animation: pop .6s; }
.stkrow { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sticker */
.kst { width: 48px; height: 48px; }
.kst.big { width: 90px; height: 90px; }
.stkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 10px; }
.stkgrid.sm { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.stk { position: relative; text-align: center; padding: 8px 4px; border-radius: 14px; border: 2px dashed var(--line); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: default; }
.stk img { width: 60px; height: 60px; filter: grayscale(1) brightness(1.3); opacity: .35; }
.stk.on img { filter: none; opacity: 1; }
.stk.on { border-style: solid; border-color: var(--s-line); background: var(--surface); }
.stk.rare.on { border-color: #36c5f0; } .stk.epic.on { border-color: #e2a400; box-shadow: 0 0 10px rgba(226, 164, 0, .35); }
.stk small { font-size: 10px; }
.stk .badge { position: absolute; top: 4px; right: 4px; }
button.stk { cursor: pointer; }

/* ---------- Stories */
.storybar { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.story { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; color: var(--ink); flex: none; width: 70px; }
.story small { font-size: 11px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sring { position: relative; padding: 3px; border-radius: 50%; background: var(--line); display: inline-block; }
.story.unseen .sring { background: conic-gradient(#ff5fa2, #ffd23f, #36c5f0, #8b5cf6, #ff5fa2); }
.sring img.av { border: 3px solid var(--surface); border-radius: 50%; display: block; width: 58px; height: 58px; object-fit: cover; }
.story.add i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--s); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.storyview { position: fixed; inset: 0; z-index: 9500; background: rgba(0, 0, 0, .88); display: grid; place-items: center; }
body.noscroll { overflow: hidden; }
.svbox { --bg: #ff6fae; position: relative; width: min(420px, 100vw); height: min(760px, 100dvh); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--bg) 70%, #fff), var(--bg)); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.svbox.mini { width: 210px; height: 360px; border-radius: 14px; }
.svprog { display: flex; gap: 4px; padding: 10px 10px 0; position: relative; z-index: 3; }
.svprog i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.svprog i.done { background: #fff; }
.svprog i.run::after { content: ""; position: absolute; inset: 0; background: #fff; animation: svrun 5.5s linear forwards; transform-origin: left; }
@keyframes svrun { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.svhead { display: flex; align-items: center; gap: 8px; padding: 8px 12px; position: relative; z-index: 3; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.svhead .svx { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.svbody { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.svbody img { width: 100%; height: 100%; object-fit: contain; }
.svtext { position: absolute; left: 6%; right: 6%; text-align: center; font-size: 24px; font-weight: 700; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); white-space: pre-wrap; word-break: break-word; }
.svbody img + .svtext { bottom: 12%; font-size: 20px; background: rgba(0, 0, 0, .35); padding: 6px 10px; border-radius: 12px; }
.svtext.f-bold { font-weight: 900; font-size: 30px; } .svtext.f-hand { font-family: "Comic Sans MS", "Segoe Print", cursive; }
.svtext.f-neon { color: #fff; text-shadow: 0 0 6px #fff, 0 0 14px #ff5fa2, 0 0 26px #ff5fa2; }
.svbox.mini .svtext { font-size: 15px; }
.svst { position: absolute; right: 8%; top: 12%; animation: packw 2s ease-in-out infinite; }
.svnav { position: absolute; inset: 60px 0 110px; display: flex; z-index: 2; }
.svnav button { flex: 1; background: none; border: 0; cursor: pointer; }
.svfoot { position: relative; z-index: 3; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.svreact { display: flex; justify-content: space-around; }
.svreact button { background: none; border: 0; font-size: 24px; cursor: pointer; transition: transform .15s; }
.svreact button:hover, .svreact button.pop { transform: scale(1.35); }
.svreply { display: flex; gap: 6px; }
.svreply input { flex: 1; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .25); color: #fff; padding: 8px 14px; }
.stcomp { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.stside { display: flex; flex-direction: column; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
@media (max-width: 640px) { .stcomp { grid-template-columns: minmax(0, 1fr); } .stprev { display: grid; place-items: center; } }

/* ---------- Home: Flyer, Live */
.home110 { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.home110 #homeStories { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; box-shadow: var(--shadow); }
.flyers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.flyer { --fc: #ff6fae; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--fc) 40%, var(--line)); box-shadow: 0 6px 18px color-mix(in srgb, var(--fc) 18%, transparent); transition: transform .2s; }
.flyer:hover { transform: translateY(-3px); }
.flyer img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.flyer .ft { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(135deg, color-mix(in srgb, var(--fc) 16%, var(--surface)), var(--surface)); flex: 1; }
.flyer .ft b { color: color-mix(in srgb, var(--fc) 75%, var(--ink)); }
.livebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--radius); background: color-mix(in srgb, #ff3b3b 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ff3b3b 35%, var(--line)); }
.liveu { display: inline-flex; gap: 5px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; }
.livechip { background: #ff3b3b; color: #fff; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none; animation: livep 1.2s infinite; }
@keyframes livep { 50% { box-shadow: 0 0 0 4px rgba(255, 59, 59, .25); } }

/* ---------- Profil-Chips */
.pchips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin: 2px 0 6px; }
.minibdg { --bc: #999; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bc) 18%, var(--surface)); border: 1px solid var(--bc); font-size: 13px; }
.pfriend { margin: 4px 0 8px; max-width: 420px; }

/* ---------- Wettbewerbe */
.concards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.concard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.concard .cico { font-size: 34px; }
.concard.ph-entry { border-color: var(--s); } .concard.ph-vote { border-color: var(--p); box-shadow: 0 0 0 2px var(--p-soft); } .concard.ph-done { opacity: .7; }
.conmeta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 13px; }
.conmeta span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.entrygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.entry { text-align: center; padding: 8px; border-radius: 14px; background: var(--surface-2); border: 2px solid transparent; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.entry.voted { border-color: var(--s); }
.entry .eart { width: 120px; height: 150px; display: grid; place-items: center; }
.entry .eart svg { max-width: 100%; max-height: 100%; }
.winners { display: flex; justify-content: center; gap: 12px; align-items: flex-end; margin: 10px 0 16px; flex-wrap: wrap; }
.win { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #fff5cc, var(--surface)); }
.win.p1 { transform: scale(1.1); box-shadow: 0 0 22px rgba(255, 210, 63, .55); }
.win .medal { font-size: 30px; }
.win .wart { width: 110px; height: 130px; }
.win .wart svg { width: 100%; height: 100%; }

/* ---------- Clans & Umfragen */
.clanname { color: var(--ink); text-decoration: none; border-left: 4px solid var(--cc); padding-left: 6px; }
.clanpage h3 { border-bottom: 3px solid var(--cc); }
.cwall { max-height: 420px; overflow: auto; }
.polls { display: flex; flex-direction: column; gap: 12px; }
.poll { padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.popt { position: relative; display: flex; justify-content: space-between; gap: 8px; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; font: inherit; color: var(--ink); }
.popt .pfill { position: absolute; inset: 0 auto 0 0; background: var(--p-soft); transition: width .6s; }
.popt span, .popt b { position: relative; }
.popt.mine { border-color: var(--s); }
.chipwrap { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; }
.chipcheck input { position: absolute; opacity: 0; }
.chipcheck span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 12px; }
.chipcheck input:checked + span { background: var(--s); color: #fff; border-color: var(--s); }
.ucard small { display: block; font-size: 10px; color: var(--ink-soft); line-height: 1.3; }

/* ---------- Tier-Rennen */
.track { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.track:empty { display: none; }
.lane { position: relative; height: 64px; border-radius: 12px; background: repeating-linear-gradient(90deg, #8fd97a 0 40px, #7fcc6a 40px 80px); overflow: hidden; }
.lane.me { box-shadow: inset 0 0 0 3px var(--s); }
.lane .lname { position: absolute; left: 6px; top: 4px; font-size: 11px; font-weight: 700; color: #1f3a12; z-index: 2; background: rgba(255, 255, 255, .7); padding: 0 6px; border-radius: 6px; }
.lane .lname small { font-weight: 400; margin-left: 4px; }
.lane .runner { position: absolute; left: 0; bottom: 0; width: 64px; height: 64px; transition: left .4s linear; }
.lane .runner svg { width: 100%; height: 100%; animation: run .3s ease-in-out infinite; }
.lane .runner .medal { position: absolute; right: -6px; top: -2px; font-size: 22px; }
.lane .finish { position: absolute; right: 6px; top: 18px; font-size: 22px; }
@keyframes run { 50% { transform: translateY(-4px) rotate(-4deg); } }

/* ---------- Zimmer (Puppenhaus) */
.room { --wall: #ffd6e7; --floor: #d9a066; position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 10; margin: 10px auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: none; }
.rwall { position: absolute; inset: 0 0 38% 0; background: var(--wall); background-image: radial-gradient(circle, rgba(255, 255, 255, .5) 2px, transparent 2.5px); background-size: 26px 26px; }
.rfloor { position: absolute; inset: 62% 0 0 0; background: var(--floor); background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 60px); }
.rfloor::before { content: ""; position: absolute; inset: -6px 0 auto 0; height: 8px; background: color-mix(in srgb, var(--floor) 70%, #000); opacity: .5; }
.ritem { position: absolute; width: calc(var(--w) * 1.35); height: calc(var(--h) * 1.35); max-width: 42%; }
.room.edit .ritem { cursor: grab; }
.room.edit .ritem:hover { outline: 2px dashed var(--s); outline-offset: 2px; border-radius: 8px; }
.ritem svg { width: 100%; height: 100%; overflow: visible; }
.ravatar { position: absolute; left: 44%; bottom: 3%; height: 74%; aspect-ratio: 228 / 400; z-index: 70; pointer-events: none; }
.ravatar svg { width: 100%; height: 100%; }
.rpet { position: absolute; left: 63%; bottom: 3%; width: 16%; z-index: 80; pointer-events: none; }
.furngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.furn-card { padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 12px; }
.furn-card .fart { width: 84px; height: 74px; display: grid; place-items: center; }
.furn-card .fart svg { max-width: 100%; max-height: 100%; }

/* ---------- Fotoalben & Event-Fotos */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.album { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.album img, .album .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 40px; box-shadow: 4px 4px 0 var(--surface-3), 8px 8px 0 var(--line); }
.albgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.albgrid.sm { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.albph { position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.albph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.albph input { position: absolute; top: 6px; left: 6px; z-index: 2; }
.albph small { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0, 0, 0, .5); color: #fff; padding: 0 5px; border-radius: 6px; }
.phmodal img { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto 8px; border-radius: 10px; }
.phcom { max-height: 220px; overflow: auto; }

/* ---------- Chat: schreibt gerade …, Sprachnachrichten, Übersetzung */
.typing { min-height: 18px; font-size: 12px; color: var(--ink-soft); padding: 2px 4px; }
.typing .dots i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--s); margin-right: 2px; animation: tdot 1s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .15s; } .typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-4px); opacity: .5; } }
.voicebtn { touch-action: none; user-select: none; }
.voicebtn.rec { background: #ff3b3b !important; color: #fff; animation: livep 1s infinite; border-radius: 50%; }
.voicemsg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--p-soft); border: 1px solid var(--p-line); vertical-align: middle; }
.voicemsg .vplay { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--p); color: #fff; cursor: pointer; }
.voicemsg .vwave { display: inline-flex; gap: 2px; align-items: center; height: 20px; }
.voicemsg .vwave i { width: 3px; border-radius: 2px; background: var(--p); height: 40%; }
.voicemsg .vwave i:nth-child(3n) { height: 80%; } .voicemsg .vwave i:nth-child(4n+1) { height: 60%; } .voicemsg .vwave i:nth-child(5n) { height: 100%; }
.voicemsg.play .vwave i { animation: vw .6s ease-in-out infinite alternate; }
.voicemsg.play .vwave i:nth-child(2n) { animation-delay: .2s; }
@keyframes vw { to { transform: scaleY(.3); } }
.trtoggle { border: 0; background: none; cursor: pointer; font-size: 12px; opacity: .55; margin-left: 4px; padding: 0; }
.trtoggle:hover { opacity: 1; }

/* ---------- Adminpanel: Rechte-Matrix & Statistik */
.permtab th { position: sticky; top: 0; background: var(--surface); z-index: 1; font-size: 12px; }
.permtab tr.grp td { background: var(--surface-3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.psel { font-size: 12px; padding: 3px 4px; border-radius: 8px; min-width: 96px; }
.psel.v-view { background: color-mix(in srgb, var(--p) 14%, var(--surface)); }
.psel.v-edit { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); font-weight: 600; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(16px); }
.chartgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 10px 0; }
.chartcard { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.chart { width: 100%; height: 110px; display: block; }
.hbar { display: grid; grid-template-columns: 110px 1fr 50px; gap: 6px; align-items: center; font-size: 12px; margin: 3px 0; }
.hbar i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--p), var(--s)); display: block; }
.flyerform, .conform { padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; background: var(--surface-2); }

/* ---------- Kawaii-Tiere: Shiny & Souly glitzern, Tierkreis-Anhänger schaukelt */
.as-pet.shiny { filter: drop-shadow(0 0 6px rgba(255, 225, 120, .85)) saturate(1.15); }
.as-pet .pet-charm { transform-box: fill-box; transform-origin: 50% 0; animation: charm 2.2s ease-in-out infinite; }
@keyframes charm { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes petshine { 0%, 100% { filter: none; } 50% { filter: brightness(1.12); } }
/* Avatar: Flügel flattern, Schleife wippt */
.as-avatar.anim .d-wing-l { transform-origin: 100px 135px; animation: wingL 1.6s ease-in-out infinite; }
.as-avatar.anim .d-wing-r { transform-origin: 100px 135px; animation: wingR 1.6s ease-in-out infinite; }
@keyframes wingL { 50% { transform: rotate(-9deg) scaleX(.92); } }
@keyframes wingR { 50% { transform: rotate(9deg) scaleX(.92); } }
.as-avatar.anim .d-bow { animation: bowb 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bowb { 50% { transform: rotate(8deg) scale(1.05); } }
.ksup { width: 100%; height: 100%; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.tcard { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tcard:hover { border-color: var(--s); }
.tcard small { font-size: 11px; color: var(--ink-soft); line-height: 1.35; }
.roleico.img img { height: 1.15em; width: auto; vertical-align: -0.2em; }
@keyframes rolepulse { 0%, 100% { box-shadow: 0 0 0 2px var(--rpc), 0 0 4px var(--rpc); } 50% { box-shadow: 0 0 0 3px var(--rpc), 0 0 18px var(--rpc); } }
@keyframes rolesparkle { 0% { filter: brightness(1); } 50% { filter: brightness(1.25) saturate(1.3); } 100% { filter: brightness(1); } }
.as-avatar.fig.anim .fig-img { transform-origin: 100px 400px; animation: figbreathe 3.2s ease-in-out infinite; }
@keyframes figbreathe { 50% { transform: scale(1.012, .992) translateY(1px); } }
.figsel img { display: block; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; margin: 6px 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.item > .calsel { margin: 4px 8px 0 0; width: 18px; height: 18px; flex: none; }
.rolestab td { vertical-align: middle; }
.rico { gap: 6px; flex-wrap: nowrap; align-items: center; }
.storyhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--s); color: #fff; }
.svbody video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.svsound { position: absolute; right: 10px; bottom: 10px; z-index: 4; border: 0; border-radius: 50%; width: 36px; height: 36px; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; cursor: pointer; }
.svprog i.run::after { animation-duration: var(--svdur, 5.5s); }
.svbox.mini video { width: 100%; height: 100%; object-fit: cover; }
.streaksteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.streaksteps div { padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.streaksteps span { font-size: 22px; } .streaksteps small { color: var(--ink-soft); font-size: 11px; }

/* ---------- v1.1.1 Startseite */
.hcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); }
.hct { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hct a { text-decoration: none; font-weight: 700; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.hpets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.hpetc { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); text-align: center; }
.hpart { width: 70px; height: 70px; display: grid; place-items: center; }
.hpart svg { width: 100%; height: 100%; }
.hpart .map { font-size: 34px; animation: packw 1.6s ease-in-out infinite; }
.hpetc small { font-size: 10px; color: var(--ink-soft); line-height: 1.25; min-height: 2.5em; }
.mbar { display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 2px; overflow: hidden; font-style: normal; }
.mbar i { display: block; height: 100%; border-radius: 4px; }
.hq { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.hq > div { flex: 1; } .hq small { font-size: 11px; color: var(--ink-soft); }
.hq.claimed { opacity: .55; } .hq.done > span { animation: packw 1.4s infinite; }
.hlv { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.hlv small { display: block; font-size: 11px; color: var(--ink-soft); }
.lvring.sm { width: 64px; height: 64px; flex: none; } .lvring.sm::before { inset: 6px; } .lvring.sm b { font-size: 22px; }
.hstreak { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.sfire { margin-left: auto; font-weight: 800; color: #ff7a1a; }
.sfire.cold { filter: grayscale(.7); opacity: .7; }
.livecard { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-color: color-mix(in srgb, #ff3b3b 40%, var(--line)); }
.hbanner { display: flex; }
.hbanner.a-center { justify-content: center; } .hbanner.a-right { justify-content: flex-end; }
.hbinner { --hb: #ff6fae; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--hb), color-mix(in srgb, var(--hb) 55%, #8b5cf6)); padding: 10px; box-shadow: var(--shadow); text-align: center; font-weight: 700; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hbinner img { max-width: 100%; object-fit: contain; border-radius: 10px; }
.evcard { display: flex; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, #0b88b5 40%, var(--line)); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); grid-column: span 2; }
.evcard img, .evart { width: 42%; max-width: 260px; aspect-ratio: 16 / 10; object-fit: cover; flex: none; }
.evart { display: grid; place-items: center; background: linear-gradient(135deg, #36c5f0, #8b5cf6, #ff6fae); }
.evart span { font-size: 56px; animation: packw 2.4s ease-in-out infinite; }
.evtxt { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 10px 0; justify-content: center; }
.evtxt b { font-size: 17px; }
@media (max-width: 640px) { .evcard { grid-column: auto; flex-direction: column; } .evcard img, .evart { width: 100%; max-width: none; } .evtxt { padding: 0 12px 12px; } }

/* ---------- v1.1.1 Zimmer 2.0 */
.room.v2 .rwall { background: var(--wallbg); }
.room.v2 .rfloor { background: var(--floorbg); }
.room.v2 .ritem { width: calc(var(--w) * 1.35); height: calc(var(--h) * 1.35); max-width: 46%; touch-action: none; }
.room.v2 .rart, .room.v2 .rart svg, .room.v2 .rart img { width: 100%; height: 100%; display: block; object-fit: contain; }
.room.v2 .ritem.sel { outline: 2px dashed var(--s); outline-offset: 3px; border-radius: 8px; }
.room.v2 .ritem .glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,140,.55), transparent 65%); pointer-events: none; z-index: -1; animation: lglow 3s ease-in-out infinite; }
@keyframes lglow { 50% { opacity: .7; transform: scale(.95); } }
.room.v2 .ritem.light:not(.on) .rart { filter: brightness(.7) saturate(.6); }
.room.v2 .rdark { position: absolute; inset: 0; background: rgba(8,6,30,.68); pointer-events: none; opacity: 0; transition: opacity .6s; z-index: 5; }
.room.v2.dark .rdark { opacity: 1; }
.room.v2.dark .ritem.on { z-index: 200 !important; filter: drop-shadow(0 0 10px rgba(255,220,120,.8)); }
.room.v2.dark .ritem.on .glow { background: radial-gradient(circle, rgba(255,220,140,.75), transparent 62%); }
.room.v2 .rpet { position: absolute; bottom: 4%; width: 15%; z-index: 90; transition: left 2.4s ease-in-out; pointer-events: none; }
.room.v2 .rpet.left svg { transform: scaleX(-1); }
.room.v2 .rpet.walk svg { animation: run .45s ease-in-out infinite; }
.room.v2 .rpet.sit svg { transform-origin: 50% 100%; transform: scaleY(.92); }
.room.v2 .rpet.sleep svg { transform-origin: 50% 100%; transform: rotate(-8deg) scale(1.05, .78); filter: saturate(.9); }
.room.v2 .rpet.sleep::after { content: "💤"; position: absolute; right: 0; top: -10%; font-size: 18px; animation: tdot 2s infinite; }
.roomtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.selbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 10px; border-radius: 12px; background: var(--s-soft); border: 1px solid var(--s-line); position: sticky; top: 4px; z-index: 300; }
.selbar button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink); }
.selbar button.red { color: var(--danger); }
.stylepick { display: flex; gap: 6px; flex-wrap: wrap; }
.sty { width: 54px; height: 40px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; }
.sty.on { border-color: var(--s); box-shadow: 0 0 0 3px var(--s-soft); }
.furn-card.dim { opacity: .55; }
.furn-card .fart img { max-width: 100%; max-height: 100%; }
.rgbline, .led { animation: rgbc 2.4s linear infinite; }
@keyframes rgbc { 0% { filter: hue-rotate(0); } 100% { filter: hue-rotate(360deg); } }
.led { animation: ledb 1.2s ease-in-out infinite; } @keyframes ledb { 50% { opacity: .35; } }
.ritem:not(.on) .led, .ritem:not(.on) .rgbline, .ritem:not(.on) .lava { animation: none; }
.fan { transform-box: fill-box; transform-origin: center; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.lava { animation: lava 4s ease-in-out infinite; } .lava.l2 { animation-delay: 1.5s; } @keyframes lava { 50% { transform: translateY(-14px) scale(1.2); } }
.neontext { animation: neonf 3s infinite; } @keyframes neonf { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .4; } }
.ritem:not(.on) .neontext { animation: none; opacity: .35; }
.screen { animation: scr 3s ease-in-out infinite; } @keyframes scr { 50% { opacity: .75; } }
.stylepick.big { gap: 10px; } .stycard { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 90px; text-align: center; }
.stycard .sty { width: 80px; height: 56px; }
.figgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.figcard { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.figcard.dim { opacity: .55; } .figart { height: 220px; display: grid; place-items: center; } .figart svg { height: 100%; }
.hbprev { margin-bottom: 8px; }
.furn-card input[name=name] { width: 100%; max-width: 120px; font-size: 12px; text-align: center; }
.furn-card input:disabled { border: 0; background: none; font-weight: 700; color: var(--ink); }

/* ---------- v1.1.2: Tier-Werte, Schmutz, Vorrat ---------- */
.pstat { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) 42px; align-items: center; gap: 8px; margin: 5px 0; font-size: .86rem; }
.pstat > span { font-size: 1.05rem; text-align: center; }
.pstat > b { font-weight: 600; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstat > i { display: block; height: 12px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.pstat > i::before { content: ""; position: absolute; inset: 0; width: var(--v); background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 65%, #fff), var(--bc)); border-radius: inherit; transition: width .6s; }
.pstat > em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .pstat { grid-template-columns: 20px 76px minmax(0, 1fr) 38px; gap: 6px; font-size: .8rem; } }
.petcard.dirty .petstage { position: relative; }
.petcard.dirty .petstage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at 30% 62%, rgba(110, 72, 40, .55) 0 7%, transparent 8%), radial-gradient(circle at 64% 70%, rgba(110, 72, 40, .5) 0 5%, transparent 6%),
    radial-gradient(circle at 52% 40%, rgba(110, 72, 40, .4) 0 4%, transparent 5%), radial-gradient(circle at 72% 50%, rgba(110, 72, 40, .45) 0 3%, transparent 4%); }
.petcard.dirty .petstage::before { content: "💨"; position: absolute; top: 10%; right: 14%; font-size: 1.4rem; animation: dirtfly 2.4s ease-in-out infinite; z-index: 2; }
@keyframes dirtfly { 0%, 100% { transform: translate(0, 0); opacity: .5; } 50% { transform: translate(-6px, -8px); opacity: 1; } }
.ibtn.c-msg.on { --rpc: #b07a3c; animation: rolepulse 1.6s infinite; }
.wr-item { position: relative; }
.qtyb { position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pink-600, #e0457b); color: #fff; font: 700 .7rem/18px system-ui; font-style: normal; text-align: center; }
.sup { position: relative; }
.cat-Comic { --cat: #f2622e; } .cat-Gaming { --cat: #3aa0ff; } .cat-Film { --cat: #6b4fd8; }

/* ---------- v1.1.2: Info-Knopf, Aufgaben, Rangliste, Sticker, Clans ---------- */
.ibtn-i { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; margin: 0 4px; border-radius: 50%; border: 1.5px solid var(--teal-600, #1f9d8b); background: transparent;
  color: var(--teal-700, #167a6c); font: italic 700 12px/1 Georgia, serif; cursor: pointer; vertical-align: middle; flex: none; transition: background .2s, color .2s; }
.ibtn-i:hover, .ibtn-i.on { background: var(--teal-600, #1f9d8b); color: #fff; }
.infotgl { display: inline; } .infotgl .infotxt { display: block; }
.infotxt { margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #f4f8fb); color: var(--ink-soft); font-size: .88rem; line-height: 1.5; border-left: 3px solid var(--teal-600, #1f9d8b); }
.infotxt p.hint { margin: 0; } .infotxt ul { margin: 0; padding-left: 18px; }
.foldhint { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 6px 0; }
.foldhint .foldlbl { color: var(--ink-soft); font-size: .85rem; cursor: pointer; } .foldhint .infotxt { flex-basis: 100%; }

.quests2 .hct { display: flex; align-items: center; gap: 4px; } .quests2 .hct b { flex: 1; } .quests2 .hct small { color: var(--ink-soft); font-weight: 600; }
.quests2 .hct.sub { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line, #dde5ea); }
.qrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; margin: 4px 0; border-radius: 12px; transition: background .4s; }
.qrow .qchk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line, #c9d5dc); display: grid; place-items: center; font-weight: 800; color: #fff; transition: all .4s; }
.qrow b { font-size: .88rem; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.qbar { height: 7px; border-radius: 99px; background: var(--surface-3, #e8eef2); overflow: hidden; margin-top: 4px; }
.qbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #36c5f0, #3dd68c); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.qbar.big { height: 12px; }
.qval { text-align: right; line-height: 1.1; } .qval em { display: block; font-style: normal; font-weight: 700; font-size: .85rem; } .qval small { color: var(--ink-soft); font-size: .72rem; }
.qrow.ok { background: color-mix(in srgb, #3dd68c 14%, transparent); }
.qrow.ok .qchk { background: #22a06b; border-color: #22a06b; animation: qpop .5s ease; }
.qrow.ok b { color: #157a4f; } .qrow.ok .qval em { color: #157a4f; } .qrow.ok .qbar i { background: #22a06b; }
@keyframes qpop { 0% { transform: scale(.3); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

.rankpage .in { padding-top: 6px; }
.rkhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.seg { display: inline-flex; background: var(--surface-3, #e8eef2); border-radius: 99px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 99px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); } .seg button:disabled { opacity: .4; cursor: default; }
.livedot { color: #e5484d; font-size: .78rem; font-weight: 700; animation: livep 1.6s infinite; } @keyframes livep { 50% { opacity: .35; } }
.rkkinds { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.rkkinds button { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line, #dde5ea); background: var(--surface, #fff); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.rkkinds button.on { border-color: #ff9f1c; background: linear-gradient(180deg, #fff6e0, #ffe7b0); font-weight: 700; color: #7a4a00; }
.rktitle { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; } .rktitle small { color: var(--ink-soft); margin-left: auto; }
.rktitle .infotgl { display: contents; } .rktitle .infotxt { flex-basis: 100%; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 560px; margin: 8px auto 16px; }
.pd { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pdwho { position: relative; } .pdwho img.av, .pdwho .rkpet svg, .pdwho .rkclan { width: 64px; height: 64px; }
.pd.p1 .pdwho img.av, .pd.p1 .pdwho .rkpet svg, .pd.p1 .pdwho .rkclan { width: 84px; height: 84px; }
.pdwho img.av { border-radius: 18px; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0, 0, 0, .15); }
.pdwho > a { display: block; }
.pd.p1 .pdwho img.av { box-shadow: 0 0 0 3px #ffd23f, 0 0 22px rgba(255, 196, 0, .55); animation: pdglow 2.4s ease-in-out infinite; }
@keyframes pdglow { 50% { box-shadow: 0 0 0 3px #ffd23f, 0 0 34px rgba(255, 196, 0, .85); } }
.pdmed { position: absolute; right: -10px; bottom: -8px; font-size: 1.7rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.pdname { margin: 6px 0; font-size: .86rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdblock { width: 100%; border-radius: 14px 14px 4px 4px; color: #fff; padding: 10px 4px; display: flex; flex-direction: column; justify-content: flex-start; transform-origin: bottom; transform: scaleY(.1); transition: transform .8s cubic-bezier(.2, .9, .3, 1.2); }
.rkready .pdblock { transform: scaleY(1); }
.pdblock b { font-size: 1.1rem; } .pdblock small { opacity: .85; font-size: .72rem; }
.pd.p1 .pdblock { height: 120px; background: linear-gradient(180deg, #ffd23f, #f0a020); }
.pd.p2 .pdblock { height: 90px; background: linear-gradient(180deg, #cfd8e3, #9aa8b8); }
.pd.p3 .pdblock { height: 70px; background: linear-gradient(180deg, #f2b07a, #c97a3c); }
.pd.me .pdname { font-weight: 800; color: var(--pink-700, #c2185b); }
.rklist { list-style: none; margin: 0; padding: 0; }
.rklist li { display: grid; grid-template-columns: 28px 32px minmax(0, 1.2fr) minmax(40px, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; }
.rklist li:nth-child(odd) { background: var(--surface-2, #f6f9fb); }
.rklist li.me { background: color-mix(in srgb, #ff6fae 14%, transparent); outline: 1.5px solid #ff9ec7; }
.rklist .rk { font-weight: 800; color: var(--ink-soft); text-align: center; }
.rklist img.av, .rklist .rkpet svg, .rklist .rkclan { width: 32px; height: 32px; }
.rklist .rkn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rkbar { height: 8px; border-radius: 99px; background: var(--surface-3, #e8eef2); overflow: hidden; }
.rkbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #36c5f0, #8b5cf6); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.rkready .rkbar i { width: var(--w); }
.rklist .val { font-variant-numeric: tabular-nums; }
.rkme { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, #f4f8fb); text-align: center; }
.rkclan { display: inline-grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--cc) 20%, #fff); border: 2px solid var(--cc); overflow: hidden; font-size: 1.3rem; }
.rkclan img { width: 100%; height: 100%; object-fit: cover; } .rkpet { display: inline-block; }
@media (max-width: 560px) { .rklist li { grid-template-columns: 24px 28px minmax(0, 1fr) auto; } .rklist .rkbar { display: none; } .pdwho img.av, .pdwho .rkpet svg, .pdwho .rkclan { width: 54px; height: 54px; } .pd.p1 .pdwho img.av, .pd.p1 .pdwho .rkpet svg, .pd.p1 .pdwho .rkclan { width: 68px; height: 68px; } .rktitle small { margin-left: 0; flex-basis: 100%; } }

.stkhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.stkhead .infotgl { display: contents; } .stkhead .infotxt { flex-basis: 100%; }
.stkprog b { font-size: 1.6rem; } .stkprog small { color: var(--ink-soft); }
.stkgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.stk2 { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 14px; background: var(--surface-2, #f6f9fb); border: 2px dashed var(--line, #d5dee4); min-width: 0; }
.stk2 .kst { width: 56px; height: 56px; } .stk2 small { font-size: .7rem; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk2.on { border-style: solid; background: var(--surface, #fff); } .stk2.on.r2 { border-color: #7bb6ff; } .stk2.on.r3 { border-color: #b18cff; box-shadow: 0 0 12px rgba(139, 92, 246, .35); }
.stk2:not(.on) { opacity: .55; } .stkq { width: 56px; height: 56px; display: grid; place-items: center; font: 800 1.6rem system-ui; color: var(--line, #c9d5dc); }
.stkn { position: absolute; right: -7px; bottom: -7px; z-index: 1; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #ff6fae; color: #fff; font: 800 .75rem/22px system-ui; font-style: normal; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.stkbtn { position: absolute; left: 4px; top: 4px; border: 0; background: #fff; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); font-size: .75rem; opacity: 0; transition: opacity .2s; }
.stk2:hover .stkbtn, .stkbtn:focus { opacity: 1; } @media (hover: none) { .stkbtn { opacity: 1; } }
.stkdone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(135deg, #fff3c4, #ffd6ec); }
.stkdone > span { font-size: 2.2rem; animation: qpop 1s ease infinite alternate; } .stkdone > div { flex: 1; min-width: 180px; }
.tlist { display: grid; gap: 8px; margin: 6px 0 12px; }
.trow { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2, #f6f9fb); }
.trow.need { outline: 2px solid #3dd68c; } .trow.mine { background: color-mix(in srgb, #ff6fae 10%, transparent); } .trow.small { display: block; font-size: .85rem; }
.twho { display: flex; gap: 8px; align-items: center; min-width: 0; } .twho > span { display: flex; flex-direction: column; min-width: 0; } .twho small { color: var(--ink-soft); font-size: .72rem; }
.tdeal { display: flex; align-items: center; gap: 6px; } .tarrow { font-size: 1.2rem; color: var(--ink-soft); }
.tstk { display: inline-flex; flex-direction: column; align-items: center; } .tstk .kst { width: 44px; height: 44px; } .tstk small { font-size: .68rem; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstk.any { font-size: 1.8rem; } .tact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.toprev { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 2rem; } .toprev .kst.big { width: 72px; height: 72px; }
@media (max-width: 560px) { .trow { grid-template-columns: minmax(0, 1fr); } .tact { align-items: flex-start; flex-direction: row; } }

.clinfo { margin: 10px 0; padding: 12px; border-radius: 14px; background: var(--surface-2, #f6f9fb); }
.clinfo .infotgl { display: inline; } .ptable { width: 100%; max-width: 380px; margin-top: 6px; border-collapse: collapse; } .ptable th, .ptable td { padding: 4px 8px; text-align: left; } .ptable th { font-size: .78rem; color: var(--ink-soft); }
.clrules { margin: 0; padding-left: 18px; } .clrules li { margin: 3px 0; }
.clanimg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--cc, #ff6fae) 18%, #fff); border: 2px solid var(--cc, #ff6fae); font-size: 1.3rem; flex: none; vertical-align: middle; }
.clanimg.sm { width: 30px; height: 30px; font-size: 1rem; border-radius: 9px; } .clanimg.big { width: 96px; height: 96px; font-size: 3rem; border-radius: 22px; box-shadow: 0 6px 20px color-mix(in srgb, var(--cc) 35%, transparent); }
.clhero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; }
.clup { position: absolute; left: 0; top: 104px; } .clhero:has(.clup) { padding-bottom: 34px; }
.clstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 240px; }
.clstats div { text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--surface-2, #f6f9fb); } .clstats b { display: block; font-size: 1.15rem; } .clstats small { color: var(--ink-soft); font-size: .72rem; }
.clist li { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; } .clist li.me { outline: 1.5px solid #ff9ec7; border-radius: 12px; }
.cwall .sysmsg { color: #b4570a; font-size: .85rem; }
@media (max-width: 560px) { .clstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clist li { grid-template-columns: 26px 28px minmax(0, 1fr) auto; } .clist li > small { display: none; } }
.home110 .hgrid { align-items: start; }
.twho .tnote { color: var(--ink); font-size: .8rem; margin-top: 2px; }

/* ---------- v1.1.3: Anime-Figuren (Bewegung) & Umkleide ---------- */
svg.anime { overflow: visible; }
svg.anime image { image-rendering: auto; }
svg.anime.anim .an-body { animation: anBreath var(--hb, 3.4s) ease-in-out infinite; transform-box: view-box; }
svg.anime.anim .an-hair { animation: anHair calc(var(--hb, 3.4s) * 1.3) ease-in-out infinite; transform-box: view-box; }
svg.anime.anim .an-hand { animation: anHand 2.2s ease-in-out infinite; transform-box: view-box; transform-origin: 72% 55%; }
svg.anime .an-lid { transform: scaleY(0); transform-box: view-box; }
svg.anime.anim .an-lids .an-lid { animation: anBlink 4.6s ease-in-out infinite; animation-delay: var(--bd, 3s); }
@keyframes anBreath { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.006); } }
@keyframes anHair { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.8deg); } }
@keyframes anHand { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes anBlink { 0%, 90%, 100% { transform: scaleY(0); } 93%, 96% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { svg.anime.anim .an-body, svg.anime.anim .an-hair, svg.anime.anim .an-hand, svg.anime.anim .an-lids .an-lid { animation: none; } }
.anithumb { width: 100%; height: 100%; }

.dzwrap { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dzstage { position: sticky; top: 70px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 85%, color-mix(in srgb, #ffd6ec 70%, transparent), transparent 60%), linear-gradient(180deg, #f6efff, #fff6fb); }
:root[data-mode="dark"] .dzstage { background: radial-gradient(ellipse at 50% 85%, rgba(255, 140, 200, .18), transparent 60%), linear-gradient(180deg, #221b33, #2a1f2e); }
.dzfig { width: 100%; max-width: 300px; aspect-ratio: 1 / 2; }
.dzfig svg { width: 100%; height: 100%; }
.dzworn { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dzchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 99px; border: 1px solid var(--line, #ddd); background: var(--surface, #fff); font-size: .75rem; cursor: pointer; color: var(--ink); }
.dzchip svg { width: 24px; height: 24px; } .dzchip b { color: #e5484d; }
.dzact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dztabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dztabs button { position: relative; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line, #dde5ea); background: var(--surface, #fff); color: var(--ink); border-radius: 99px; padding: 6px 12px; font-size: .84rem; cursor: pointer; }
.dztabs button.on { border-color: #ff6fae; background: linear-gradient(180deg, #fff0f7, #ffd9ea); color: #8a1f55; font-weight: 700; }
.dztabs .dot { position: absolute; top: 2px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }
.dzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.dzcard { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-radius: 16px; border: 2px solid var(--line, #e3e8ee); background: var(--surface, #fff); color: var(--ink); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; min-width: 0; }
.dzcard:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(120, 60, 140, .14); }
.dzcard.on { border-color: #ff6fae; box-shadow: 0 0 0 3px rgba(255, 111, 174, .25); }
.dzcard.own small { color: #157a4f; font-weight: 600; }
.dzth { width: 84px; height: 84px; display: grid; place-items: center; } .dzth svg { width: 100%; height: 100%; }
.dzcard b { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dzcard small { font-size: .72rem; color: var(--ink-soft); }
.dzsex button { min-width: 110px; }
@media (max-width: 760px) {
  .dzwrap { grid-template-columns: minmax(0, 1fr); } .dzwrap > * { min-width: 0; }
  .dzstage { position: static; }
  .dzfig { max-width: 210px; }
  .dztabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .dztabs button { flex: none; }
  .dzgrid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } .dzth { width: 68px; height: 68px; }
}
/* v1.1.3: Sticker-Smileys (Asia-Essen, Süßes) bewegen sich */
img.smiley.sticky { height: 30px; animation: smWig 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.bb img.smiley.sticky { height: 36px; }
img.smiley.sticky:nth-of-type(2n) { animation-delay: -1.1s; animation-duration: 3s; }
.smilepop img.sticky { animation: smWig 2.6s ease-in-out infinite; }
@keyframes smWig { 0%, 100% { transform: translateY(0) rotate(0) scale(1); } 25% { transform: translateY(-2px) rotate(-6deg) scale(1.04); } 50% { transform: translateY(0) rotate(0) scale(.98, 1.02); } 75% { transform: translateY(-1px) rotate(5deg) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { img.smiley.sticky, .smilepop img.sticky { animation: none; } }
/* v1.1.3: Startseite – zwei saubere Spalten am PC, untereinander in der App */
.home110 .hgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.home110 .hgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home110 .hcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home110 .hcol > * { margin: 0; }
.home110 .flyers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
@media (max-width: 720px) { .home110 .hgrid.two { grid-template-columns: minmax(0, 1fr); } }
.home110 .hpets { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); overflow: visible; } .home110 .hpetc { width: auto; min-width: 0; }
.dzth { overflow: hidden; border-radius: 12px; } .dzth svg.anime { overflow: hidden; }
/* v1.1.3: Umkleide – Verschieben & Ebenen */
.dzfig.moving svg { cursor: grab; outline: 2px dashed #ff6fae; outline-offset: 4px; border-radius: 12px; }
.dzfig.moving svg:active { cursor: grabbing; }
.dzmove { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; background: var(--surface, #fff); border: 1.5px solid #ff9ec7; color: var(--ink); }
.dzmove small { color: var(--ink-soft); }
.dzbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.dzbtns button { min-width: 38px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line, #ddd); background: var(--surface-2, #f4f6f8); color: var(--ink); cursor: pointer; font-weight: 600; }
.dzbtns button.ok { background: #22a06b; border-color: #22a06b; color: #fff; }
.dzlayers { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.dzlh { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 2px; } .dzlh small { color: var(--ink-soft); font-size: .72rem; }
.dzlay { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; background: var(--surface, #fff); border: 1.5px solid var(--line, #e3e8ee); cursor: pointer; color: var(--ink); }
.dzlay.on { border-color: #ff6fae; box-shadow: 0 0 0 2px rgba(255, 111, 174, .25); }
.dzlay .dzn { font-weight: 800; font-size: .75rem; color: var(--ink-soft); text-align: center; }
.dzlay .dzt { width: 30px; height: 30px; display: grid; place-items: center; } .dzlay .dzt svg { width: 100%; height: 100%; }
.dzlay .dzname { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dzlay .dzname em { font-style: normal; color: #c2185b; font-weight: 700; font-size: .72rem; }
.dzlay .dzx { border: 0; background: transparent; color: #e5484d; font-weight: 800; cursor: pointer; padding: 4px 6px; }

/* v1.1.3: Lesbarkeit im hellen und dunklen Modus */
.seg button.on { background: var(--surface, #fff); color: var(--ink); }
:root[data-mode="dark"] .seg { background: rgba(255, 255, 255, .08); }
:root[data-mode="dark"] .seg button { color: var(--ink-soft); }
:root[data-mode="dark"] .seg button.on { background: var(--p, #ff6fae); color: #fff; box-shadow: none; }
.stkdone { color: #3a2a1a; }
:root[data-mode="dark"] .qrow.ok b, :root[data-mode="dark"] .qrow.ok .qval em { color: #6ee7b0; }
:root[data-mode="dark"] .rkkinds button.on { background: linear-gradient(180deg, #ffd166, #f0a020); color: #2a1a00; }
:root[data-mode="dark"] .dztabs button.on { background: linear-gradient(180deg, #ff8cc0, #e0457b); color: #fff; }
:root[data-mode="dark"] .pd.me .pdname { color: #ff9ec7; }
:root[data-mode="dark"] .cwall .sysmsg { color: #ffb366; }
:root[data-mode="dark"] .trow.mine { background: rgba(255, 111, 174, .14); }
:root[data-mode="dark"] .dzcard.own small { color: #6ee7b0; }
:root[data-mode="dark"] .dzlay .dzname em { color: #ff9ec7; }
.dzstage .dzlh b { color: var(--ink); }
.accstage { width: min(320px, 80vw); margin: 0 auto; } .accstage svg { width: 100%; height: auto; cursor: grab; border: 2px dashed #ff9ec7; border-radius: 16px; background: var(--surface-2, #f6f8fb); }
.prule.wide > div { flex: 1; }
.plegend { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 14px; margin-top: 6px; font-size: .86rem; }
.plegend span { line-height: 1.4; }
.fullcare { margin-top: 8px; }
/* v1.1.3: Wettbewerbs-Disziplinen */
.track.kind-swim .lane { background: linear-gradient(90deg, #bfe9ff, #7cc8f5); }
.track.kind-jump .lane { background: linear-gradient(90deg, #f6e7c8, #e9cf9a); }
.track.kind-climb .lane { background: linear-gradient(90deg, #d9e8c8, #a9c48a); }
.track.kind-dance .lane { background: linear-gradient(90deg, #f5d6ff, #ffb3d9); }
:root[data-mode="dark"] .track[class*="kind-"] .lane { filter: brightness(.55) saturate(1.2); }
.spendask .big { font-size: 1.1rem; margin: 4px 0 10px; } .spendask .flex { gap: 8px; flex-wrap: wrap; }
/* v1.1.3: fehlende Sticker als graue Silhouette */
.stk2:not(.on) { opacity: 1; }
.stk2:not(.on) .kst, .stk2:not(.on) img { filter: grayscale(1) brightness(1.05) contrast(.7); opacity: .38; }
.stk2:not(.on) small { color: var(--ink-soft); opacity: .7; }

/* v1.1.3 – AP Kopfbanner */
.hbprev { height: 120px; border-radius: 14px; background: linear-gradient(120deg, var(--p2), var(--p)) center/cover no-repeat; display: grid; place-items: center; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin-bottom: 12px; position: relative; overflow: hidden; }
.hbprev .hbov { position: absolute; right: 10px; bottom: 8px; font-size: 12px; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 99px; }
.hbgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hbitem { border: 2px solid var(--line, #ddd); border-radius: 12px; padding: 6px; display: grid; gap: 6px; }
.hbitem.on { border-color: var(--p); }
.hbthumb { height: 60px; border-radius: 8px; background: center/cover no-repeat #ccc; }
.hbitem .flex { align-items: center; gap: 6px; flex-wrap: wrap; }
.hbitem small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-nav a { display: flex; gap: 6px; align-items: center; }

/* =====================================================================
   v1.1.3 – Handy wie eine App: nichts verrutscht, jedes Icon mit Beschriftung, Status oben rechts
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
img, svg, video, canvas, iframe { max-width: 100%; }
#main, .col, .box, .in { min-width: 0; }
@media (min-width: 861px) { html { scrollbar-gutter: stable; } }
@media (max-width: 860px) {
  body { -webkit-tap-highlight-color: transparent; overscroll-behavior-x: none; }
  a, button, select, label, .tile { touch-action: manipulation; }
  .drawer, .modal, .sb-list, .chat-msgs, .pm-conv { overscroll-behavior: contain; }
  pre, table { max-width: 100%; }
  .tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* App-Leiste: Icon oben, kurze Beschriftung darunter */
  .appbar { gap: 6px; }
  .appbar .modequick, .appbar .nbell, .appbar .mestat { flex-direction: column; gap: 1px; padding: 3px 7px; min-width: 44px; min-height: 44px; justify-content: center; line-height: 1; }
  .appbar .modequick span, .appbar .nbell .ic { font-size: 18px; }
  .appbar .modequick small, .appbar .mestat small { font-size: 9.5px; font-weight: 700; color: var(--ink-soft); }
  .appbar .nbell { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; text-decoration: none; color: var(--ink); position: relative; }
  .appbar .nbell::after { content: "Infos"; font-size: 9.5px; font-weight: 700; color: var(--ink-soft); }
  .appbar .mestat { max-width: 76px; }
  .appbar .mestat small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .appbar .mestat .mav { position: relative; display: inline-block; line-height: 0; }
  .appbar .mestat .mav .avatar, .appbar .mestat .mav img, .appbar .mestat .mav svg { width: 22px !important; height: 22px !important; border-radius: 50%; }
  .appbar .mestat .dot { position: absolute; right: -3px; bottom: -2px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; margin: 0; box-shadow: none; }
  /* Schublade: Status ganz oben, Darstellung mit Text */
  .drawer .mystatus { grid-template-columns: auto minmax(0, 1fr); margin: 0; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .drawer .mystatus::before { content: "Mein Status"; grid-column: 1 / -1; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
  .drawer .mystatus select, .drawer .mystatus input { font-size: 16px; min-height: 40px; }
  .drmode .modeswitch button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 4px 6px; line-height: 1.1; }
  .drmode .modeswitch button::after { content: attr(data-l); font-size: 10px; font-weight: 700; }
  /* Kachel-/Icon-Beschriftungen nie abschneiden */
  .tiles .tile .lbl, .tiles a .lbl { white-space: normal; word-break: break-word; hyphens: auto; }
}
@media (max-width: 380px) { .appbar .mestat small, .appbar .nbell::after { display: none; } .appbar .mestat, .appbar .nbell { min-width: 40px; } }
.dot.off { background: #9aa4ad; }
@media (max-width: 520px) { .appbar:has(.mestat) .brand { font-size: 0; gap: 0; } .appbar:has(.mestat) .brand img { width: 34px; height: 34px; } }

/* v1.1.3 – Lesbarkeit (gemessen: Kontrast ≥ 4,5 : 1 im hellen und dunklen Modus) */
:root:not([data-mode="dark"]) .ulink { color: color-mix(in srgb, var(--rc, var(--p-text)) 62%, #000); }
:root[data-mode="dark"] .ulink { color: color-mix(in srgb, var(--rc, var(--p-text)) 70%, #fff); }
.sfire.cold { filter: none; opacity: 1; color: var(--ink-soft); }
.stkn { background: #d6337a; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.evdate { background: color-mix(in srgb, var(--cat, var(--p)) 72%, #000); text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* =====================================================================
   v1.1.5 – Tierwettbewerbe: jede Disziplin bewegt sich anders
   ===================================================================== */
/* Schwimmen: Wasser mit Wellen, Tier halb im Wasser */
.track.kind-swim .lane { background: linear-gradient(180deg, #c9efff 0 30%, #58b9ee 30% 100%); }
.track.kind-swim .lane::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, #ff5a5a 0 14px, #fff 14px 28px); opacity: .85; }
.track.kind-swim .runner { bottom: -6px; }
.track.kind-swim .runner svg { animation: swimBob .7s ease-in-out infinite; }
.track.kind-swim .wave { position: absolute; left: -40px; right: -40px; bottom: 0; height: 16px; z-index: 3; opacity: .6; background: radial-gradient(circle at 20px -8px, transparent 18px, #3fa3df 19px) 0 0 / 40px 16px repeat-x; animation: waveMove 1.2s linear infinite; pointer-events: none; }
@keyframes swimBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(5px) rotate(6deg); } }
@keyframes waveMove { to { transform: translateX(40px); } }
/* Weitsprung: Anlaufbahn, Absprungbalken, Sandgrube */
.track.kind-jump .lane.jumplane { height: 84px; background: linear-gradient(180deg, #cfeeff 0 58%, #c9603f 58% 100%); overflow: hidden; }
.jumplane .board { position: absolute; left: calc(24% + 34px); bottom: 0; width: 8px; height: 42%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.jumplane .sand { position: absolute; left: calc(24% + 60px); right: 0; bottom: 0; height: 42%; background: radial-gradient(circle at 6px 6px, #e9cf9a 2px, transparent 3px) 0 0 / 12px 12px, #f3dfb2; border-left: 3px solid #fff; }
.jumplane .runner { left: 0; bottom: 6px; transition: none; z-index: 2; will-change: transform; }
.jumplane .runner svg { animation: none; }
.jumplane .runner.running svg { animation: run .22s ease-in-out infinite; }
.jumplane .runner.landed svg { animation: landSquash .35s ease-out 1; }
.jumplane .dist { position: absolute; right: 8px; top: 6px; font-weight: 800; font-size: 13px; color: #1d3557; background: rgba(255,255,255,.85); border-radius: 8px; padding: 1px 8px; }
.jumplane .dist:empty { display: none; }
.jumplane .puff { position: absolute; bottom: 4px; width: 36px; height: 16px; border-radius: 50%; background: #f8ebc9; animation: puff .6s ease-out forwards; z-index: 1; }
@keyframes landSquash { 0% { transform: scale(1.15, .8); } 100% { transform: scale(1, 1); } }
@keyframes puff { from { transform: scale(.4); opacity: .95; } to { transform: scale(2.2, 1.6) translateY(-8px); opacity: 0; } }
/* Klettern: Säulen, unten → oben */
.track.kind-climb { display: block; }
.climbwall { display: flex; gap: 6px; height: 340px; padding: 6px; border-radius: 14px; background: linear-gradient(180deg, #bfe3ff 0, #e6f4ff 100%); overflow-x: auto; }
.ccol { position: relative; flex: 1 0 64px; min-width: 64px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18) 0 6px, transparent 7px) 0 0 / 46px 58px, radial-gradient(circle at 70% 70%, rgba(0,0,0,.12) 0 7px, transparent 8px) 0 0 / 52px 64px, linear-gradient(180deg, #9aa7b8, #6f7c8f); }
.ccol.me { box-shadow: inset 0 0 0 3px var(--s); }
.ccol .ladder { position: absolute; left: 50%; top: 30px; bottom: 24px; width: 34px; transform: translateX(-50%); border-left: 4px solid #8a5a2b; border-right: 4px solid #8a5a2b; background: repeating-linear-gradient(180deg, transparent 0 14px, #a8733a 14px 18px); }
.ccol .summit { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: 20px; z-index: 2; }
.ccol .runner { position: absolute; left: 50%; bottom: 26px; width: 56px; height: 56px; margin-left: -28px; transition: bottom .42s linear; z-index: 3; }
.ccol .runner svg { width: 100%; height: 100%; animation: climbWig .34s ease-in-out infinite; }
.ccol .runner .medal { position: absolute; right: -4px; top: -6px; font-size: 20px; }
.ccol .lname { position: absolute; left: 2px; right: 2px; bottom: 2px; top: auto; text-align: center; font-size: 10px; font-weight: 700; color: #1f2a3a; background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 4; }
.ccol .lname small { display: none; }
@keyframes climbWig { 0%, 100% { transform: rotate(-9deg) translateX(-3px); } 50% { transform: rotate(9deg) translateX(3px); } }
/* Tanz-Battle: Bühne mit Lichtern, Moves und Jury-Punkten */
.track.kind-dance { display: block; }
.dancefloor { position: relative; display: flex; gap: 6px; align-items: flex-end; height: 260px; padding: 8px 8px 0; border-radius: 14px; overflow-x: auto; overflow-y: hidden;
  background: linear-gradient(180deg, #1b1033 0 62%, transparent 62%), repeating-conic-gradient(#ff5fb7 0 25%, #6a4bff 0 50%) 0 100% / 56px 56px; background-color: #2a1850; }
.dlights { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from 200deg at 20% 0, transparent 0 8deg, rgba(255,120,220,.28) 10deg 24deg, transparent 26deg), conic-gradient(from 140deg at 80% 0, transparent 0 8deg, rgba(90,220,255,.28) 10deg 24deg, transparent 26deg); animation: dLights 2.4s ease-in-out infinite alternate; }
@keyframes dLights { from { opacity: .5; transform: skewX(-6deg); } to { opacity: 1; transform: skewX(6deg); } }
.dcol { position: relative; flex: 1 0 64px; min-width: 64px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 20px; }
.dcol .runner { position: relative; width: 60px; height: 60px; z-index: 2; }
.dcol .runner svg { width: 100%; height: 100%; }
.dcol .runner .medal { position: absolute; right: -6px; top: -8px; font-size: 22px; }
.dcol.lead .runner { filter: drop-shadow(0 0 10px #fff59a); }
.dcol.me .lname { outline: 2px solid var(--s); }
.dcol .dbar { width: 12px; flex: 1; max-height: 110px; margin-bottom: 6px; border-radius: 6px; background: rgba(255,255,255,.14); display: flex; align-items: flex-end; overflow: hidden; }
.dcol .dbar i { display: block; width: 100%; height: 0; background: linear-gradient(180deg, #fff59a, #ff7ad9); transition: height .5s ease; border-radius: 6px; }
.dcol .dscore { color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px #000; }
.dcol .lname { position: absolute; left: 2px; right: 2px; bottom: 2px; top: auto; text-align: center; font-size: 10px; font-weight: 700; color: #1f2a3a; background: rgba(255,255,255,.9); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcol .lname small { display: none; }
.runner.mv-spin svg { animation: mvSpin .6s ease-in-out 1; }
.runner.mv-hop svg { animation: mvHop .3s ease-in-out 2; }
.runner.mv-shake svg { animation: mvShake .15s ease-in-out 4; }
.runner.mv-flip svg { animation: mvFlip .6s ease-in-out 1; }
.runner.mv-slide svg { animation: mvSlide .6s ease-in-out 1; }
@keyframes mvSpin { to { transform: rotate(360deg); } }
@keyframes mvHop { 0%, 100% { transform: translateY(0) scale(1.05, .92); } 50% { transform: translateY(-26px) scale(.95, 1.08); } }
@keyframes mvShake { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes mvFlip { 0% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(-1) translateY(-18px); } 100% { transform: scaleX(1) translateY(0); } }
@keyframes mvSlide { 0%, 100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(-12px) rotate(-10deg); } 70% { transform: translateX(12px) rotate(10deg); } }
:root[data-mode="dark"] .climbwall, :root[data-mode="dark"] .track.kind-jump .lane.jumplane { filter: brightness(.8); }
@media (prefers-reduced-motion: reduce) { .runner svg, .dlights, .wave { animation: none !important; } }
