/* RicoReWi World – Oberfläche */
:root { --pink: #ff3d8b; --gold: #ffd45a; --cyan: #22d3ee; --ink: #0b0d1c; --glass: rgba(12, 14, 32, .78); --line: rgba(255, 255, 255, .14); --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: #f2f4ff; font-family: Fredoka, "Segoe UI", system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Anzeige oben */
#hud { position: fixed; top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); right: calc(10px + var(--sar)); display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; pointer-events: none; z-index: 5; }
.chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: 15px; }
.chip b { color: var(--gold); font-size: 17px; }
.chip.area { opacity: .9; font-weight: 500; }
.chip.net { color: var(--cyan); }
.now { pointer-events: auto; margin-left: auto; display: flex; align-items: center; gap: 9px; max-width: min(380px, 60vw); padding: 5px 12px 5px 5px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; }
.now img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; }
.now span { min-width: 0; display: flex; flex-direction: column; }
.now b { font-size: 13px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now small { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 16px; flex: none; }
.eq s { width: 3px; background: var(--pink); border-radius: 2px; animation: eq 0.9s infinite ease-in-out; }
.eq s:nth-child(2) { animation-delay: -.3s; } .eq s:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* Hinweis */
#prompt { position: fixed; left: 50%; bottom: calc(26% + var(--sab)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(12, 14, 32, .88); border: 2px solid var(--gold); box-shadow: 0 0 24px rgba(255, 212, 90, .35); font-size: 16px; font-weight: 600; z-index: 6; animation: pop .25s ease-out; }
#prompt kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--gold); color: #1a1200; font: 700 15px Fredoka, sans-serif; }
#prompt .k-pad { display: none; border-radius: 50%; background: #3ecf5a; color: #fff; }
.eg-pad #prompt .k-key { display: none; } .eg-pad #prompt .k-pad { display: inline-grid; }
.touch #prompt kbd { display: none; } .touch #prompt { padding-left: 18px; }
@keyframes pop { from { transform: translateX(-50%) scale(.8); opacity: 0; } }

/* Befehlsmenü (Kingdom-Hearts-Stil) */
#cmd { position: fixed; left: calc(14px + var(--sal)); bottom: calc(14px + var(--sab)); width: 250px; z-index: 5; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
#cmdTitle { display: inline-block; padding: 3px 14px 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a1200; background: linear-gradient(90deg, var(--gold), #ffb347); border-radius: 10px 10px 0 0; }
#cmd.sub #cmdTitle { background: linear-gradient(90deg, var(--cyan), #7f9cff); }
#cmdList { display: flex; flex-direction: column; gap: 3px; padding: 6px; background: linear-gradient(160deg, rgba(20, 26, 60, .92), rgba(10, 12, 30, .92)); border: 1px solid rgba(255, 212, 90, .45); border-radius: 0 14px 14px 14px; max-height: 46vh; overflow-y: auto; scrollbar-width: none; }
#cmdList button { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: 15px; font-weight: 500; transition: background .12s, transform .12s; }
#cmdList button i { font-style: normal; width: 22px; text-align: center; }
#cmdList button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cmdList button.sel { background: linear-gradient(90deg, rgba(255, 61, 139, .85), rgba(255, 61, 139, .15)); transform: translateX(4px); font-weight: 700; }
#cmdList button.hot span { color: var(--gold); }
#cmdList button[aria-disabled="true"] { opacity: .45; }
.panel-open #cmd, .panel-open #touchBtns, .panel-open #joy, .panel-open #prompt { visibility: hidden; }

/* Touch */
#joy, #touchBtns { display: none; }
.touch #joy { display: block; position: fixed; left: calc(36px + var(--sal)); bottom: calc(40px + var(--sab)); width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 2px solid rgba(255, 255, 255, .2); z-index: 4; pointer-events: none; opacity: .6; transition: opacity .15s; }
.touch #joy.on { opacity: 1; }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9cfee); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.touch #cmd { display: none; }
.touch #touchBtns { display: grid; position: fixed; right: calc(14px + var(--sar)); bottom: calc(18px + var(--sab)); grid-template-columns: 58px 74px; grid-template-rows: 58px 74px; gap: 10px; z-index: 5; }
#touchBtns button { border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: rgba(12, 14, 32, .72); font-size: 24px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: manipulation; }
#touchBtns button:active { transform: scale(.92); }
#btnAct { background: linear-gradient(145deg, var(--pink), #b81e64) !important; font-size: 30px !important; }
#btnJump { grid-column: 1; grid-row: 2; }
.touch #cmd.sub { display: block; left: auto; right: calc(10px + var(--sar)); bottom: calc(176px + var(--sab)); width: 178px; }
.touch #cmd.sub #cmdList { max-height: 38vh; }
.touch #cmd.sub #cmdList button { padding: 6px 8px; font-size: 14px; }
.touch #prompt { bottom: calc(190px + var(--sab)); }
.eg-pad #touchBtns, .eg-pad #joy { display: none !important; }
.eg-pad #cmd { display: block !important; left: calc(14px + var(--sal)) !important; right: auto !important; bottom: calc(14px + var(--sab)) !important; }

/* Namen und Sprechblasen */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.tag, .bubble { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.tag { padding: 2px 9px; border-radius: 8px; background: rgba(12, 14, 32, .7); font-size: 13px; font-weight: 600; color: var(--cyan); }
.bubble { padding: 7px 12px; border-radius: 14px; background: #fff; color: #161a30; font-size: 15px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); max-width: 240px; white-space: normal; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }

/* Meldungen, Überblendung */
#toast { position: fixed; left: 50%; top: calc(70px + var(--sat)); transform: translate(-50%, -10px); max-width: min(90vw, 520px); padding: 11px 18px; border-radius: 14px; background: rgba(12, 14, 32, .92); border: 1px solid var(--gold); font-weight: 600; text-align: center; z-index: 30; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#fade { position: fixed; inset: 0; background: #05060c; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 20; display: grid; place-items: center; font-size: 18px; font-weight: 600; color: var(--gold); }
#fade.on { opacity: 1; pointer-events: auto; }

/* Fenster */
.panel { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: calc(14px + var(--sat)) calc(14px + var(--sar)) calc(14px + var(--sab)) calc(14px + var(--sal)); background: rgba(5, 6, 14, .55); overflow-y: auto; }
.panel.side { place-items: center end; background: linear-gradient(90deg, transparent 40%, rgba(5, 6, 14, .6)); }
.panel.talk { place-items: end center; background: transparent; padding-bottom: calc(24px + var(--sab)); }
.box { width: min(560px, 100%); max-height: 100%; overflow-y: auto; padding: 18px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(22, 28, 64, .96), rgba(10, 12, 30, .97)); border: 1px solid rgba(255, 212, 90, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); animation: rise .22s ease-out; }
.box.wide { width: min(760px, 100%); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.box h2 { margin: 0 0 12px; font-size: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.box h2 small { font-size: 18px; color: var(--gold); }
.box p { line-height: 1.45; }
.panel button:not(.st):not(.item) { padding: 11px 15px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); font-weight: 600; font-size: 15px; }
.panel button.primary:not(.st):not(.item) { background: linear-gradient(135deg, var(--pink), #c42572); border-color: transparent; }
.panel button:focus-visible, .panel input:focus-visible, .panel select:focus-visible, #cmdList button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.grid button { text-align: left; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.hint { opacity: .8; font-size: 14px; }
.msg { color: var(--gold); min-height: 1em; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 10px; font-size: 14px; opacity: .95; }
.field input, .field select, .join input { font: 600 17px Fredoka, sans-serif; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: #fff; user-select: text; -webkit-user-select: text; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; }

/* Titel */
#loading .bar, .quest .bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
#loading .bar i, .quest .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .3s; }
#pTitle.ready .start { display: flex; }
#pTitle.ready #loading { display: none; }
.big { font-size: 20px !important; padding: 14px !important; }
.back { color: #b8c0e0; text-align: center; margin-top: 4px; font-size: 14px; }

/* Avatar-Studio */
#pAvatar .box { width: min(400px, 100%); }
.row { display: grid; grid-template-columns: 1fr 42px minmax(110px, 1.3fr) 42px; gap: 6px; align-items: center; margin-bottom: 6px; }
.row .rl { font-size: 14px; opacity: .85; }
.row .rv { text-align: center; font-weight: 600; font-size: 14px; display: flex; justify-content: center; }
.row button { padding: 8px 0 !important; }
.sw { display: inline-block; width: 42px; height: 22px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .5); }
@media (max-width: 700px) { .panel.side { place-items: end center; background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 14, .7)); } #pAvatar .box { max-height: 58vh; } }

/* Shop */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button.on { background: rgba(255, 212, 90, .2) !important; border-color: var(--gold) !important; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 15px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); text-align: center; }
.item i { font-style: normal; font-size: 32px; }
.item small { color: var(--gold); font-weight: 600; }
.item.own { border-color: rgba(108, 255, 138, .5); } .item.own small { color: #6cff8a; }
.item[aria-disabled="true"] { opacity: .5; }

/* Aufgaben */
.quest { padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .06); margin-bottom: 8px; }
.quest b { display: block; margin-bottom: 7px; }
.quest small { display: block; margin-top: 5px; opacity: .8; }
.quest.done { opacity: .7; }

/* Karte */
.map canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 10px; }
.dest button { text-align: left; font-size: 14px !important; padding: 9px 12px !important; }

/* Radio */
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.st { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); text-align: left; position: relative; }
.st img { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.st span { display: flex; flex-direction: column; min-width: 0; }
.st small { opacity: .75; font-size: 12px; }
.st.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: rgba(255, 255, 255, .1); }
.st em { position: absolute; top: 4px; right: 8px; color: var(--gold); font-style: normal; }
.vol { display: flex; gap: 6px; align-items: center; margin-right: auto; }

/* Online */
.join { display: flex; gap: 8px; margin-top: 10px; }
.join input { width: 120px; text-align: center; letter-spacing: .25em; text-transform: uppercase; }
.room { display: flex; gap: 16px; align-items: center; }
.qr { width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; color: #111; flex: none; }
.qr svg { width: 100%; height: 100%; }
.code { font-size: 44px; font-weight: 700; letter-spacing: .15em; color: var(--gold); }
.url { word-break: break-all; opacity: .7; }
#onPeople { padding-left: 4px; list-style: none; }
#onPeople li { padding: 3px 0; }

/* Gespräch */
#pTalk .box { width: min(620px, 100%); }
.who { color: var(--gold); font-size: 18px; }
#talkText { font-size: 18px; margin: 8px 0 0; }
.help { padding-left: 18px; line-height: 1.5; }
.help li { margin-bottom: 6px; }

/* Live-Welt */
.wstate { margin: 10px 0 4px; font-size: 14px; opacity: .9; min-height: 1.2em; }
.wstate.ok { color: #6cff8a; } .wstate.err { color: #ffb4b4; }
#netDown { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(5, 6, 14, .72); }
#netDown > div { text-align: center; padding: 22px 26px; border-radius: 20px; background: rgba(12, 14, 32, .95); border: 1px solid var(--line); max-width: 360px; }
#netDown b { font-size: 40px; display: block; animation: pulse 1.4s infinite; } #netDown p { margin: 10px 0 14px; }
#netDown button { padding: 11px 16px; border-radius: 13px; border: 0; background: linear-gradient(135deg, var(--pink), #c42572); font-weight: 600; }
@keyframes pulse { 50% { opacity: .35; } }

/* Homepage-Inhalte */
.box h3 { margin: 14px 0 8px; font-size: 17px; }
.list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.list > * { flex-shrink: 0; } .list .list { max-height: none; overflow: visible; }
.post { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); position: relative; user-select: text; -webkit-user-select: text; }
.post.sys { background: rgba(255, 212, 90, .1); }
.post .ph { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .post .ph b { color: var(--cyan); } .post .ph span { font-size: 13px; opacity: .85; } .post .ph small { margin-left: auto; opacity: .6; font-size: 12px; }
.post p { margin: 6px 0 0; word-wrap: break-word; } .post .re { font-size: 14px; opacity: .85; margin-left: 10px; }
.panel button.mini { padding: 5px 10px !important; font-size: 12px !important; border-radius: 9px !important; margin-top: 6px; }
.chatform { display: flex; gap: 8px; margin: 6px 0; }
.chatform input { flex: 1; min-width: 0; font: 600 16px Fredoka, sans-serif; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: #fff; user-select: text; -webkit-user-select: text; }
.login { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); margin: 6px 0; font-size: 14px; }
.row2 { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.row2 span { display: flex; flex-direction: column; min-width: 0; } .row2 small { opacity: .75; }
.panel button.opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; margin-top: 6px; }
.opt i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 61, 139, .28); transition: width .6s; }
.opt span, .opt em { position: relative; } .opt em { margin-left: auto; font-style: normal; color: var(--gold); }
.opt.mine { border-color: var(--pink) !important; } .opt.right { border-color: #6cff8a !important; background: rgba(108, 255, 138, .15) !important; } .opt.wrong { border-color: #ff6b6b !important; }
.vs { text-align: center; margin: 4px 0; font-weight: 700; color: var(--gold); }
.card { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.rank { margin: 0; padding-left: 22px; } .rank li { display: flex; justify-content: space-between; padding: 3px 0; } .rank li.me { color: var(--gold); }
.crow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.crow.top { background: rgba(255, 212, 90, .1); }
.crow .rk { width: 28px; text-align: center; font-weight: 700; font-size: 18px; color: var(--gold); }
.crow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .crow .t b, .crow .t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crow .t small { opacity: .75; }
.crow .vt { display: flex; gap: 4px; } .panel .crow .vt button { padding: 6px 9px !important; font-size: 14px !important; } .crow .vt button.on { border-color: var(--gold) !important; background: rgba(255, 212, 90, .2) !important; }
.mags { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.panel button.mag { display: flex; flex-direction: column; gap: 6px; padding: 0 !important; overflow: hidden; text-align: left; }
.mag img, .mag .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: grid; place-items: center; font-size: 40px; background: rgba(255, 255, 255, .05); }
.mag b { padding: 0 10px; font-size: 15px; } .mag small { padding: 0 10px 10px; opacity: .7; }
.art { user-select: text; -webkit-user-select: text; line-height: 1.5; } .art img, .art video { max-width: 100%; height: auto; border-radius: 12px; } .art a { color: var(--cyan); } .art .lead { font-weight: 600; }
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 26vh; overflow-y: auto; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.people li small { opacity: .7; } .people .mini { margin-top: 0 !important; }

/* Sender-Steckbrief, Social */
.sthead { display: flex; gap: 14px; align-items: center; }
.sthead img { width: 84px; height: 84px; border-radius: 18px; flex: none; }
.sthead div { display: flex; flex-direction: column; gap: 3px; } .sthead b { font-size: 19px; } .sthead small { opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chips span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-size: 13px; }
.actions.left { justify-content: flex-start; margin-top: 4px; }
.sched .row2.now { border: 1px solid var(--gold); background: rgba(255, 212, 90, .12); } .row2 em { font-style: normal; color: var(--gold); font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 8px; } .links a, .tlinks a { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sites a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff; text-decoration: none; }
.sites a:focus-visible, .links a:focus-visible, .tlinks a:focus-visible { outline: 3px solid var(--gold); }
.sites i { font-style: normal; font-size: 26px; } .sites span { display: flex; flex-direction: column; min-width: 0; } .sites small { opacity: .75; }
.tlinks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; } .tlinks a { font-size: 13px; padding: 6px 10px; }

/* Raum-Chat (frei, flüchtig) */
#rchat { position: fixed; right: calc(14px + var(--sar)); bottom: calc(14px + var(--sab)); width: min(360px, 44vw); z-index: 6; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
#rchatLog { max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font-size: 14px; scrollbar-width: none; }
#rchatLog .ln { padding: 4px 10px; border-radius: 10px; background: rgba(8, 10, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-wrap: anywhere; transition: opacity 1s; }
#rchatLog .ln b { color: var(--cyan); font-weight: 700; } #rchatLog .ln.me b { color: var(--gold); }
#rchatLog .ln.old { opacity: 0; } #rchat.open #rchatLog .ln.old { opacity: .75; }
#rchatBar { display: none; gap: 6px; pointer-events: auto; }
#rchat.open #rchatBar { display: flex; } #rchat.open #rchatLog { pointer-events: auto; }
#rchatBar input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 10, 24, .85); color: inherit; font: inherit; }
#rchatBar button { padding: 8px 11px; }
#rchatMsg { margin: 0; font-size: 13px; color: var(--gold); pointer-events: none; } #rchatMsg:empty { display: none; }
.panel-open #rchat { display: none; }
.touch #rchat { right: auto; left: calc(10px + var(--sal)); bottom: auto; top: calc(64px + var(--sat)); width: min(340px, 70vw); }
.touch #rchatLog { max-height: 22vh; }

/* Mall */
.item img, .item canvas { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #f5ecd7; }
.sws { display: flex; flex-wrap: wrap; gap: 8px; }
.sw2 { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); padding: 0 !important; }
.sw2.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 212, 90, .35); }

/* Leben (Bedürfnisse) */
.chip.life { gap: 3px; padding: 6px 11px; cursor: pointer; }
.chip.life i { font-style: normal; font-size: 18px; margin-right: 3px; }
.chip.life s { display: block; width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(to top, var(--c) var(--v), rgba(255, 255, 255, .14) 0); }
#lifeBody h3 { margin: 14px 0 6px; font-size: 15px; color: var(--gold); }
#lifeBody .emo { font-size: 20px; } #lifeBody .emo small { display: block; font-size: 13px; opacity: .8; margin-top: 2px; }
.need { display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.need b { height: 10px; border-radius: 6px; background: linear-gradient(to right, var(--c) var(--v), rgba(255, 255, 255, .12) 0); }
ul.rel { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; } ul.rel small { opacity: .7; }
.list.choice button { text-align: left; } .list.choice button i { font-style: normal; } .list.choice button small { display: block; opacity: .7; font-size: 12px; margin-top: 2px; }
#sleepFx { position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(5, 6, 20, .35), rgba(5, 6, 20, .85)); opacity: 0; pointer-events: none; transition: opacity 1.2s; z-index: 4; }
.sleeping #sleepFx { opacity: 1; }

/* Baumodus */
#buildInfo { position: fixed; top: calc(62px + var(--sat)); left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; z-index: 5; pointer-events: none; max-width: 92vw; text-align: center; }
#buildInfo i { font-style: normal; color: #ff8a8a; }
.tabs.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; } .tabs.scroll button { flex-shrink: 0; }
#catList { max-height: 52vh; overflow-y: auto; }
#catList img { width: 72px; height: 72px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.sw3 { display: block; width: 72px; height: 48px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); margin: 0 auto; }

/* Treffpunkt: Räume, Profil, Post */
.chip.mail { color: var(--gold); cursor: pointer; animation: mailPulse 1.6s ease-in-out infinite; }
@keyframes mailPulse { 50% { box-shadow: 0 0 0 4px rgba(255, 212, 90, .25); } }
.list.rooms button { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 10px; }
.list.rooms button small { grid-column: 1; opacity: .75; } .list.rooms button span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; }
.fld { display: grid; gap: 6px; margin: 8px 0; font-size: 14px; }
.fld input, .fld textarea, .thbar input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 10, 24, .7); color: inherit; font: inherit; resize: vertical; }
.pf .pemo { font-size: 30px; margin-right: 8px; vertical-align: middle; } .bio { font-style: italic; opacity: .9; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.req span:last-child { display: flex; gap: 6px; }
#mailBody h3 { margin: 12px 0 6px; font-size: 15px; color: var(--gold); }
#thList { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.pm { align-self: flex-start; max-width: 80%; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .09); overflow-wrap: anywhere; }
.pm.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(255, 61, 139, .28); }
.pm small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.thbar { display: flex; gap: 6px; margin-top: 8px; } .thbar input { flex: 1; min-width: 0; }

/* Gemeinschaft: Gästebuch, Crew, Bonus, Party */
.gb { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); margin: 6px 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.gb small { opacity: .6; font-size: 11px; } .gb small button { padding: 2px 6px; margin-left: 6px; font-size: 12px; }
#gbList, #crewWall { max-height: 42vh; overflow-y: auto; }
#crewBody h3 { margin: 12px 0 6px; font-size: 15px; } #crewBody h3 small { font-weight: 500; opacity: .7; color: inherit; }
.chip.party { color: #fff; background: linear-gradient(90deg, #ff3d8b, #a46cff); cursor: pointer; animation: mailPulse 1.2s ease-in-out infinite; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { text-align: center; padding: 8px 2px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; }
.day small { display: block; opacity: .7; } .day b { display: block; font-size: 18px; color: var(--gold); } .day i { display: block; font-style: normal; }
.day.got { opacity: .5; } .day.now { background: rgba(255, 212, 90, .18); border-color: var(--gold); transform: scale(1.06); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
#confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: conf 2.6s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes conf { to { top: 105vh; transform: translateX(60px) rotate(720deg); opacity: .9; } }
.tag small { display: block; font-size: 10px; opacity: .85; color: var(--gold); }
#petBody h3, #pshopBody h3 { margin: 12px 0 6px; font-size: 15px; color: var(--gold); }
#petBody button[disabled] { opacity: .5; }

/* Stadt-Ereignisse und Schneeball-Treffer */
#eventBar { position: fixed; left: 50%; top: calc(62px + var(--sat)); transform: translateX(-50%); z-index: 25; padding: 8px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 61, 139, .92), rgba(164, 108, 255, .92)); box-shadow: 0 6px 24px rgba(255, 61, 139, .4); text-align: center; max-width: min(92vw, 560px); pointer-events: none; animation: evPulse 2s ease-in-out infinite; }
#eventBar b { display: block; font-size: 15px; }
#eventBar small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }
@keyframes evPulse { 50% { box-shadow: 0 6px 34px rgba(255, 212, 90, .55); } }
#splat { position: fixed; inset: 0; z-index: 24; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95) 0 12%, rgba(240, 248, 255, .7) 20%, rgba(255, 255, 255, 0) 45%); opacity: 0; }
#splat.on { animation: splatA 1.6s ease-out forwards; }
@keyframes splatA { 0% { opacity: 1; transform: scale(.6); } 15% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
body:has(#eventBar:not([hidden])) #toast { top: calc(128px + var(--sat)); }

/* Douze Points Arena: ESC-News */
.escBody { max-height: min(56vh, 520px); overflow-y: auto; display: grid; gap: 8px; }
.escItem { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 61, 240, .25); color: inherit; text-decoration: none; }
.escItem:hover, .escItem:focus { background: rgba(255, 61, 240, .14); }
.escItem b { display: block; font-size: 15px; }
.escItem span { display: block; font-size: 13px; opacity: .85; margin-top: 3px; }
.escItem small, .escCard small { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.escCard { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.escCard ul { margin: 6px 0 0 18px; padding: 0; } .escCard li { margin: 3px 0; } .escCard a { color: #ffd45a; }
.escCard.ins { display: flex; gap: 10px; align-items: flex-start; } .escCard.ins span { font-size: 24px; } .escCard.ins p { margin: 0; }
.escCd { font-weight: 700; color: #ffd45a; }
.escBody a, .escBody .hint a { color: #ffd45a; }

/* ESC-Museum & Kino: Video liegt hinter der Szene (CSS-3D), Leinwand ist ein Loch im Bild */
#cssView { position: fixed; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; }
#cinemaBar, #venueBar { position: fixed; left: 50%; top: calc(62px + var(--sat)); transform: translateX(-50%); z-index: 25; display: flex; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(12, 8, 24, .88); border: 1px solid rgba(255, 212, 90, .4); max-width: min(94vw, 620px); }
#cinemaBar b, #venueBar b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
#cinemaBar small, #venueBar small { display: block; font-size: 11px; opacity: .8; } #cinemaBar a { color: #ffd45a; }
#cinemaBar span, #venueBar span { display: flex; gap: 6px; } #cinemaBar button, #venueBar button { min-width: 42px; min-height: 42px; border-radius: 10px; font-size: 18px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.vid { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 6px !important; border-radius: 12px; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.vid b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .vid small { font-size: 11px; opacity: .7; }
.musCard { padding: 12px; border-radius: 12px; background: rgba(255, 212, 90, .08); border: 1px solid rgba(255, 212, 90, .3); } .musCard p { margin: 4px 0 8px; font-size: 13px; }
.musSearch { display: flex; gap: 8px; } .musSearch input { flex: 1; min-width: 0; }
.edRow { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.edY { font-size: 20px; font-weight: 900; color: #ffd45a; } .edI { font-size: 13px; line-height: 1.35; } .edI small { display: block; opacity: .7; font-size: 11px; }
.edB { display: flex; flex-direction: column; gap: 4px; } .edB button { font-size: 12px; padding: 6px 8px !important; white-space: nowrap; }
.landRow { display: grid !important; grid-template-columns: 34px 1fr; text-align: left; gap: 2px 8px; width: 100%; padding: 8px 10px !important; border-radius: 12px; }
.landRow span { grid-row: span 2; font-size: 24px; } .landRow small { font-size: 11px; opacity: .75; }
#musBody h3 { margin: 10px 0 4px; font-size: 14px; color: #ffd45a; }
@media (max-width: 560px) { .edRow { grid-template-columns: 46px 1fr; } .edB { grid-column: 1 / -1; flex-direction: row; } }

/* ESC-News: Leseansicht im Spiel */
button.escItem { text-align: left; width: 100%; font: inherit; cursor: pointer; }
.escBack { align-self: start; }
.escArticle h2 { margin: 6px 0 2px; font-size: 20px; line-height: 1.25; } .escArticle .meta { margin: 0 0 10px; font-size: 12px; opacity: .7; }
.escText { font-size: 15px; line-height: 1.6; } .escText img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 8px 0; }
.escText h2, .escText h3, .escText h4 { margin: 14px 0 6px; font-size: 16px; color: #ffd45a; } .escText a { color: #ffd45a; } .escText blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid #ff3df0; background: rgba(255, 255, 255, .05); }
.escText figure { margin: 8px 0; } .escText figcaption { font-size: 12px; opacity: .7; }
.escFrame { height: min(60vh, 560px); border-radius: 12px; overflow: hidden; background: #fff; } .escFrame iframe { width: 100%; height: 100%; border: 0; }
.escSrc { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; opacity: .9; }

/* Spiel-Fenster für fremde Seiten */
.webFrame { height: min(64vh, 620px); border-radius: 12px; overflow: hidden; background: #fff; } .webFrame iframe { width: 100%; height: 100%; border: 0; }

.srcs { display: flex; flex-wrap: wrap; gap: 6px; } .srcs button { font-size: 13px; }

/* Konsolen-Tasten: vier Aktionstasten in Rautenform (A unten, B rechts, X links, Y oben), Menü als Start-Taste */
.touch #touchBtns { display: block; position: fixed; right: calc(12px + var(--sar)); bottom: calc(14px + var(--sab)); width: 196px; height: 196px; z-index: 5; }
.touch #touchBtns button { position: absolute; width: 62px; height: 62px; display: grid; place-items: center; padding: 0; color: #fff; }
.touch #touchBtns button::after { content: attr(data-k); position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; font: 800 11px/20px system-ui, sans-serif; text-align: center; background: var(--kc, #444); color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.touch #btnAct { left: 63px; bottom: 0; width: 72px; height: 72px; --kc: #2fd36b; }
.touch #btnJump { right: 0; top: 67px; --kc: #ff3d5a; }
.touch #btnEmote { left: 0; top: 67px; --kc: #3a8bff; }
.touch #btnChat { left: 67px; top: 0; --kc: #ffc93c; }
.touch #btnMenu { right: -2px; top: -54px; width: 46px; height: 46px; font-size: 20px; border-radius: 14px; --kc: transparent; }
.touch #btnMenu::after { display: none; }
@media (max-height: 520px) { .touch #touchBtns { transform: scale(.82); transform-origin: bottom right; } }
@media (max-width: 560px) { #cinemaBar, #venueBar { top: calc(108px + var(--sat)); width: 94vw; } #cinemaBar b, #venueBar b { max-width: 58vw; } }

/* ───── Titel & Ladebildschirm im Konsolen-Stil (Startbildschirm wie auf PlayStation/Xbox) ───── */
.panel.title { display: block; padding: 0; background: #05060e; overflow: hidden; }
.kart { position: absolute; inset: 0; overflow: hidden; }
.kart::before { content: ""; position: absolute; inset: -40px; background: url(assets/keyart.jpg) center / cover no-repeat; filter: blur(30px) brightness(.5) saturate(1.2); }
.kart::after { content: ""; position: absolute; inset: 0; background: url(assets/keyart.jpg) center 18% / cover no-repeat; animation: kenburns 28s ease-in-out infinite alternate; }
.kart i { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 6, 14, .55) 0%, rgba(5, 6, 14, 0) 20%, rgba(5, 6, 14, 0) 40%, rgba(5, 6, 14, .85) 64%, #05060e 100%); }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
@media (min-aspect-ratio: 4/3) { .kart::after { background-size: contain; background-position: right 4% center; } .kart i { background: linear-gradient(90deg, rgba(5, 6, 14, .78) 0%, rgba(5, 6, 14, .6) 35%, rgba(5, 6, 14, .1) 58%, rgba(5, 6, 14, 0) 70%), linear-gradient(180deg, transparent 60%, #05060e 100%); } }
.ttop { position: absolute; top: calc(14px + var(--sat)); left: calc(18px + var(--sal)); right: calc(18px + var(--sar)); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; z-index: 2; }
.logo { display: flex; align-items: center; gap: 12px; line-height: .9; text-align: left; }
.tlogo { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 6px 24px rgba(255, 61, 139, .5); }
.logo span { display: block; font-size: 20px; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.logo b { display: block; font-size: 40px; background: linear-gradient(90deg, var(--pink), #ffb347, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 14px rgba(255, 61, 139, .5)); }
.logo small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.tprof { display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 30px; background: rgba(10, 12, 30, .72); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 56vw; }
.tprof i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--pink), #a46cff); flex: none; }
.tprof b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tprof small { display: block; font-size: 11px; opacity: .75; white-space: nowrap; }
.tprof.locked small { color: #6cff8a; opacity: 1; }
#loading { position: absolute; left: calc(22px + var(--sal)); right: calc(22px + var(--sar)); bottom: calc(26px + var(--sab)); z-index: 2; }
#loading .bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.ltip { margin: 0 0 14px; font-size: 15px; opacity: .92; max-width: 640px; text-shadow: 0 2px 8px #000; }
.lrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .lrow small { flex: 1; opacity: .9; font-size: 14px; } .lrow em { font-style: normal; font-weight: 700; color: var(--gold); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--pink); border-right-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.start { display: none; position: absolute; left: calc(18px + var(--sal)); right: calc(18px + var(--sar)); bottom: calc(52px + var(--sab)); z-index: 2; flex-direction: column; gap: 10px; text-align: left; max-width: 760px; }
.tiles { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-height: 112px; padding: 12px; border-radius: 18px; text-align: left; color: #fff; text-decoration: none; background: rgba(14, 16, 36, .74); border: 2px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; font: inherit; }
.tile i { font-style: normal; font-size: 26px; line-height: 1; margin-bottom: auto; }
.tile b { font-size: 18px; } .tile small { font-size: 12px; opacity: .75; }
.tile.big { background: linear-gradient(135deg, rgba(255, 61, 139, .92), rgba(164, 108, 255, .88)); border-color: rgba(255, 255, 255, .35); } .tile.big b { font-size: 26px; } .tile.big i { font-size: 34px; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px) scale(1.03); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 212, 90, .35), 0 12px 30px rgba(0, 0, 0, .5); outline: none; }
.tile:disabled { opacity: .55; }
.tname { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.tname .field input[readonly] { opacity: .85; border-color: rgba(108, 255, 138, .5); }
.nhint { margin: 0; font-size: 12.5px; opacity: .85; } .nhint.err { color: #ffb4b4; opacity: 1; } .nhint.ok { color: #6cff8a; }
#pTitle .nhint button { font: inherit !important; min-height: 0 !important; box-shadow: none !important; display: inline !important; width: auto !important; background: none !important; border: 0 !important; padding: 0 !important; color: var(--gold); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.tfoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px calc(18px + var(--sar)) calc(8px + var(--sab)) calc(18px + var(--sal)); display: flex; gap: 18px; align-items: center; font-size: 13px; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); z-index: 2; }
.tfoot kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 11px/1 Fredoka, sans-serif; color: #fff; margin-right: 4px; } .tfoot .pa { background: #3bb54a; } .tfoot .pb { background: #e0403a; }
.tclock { margin-left: auto; font-weight: 700; opacity: .9; }
#pTitle:not(.ready) .tfoot span:not(.tclock) { display: none; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } .tile.big { grid-column: span 2; min-height: 92px; } .tile { min-height: 84px; } .logo b { font-size: 32px; } .tlogo { width: 44px; height: 44px; } .start { bottom: calc(44px + var(--sab)); } .tlinks { display: none; } }

/* Kleiderschrank (echte Figuren) im Avatar-Studio */
.wardH { margin: 10px 0 6px; font-size: 16px; } .wardH small { font-weight: 500; opacity: .7; font-size: 12px; }
.ward { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; max-height: 42vh; overflow-y: auto; padding: 2px; }
.ward button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 6px !important; border-radius: 14px; background: linear-gradient(180deg, rgba(164, 108, 255, .22), rgba(10, 12, 30, .9)) !important; border: 2px solid rgba(255, 255, 255, .12); min-height: 0 !important; }
.ward button img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: radial-gradient(circle at 50% 35%, rgba(255, 61, 139, .35), rgba(10, 12, 30, .2)); }
.ward button b { font-size: 12.5px; line-height: 1.1; } .ward button small { font-size: 10.5px; opacity: .75; line-height: 1.1; text-align: center; }
.ward button em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: var(--gold); }
.ward button.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 212, 90, .35), 0 0 18px rgba(255, 61, 139, .45); } .ward button.on em { color: #6cff8a; }
.kitT { margin: 8px 0 2px; } .kitT button { width: 100%; font-size: 13px !important; opacity: .9; }

/* Fotomodus */
html.photo body > :not(#scene):not(.css3dView):not(#photoBar):not(#photoPrev):not(.photoFlash):not(#toast):not(script) { display: none !important; }
#photoBar { position: fixed; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%); z-index: 30; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 8px; border-radius: 20px; background: rgba(10, 12, 30, .75); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100vw - 20px); }
#photoBar button { font: 700 14px Fredoka, sans-serif; color: #fff; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); cursor: pointer; }
#photoBar button.shot { background: linear-gradient(135deg, var(--pink), #a46cff); border-color: transparent; font-size: 16px; padding: 10px 18px; }
#photoBar small { width: 100%; text-align: center; font-size: 12px; opacity: .8; }
.photoFlash { position: fixed; inset: 0; background: #fff; z-index: 40; pointer-events: none; animation: pflash .45s ease-out forwards; } @keyframes pflash { from { opacity: .9; } to { opacity: 0; } }
#photoPrev { position: fixed; right: calc(12px + var(--sar)); top: calc(12px + var(--sat)); z-index: 35; width: min(240px, 46vw); padding: 8px; border-radius: 16px; background: rgba(10, 12, 30, .85); border: 1px solid rgba(255, 212, 90, .5); display: flex; flex-direction: column; gap: 6px; }
#photoPrev img { width: 100%; border-radius: 10px; } #photoPrev div { display: flex; gap: 6px; justify-content: center; }
#photoPrev .pbtn { font: 700 13px Fredoka, sans-serif; color: #fff; text-decoration: none; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); cursor: pointer; }

/* Ingame-Menü im Konsolen-Stil (Kacheln in Gruppen) */
.panel.cmenu { background: rgba(5, 6, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmenu .box { width: min(620px, 100%); padding: 16px 16px 18px; background: linear-gradient(180deg, rgba(22, 16, 44, .94), rgba(10, 12, 30, .94)); }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mprof { display: flex; align-items: center; gap: 10px; min-width: 0; } .mprof i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 19px; background: linear-gradient(135deg, var(--pink), #a46cff); flex: none; }
.mprof b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mprof small { display: block; font-size: 12px; opacity: .75; }
.msp { padding: 6px 12px; border-radius: 14px; background: rgba(255, 212, 90, .14); color: var(--gold); white-space: nowrap; }
.panel .mresume { width: 100%; font-size: 18px; padding: 12px; border-radius: 16px; margin-bottom: 4px; }
.cmenu h3 { margin: 12px 2px 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.mgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.panel .mgrid .mt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 78px; padding: 8px 4px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: transform .12s, border-color .12s, background .12s; }
.mgrid .mt i { font-style: normal; font-size: 26px; line-height: 1; } .mgrid .mt span { font-size: 12px; font-weight: 700; line-height: 1.15; }
.panel .mgrid .mt:hover, .panel .mgrid .mt:focus-visible { transform: translateY(-2px); border-color: var(--gold); background: rgba(255, 212, 90, .1); outline: none; }
@media (max-width: 560px) { .mgrid { grid-template-columns: repeat(3, 1fr); } .panel .mgrid .mt { min-height: 70px; } }
html.panel-open #eventBar { display: none !important; }

/* RicoReWi Music: Leiste unter dem Radio-Chip und Bibliothek */
.musicBar { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; background: rgba(10, 12, 30, .82); border: 1px solid rgba(255, 212, 90, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: min(420px, 70vw); pointer-events: auto; }
.musicBar[hidden] { display: none; } .musicBar img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.musicBar .mi { min-width: 0; flex: 1; } .musicBar b, .musicBar small, .musicBar em { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .musicBar b { font-size: 14px; } .musicBar small { font-size: 11px; opacity: .75; } .musicBar em { font-style: normal; font-size: 12px; color: var(--gold); min-height: 1em; }
.musicBar .mc { display: flex; gap: 3px; } .musicBar .mc button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; cursor: pointer; }
.now.music { display: none !important; }
.musBtn { width: 100%; margin-bottom: 10px; }
.musBody { max-height: 62vh; overflow-y: auto; }
.mus-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; }
.panel .mus-card { display: flex; flex-direction: column; gap: 3px; padding: 6px !important; text-align: left; border-radius: 14px; }
.mus-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); } .mus-card b { font-size: 13px; line-height: 1.15; } .mus-card small { font-size: 11px; opacity: .7; }
.mus-rel { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .mus-rel img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; } .mus-rel b { display: block; font-size: 20px; } .mus-rel small { display: block; opacity: .75; margin-bottom: 8px; }
.mus-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.panel .mus-tl button { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 5px 8px !important; border-radius: 12px; }
.mus-tl img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; } .mus-tl span { flex: 1; min-width: 0; } .mus-tl b, .mus-tl small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mus-tl small { font-size: 11px; opacity: .7; } .mus-tl em { font-style: normal; font-size: 12px; opacity: .7; }
.mus-tl button.now { border-color: var(--gold); background: rgba(255, 212, 90, .12); } .mus-e { font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 4px; background: #c8102e; }
