/* Die Herrin der Zahlen – Oberfläche im Fantasy-Stil */
:root { --gold: #e8c060; --gold2: #a07a2a; --dark: rgba(14, 10, 22, 0.92); --panel: #1b1426; --ink: #2a2014; --parch: #f3e6c4; --txt: #f4ead2; --good: #4ad06a; --bad: #e0503a; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120c1c; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--txt); user-select: none; -webkit-user-select: none; touch-action: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#hud, #plates, #toasts { pointer-events: none; }
#hud > * { pointer-events: auto; }
#plates, #toasts { position: fixed; inset: 0; }
h3 { font-family: Georgia, "Palatino Linotype", serif; color: var(--gold); margin: 14px 0 6px; font-size: 17px; }
small { opacity: .75; }
input, select, button { font: inherit; }
.mth { white-space: nowrap; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 2px; font-size: .92em; line-height: 1.05; }
.fr > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 3px; }
.fr > span:last-child { padding: 0 3px; }
.ov { text-decoration: overline; }
sup { font-size: .7em; }

/* Lade- und Fehlerschirm */
#loading, #nogl { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(#2a1d3e, #0c0814); z-index: 50; }
.lbox { text-align: center; padding: 30px; max-width: 520px; font-size: 18px; }
.lname { font-family: Georgia, serif; font-size: 34px; color: var(--gold); margin: 16px 0 8px; }
.ltip { opacity: .8; }
.lspin { width: 54px; height: 54px; margin: auto; border: 5px solid rgba(232, 192, 96, .25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fenster */
.modal { position: fixed; inset: 0; background: rgba(5, 3, 10, .55); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 12px; }
.modal.nodim { background: none; }
.win { background: linear-gradient(#251b33, #17111f); border: 2px solid var(--gold2); outline: 1px solid #000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .45), 0 10px 40px rgba(0, 0, 0, .7), inset 0 0 30px rgba(232, 192, 96, .07); border-radius: 10px; max-width: min(760px, 96vw); width: 100%; max-height: 94vh; display: flex; flex-direction: column; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.whead { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(232, 192, 96, .3); background: linear-gradient(rgba(232, 192, 96, .14), transparent); border-radius: 8px 8px 0 0; }
.wtitle { flex: 1; font-family: Georgia, "Palatino Linotype", serif; font-size: 21px; color: var(--gold); text-shadow: 0 2px 2px #000; }
.wx { background: #3a1a1a; color: #ffb0a0; border: 1px solid #7a3a2a; border-radius: 6px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.wbody { padding: 14px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.btn { background: linear-gradient(#4a3a5a, #2d2238); color: var(--txt); border: 1px solid #6a5a7a; border-radius: 7px; padding: 10px 16px; cursor: pointer; font-size: 16px; margin: 4px; min-height: 44px; }
.btn:hover { filter: brightness(1.15); }
.btn.gold { background: linear-gradient(#e8c060, #a87a24); color: #2a1a06; border-color: #ffe7a0; font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, .3); }
.btn.small { padding: 6px 10px; min-height: 36px; font-size: 14px; }
.btn.big { font-size: 19px; padding: 14px 26px; display: block; margin: 18px auto 4px; }
.btn:disabled { opacity: .4; cursor: default; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.hintline { font-size: 14px; opacity: .8; margin: 6px 0; }
.qnone { opacity: .8; font-style: italic; padding: 10px 0; }

/* Titel */
.titlewin { background: rgba(14, 10, 24, .82); max-width: 520px; backdrop-filter: blur(4px); }
.logo { text-align: center; margin: 8px 0 14px; font-family: Georgia, "Palatino Linotype", serif; }
.logo .l1 { font-size: 30px; color: #f4dfa0; letter-spacing: 3px; }
.logo .l2 { font-size: 52px; line-height: 1; color: var(--gold); text-shadow: 0 0 18px rgba(255, 190, 60, .55), 0 3px 2px #000; font-weight: bold; }
.logo .l3 { font-size: 14px; opacity: .8; margin-top: 8px; font-family: inherit; }
.tbox { display: flex; flex-direction: column; gap: 6px; }
.srv { text-align: center; font-size: 14px; opacity: .85; }
.loginf { display: flex; flex-direction: column; gap: 8px; }
.tinp { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #6a5a7a; background: #120c1c; color: var(--txt); font-size: 17px; }
.or { text-align: center; opacity: .6; margin: 4px; }
.tsub { margin-top: 8px; font-size: 14px; opacity: .85; }
.saverow { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .05); padding: 4px 8px; border-radius: 8px; }
.saverow b { flex: 1; }
.tfoot { text-align: center; font-size: 13px; opacity: .7; margin-top: 10px; }
.tfoot a { color: var(--gold); }
.createwin { max-width: 470px; position: fixed; left: 12px; top: 12px; bottom: 12px; max-height: none; background: rgba(20, 14, 30, .9); }
.createwin + * { display: none; }
.modal:has(.createwin) { justify-content: flex-start; align-items: stretch; }
.csec { margin: 12px 0 6px; color: var(--gold); font-family: Georgia, serif; }
.clsrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clscard { border: 2px solid #4a3a5a; border-radius: 10px; padding: 8px; cursor: pointer; background: rgba(255, 255, 255, .04); font-size: 14px; }
.clscard .ci { font-size: 26px; } .clscard small { display: block; margin-top: 3px; }
.clscard.sel { border-color: var(--gold); background: rgba(232, 192, 96, .14); }
.swrow { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #333; cursor: pointer; }
.sw.sel { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.hsb { background: #2d2238; color: var(--txt); border: 2px solid #4a3a5a; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 40px; }
.hsb.sel { border-color: var(--gold); background: #4a3a20; }

/* Geschichte */
.story { max-width: 640px; }
.storytext { font-family: Georgia, "Palatino Linotype", serif; font-size: 18px; line-height: 1.55; background: var(--parch); color: var(--ink); padding: 18px 20px; border-radius: 6px; box-shadow: inset 0 0 40px rgba(120, 80, 20, .35); margin-bottom: 10px; }
.storytext.center { text-align: center; } .storytext .big { font-size: 60px; }
.story .btn { display: block; margin: 8px auto; }

/* HUD */
#pframe { position: fixed; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; background: var(--dark); border: 2px solid var(--gold2); border-radius: 40px 12px 12px 40px; padding: 4px 16px 4px 4px; }
.pport { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(#5a4a7a, #231a33); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pname { font-weight: 700; font-size: 17px; } .ptitle { font-size: 12px; color: var(--gold); } .plvl { font-size: 13px; opacity: .85; }
#mini { position: fixed; right: 12px; top: 12px; width: 170px; text-align: center; }
#mini canvas { width: 170px; height: 170px; border-radius: 50%; display: block; }
.mzone { background: var(--dark); border: 1px solid var(--gold2); border-radius: 12px; padding: 3px 8px; margin-top: -6px; position: relative; font-family: Georgia, serif; color: var(--gold); font-size: 14px; }
.mbtn { position: absolute; left: -6px; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); border: 1px solid var(--gold2); font-size: 20px; cursor: pointer; }
#tracker { position: fixed; right: 12px; top: 230px; width: 260px; display: flex; flex-direction: column; gap: 6px; }
.tq { background: rgba(10, 8, 16, .6); border-left: 3px solid #aaa; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; text-shadow: 0 1px 2px #000; }
.tq.main { border-left-color: var(--gold); }
.tqt { font-weight: 700; color: #ffe08a; } .tqo { opacity: .9; } .tqz { font-size: 11px; opacity: .7; font-style: italic; }
#bottom { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
#actionbar, #menubar { display: flex; gap: 4px; background: var(--dark); border: 1px solid var(--gold2); border-radius: 10px; padding: 4px; }
.abtn2, .menub { width: 46px; height: 46px; border-radius: 8px; border: 1px solid #5a4a6a; background: linear-gradient(#3a2d4a, #1d1528); font-size: 22px; cursor: pointer; position: relative; color: #fff; }
.abtn2 i { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-style: normal; opacity: .8; }
.abtn2.locked { filter: grayscale(1); opacity: .35; }
#xpbar { width: 520px; max-width: 90vw; height: 14px; background: #1a1424; border: 1px solid var(--gold2); border-radius: 7px; position: relative; overflow: hidden; }
.xf { height: 100%; background: linear-gradient(90deg, #6a2ab0, #b45aff); width: 0; transition: width .5s; }
.xt { position: absolute; inset: 0; font-size: 10px; text-align: center; line-height: 13px; text-shadow: 0 1px 1px #000; }
#chatwrap { position: fixed; left: 12px; bottom: 12px; width: 330px; }
#chatlog { max-height: 150px; overflow-y: auto; font-size: 13px; text-shadow: 0 1px 2px #000; background: rgba(0, 0, 0, .25); border-radius: 6px; padding: 4px 6px; }
.cl.sys { color: #ffe9a8; } .cl.pl { color: #9aff9a; } .cl.me { color: #9ad8ff; }
.qmbtn { margin-top: 4px; width: 44px; height: 40px; border-radius: 8px; background: var(--dark); border: 1px solid var(--gold2); font-size: 20px; cursor: pointer; }
#netstat { position: fixed; right: 190px; top: 14px; font-size: 12px; }
#netstat.bad { color: #ffb070; }

/* Namensschilder */
.plate { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #000, 0 0 4px #000; will-change: transform; }
.pn { font-weight: 700; font-size: 15px; } .pn.npc { color: #8aff8a; } .pn.pl { color: #8ad0ff; } .pn.boss { color: #ff6a5a; font-size: 18px; } .pn.wirr { color: #e0a0ff; font-size: 12px; }
.pt { font-size: 12px; opacity: .9; }
.qm { font-family: Georgia, serif; font-weight: 900; font-size: 38px; line-height: 1; animation: bob 1.2s ease-in-out infinite; }
.qm.gold { color: #ffd23a; text-shadow: 0 0 8px #ff9a00, 0 2px 2px #000; } .qm.silver { color: #e8e8f0; text-shadow: 0 0 6px #88a, 0 2px 2px #000; } .qm.grey { color: #999; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.bubble { background: #fff; color: #222; border-radius: 10px; padding: 4px 10px; font-size: 14px; margin-bottom: 4px; display: inline-block; text-shadow: none; }

/* Meldungen */
#toasts { display: flex; flex-direction: column; align-items: center; padding-top: 90px; gap: 6px; }
.toast { background: rgba(14, 10, 22, .9); border: 1px solid var(--gold2); border-radius: 8px; padding: 8px 16px; max-width: 520px; text-align: center; font-size: 15px; transition: opacity .6s, transform .6s; animation: pop .2s; }
.toast.gold { border-color: var(--gold); color: #ffe7a0; } .toast.bad { border-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(-10px); }
.floatxp { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); color: #c88aff; font-weight: 800; font-size: 26px; text-shadow: 0 2px 3px #000; animation: up 1.6s ease-out forwards; pointer-events: none; z-index: 40; }
@keyframes up { to { transform: translate(-50%, -80px); opacity: 0; } }
.zbanner { position: fixed; top: 22%; left: 0; right: 0; text-align: center; pointer-events: none; transition: opacity 1s; font-family: Georgia, serif; text-shadow: 0 3px 4px #000; }
.zbanner .zn { font-size: 46px; color: var(--gold); } .zbanner .zs { font-size: 20px; } .zbanner .zf { color: #9aff9a; margin-top: 6px; }
.zbanner.out, .lvlup.out, .achpop.out { opacity: 0; }
.lvlup { position: fixed; top: 30%; left: 0; right: 0; text-align: center; pointer-events: none; transition: opacity 1s; text-shadow: 0 3px 4px #000; font-family: Georgia, serif; }
.lvlup .l1 { font-size: 26px; color: #fff3c0; } .lvlup .l2 { font-size: 64px; color: var(--gold); text-shadow: 0 0 22px #ffb000, 0 3px 3px #000; } .lvlup .l3 { color: #9ad8ff; font-size: 18px; }
.achpop { position: fixed; bottom: 130px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; background: linear-gradient(#2a2038, #15101c); border: 2px solid var(--gold); border-radius: 12px; padding: 10px 18px; transition: opacity 1s; pointer-events: none; z-index: 30; }
.achpop .ai { font-size: 40px; } .achpop .at { color: var(--gold); font-size: 13px; } .achpop .an { font-size: 19px; font-weight: 700; } .achpop .ad { font-size: 13px; opacity: .85; }
.castbar { position: fixed; bottom: 150px; left: 50%; transform: translateX(-50%); width: 260px; height: 24px; background: #1a1424; border: 1px solid var(--gold); border-radius: 6px; overflow: hidden; text-align: center; }
.castbar .cf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #3a6ad0, #7ad0ff); }
.castbar span { position: relative; font-size: 13px; line-height: 22px; }

/* Touch */
#touch .joy { position: fixed; left: 26px; bottom: 210px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); touch-action: none; }
#touch .knob { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(232, 192, 96, .55); border: 2px solid #ffe7a0; pointer-events: none; }
#touch .tbtns { position: fixed; right: 20px; bottom: 140px; display: flex; flex-direction: column; gap: 10px; }
.tb { width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 14, 30, .75); border: 2px solid var(--gold2); color: #fff; font-size: 24px; font-weight: 700; }

/* NPC & Quest */
.npcwin, .qwin { max-width: 560px; }
.npcgreet { font-family: Georgia, serif; font-size: 17px; background: var(--parch); color: var(--ink); padding: 12px 14px; border-radius: 6px; margin-bottom: 10px; }
.qrow { padding: 10px 12px; border-radius: 8px; cursor: pointer; background: rgba(255, 255, 255, .05); margin-bottom: 6px; font-size: 16px; }
.qrow:hover { background: rgba(232, 192, 96, .14); } .qrow.done { opacity: .75; }
.qi { font-family: Georgia, serif; font-weight: 900; font-size: 20px; margin-right: 6px; } .qi.gold { color: #ffd23a; } .qi.silver { color: #ddd; } .qi.grey { color: #999; } .qi.purple { color: #c07aff; }
.donelist summary { cursor: pointer; opacity: .8; margin: 8px 0; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.qtext { font-family: Georgia, serif; font-size: 17px; line-height: 1.5; background: var(--parch); color: var(--ink); padding: 14px 16px; border-radius: 6px; margin-bottom: 10px; }
.qobj, .qrew { margin: 8px 0; } .qobj ul { margin: 4px 0; }
.diffrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.diffcard { border: 2px solid #4a3a5a; border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; background: rgba(255, 255, 255, .04); }
.diffcard:hover { transform: translateY(-2px); } .diffcard.pref { box-shadow: 0 0 0 2px rgba(232, 192, 96, .5); }
.diffcard.d1 { border-color: #5ab04a; } .diffcard.d2 { border-color: #d0b030; } .diffcard.d3 { border-color: #d04a3a; }
.dn { font-family: Georgia, serif; font-size: 22px; text-transform: capitalize; } .dm { color: var(--gold); margin: 4px 0; } .dd { font-size: 13px; opacity: .85; } .dh { margin-top: 4px; } .dl { font-size: 12px; color: #9ad8ff; margin-top: 4px; } .dbest { color: var(--good); font-size: 13px; margin-top: 4px; }
.donewin { max-width: 460px; text-align: center; } .dtitle { font-family: Georgia, serif; font-size: 22px; color: var(--gold); margin-bottom: 8px; } .drew { font-size: 17px; line-height: 1.8; }
.diagtab { display: flex; flex-direction: column; gap: 4px; }
.drow { display: grid; grid-template-columns: 130px 1fr 50px 110px; gap: 6px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-size: 15px; }
.drow.rec { background: rgba(232, 192, 96, .14); } .drow .ds { opacity: .75; font-size: 13px; } .drow .dr { text-align: right; }

/* Aufgaben-Fenster */
.taskwin { max-width: min(880px, 98vw); max-height: 98vh; }
.taskwin.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.thead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tprog { flex: 1; display: flex; gap: 5px; flex-wrap: wrap; font-size: 14px; }
.pip { width: 18px; height: 18px; border-radius: 50%; background: #3a2d4a; border: 1px solid #6a5a7a; } .pip.cur { background: var(--gold); } .pip.ok { background: var(--good); } .pip.no { background: var(--bad); }
.tdiff { font-size: 14px; }
.bossbar { background: rgba(0, 0, 0, .35); border: 1px solid #7a3a2a; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.bossbar.hit { animation: shake .35s; }
.bbn { font-family: Georgia, serif; color: #ff8a6a; } .bbh { height: 14px; background: #2a1414; border-radius: 7px; overflow: hidden; margin: 4px 0; } .bbf { height: 100%; background: linear-gradient(90deg, #c02a2a, #ff6a3a); transition: width .4s; } .hearts { font-size: 18px; }
.tintro { font-style: italic; opacity: .9; margin-bottom: 6px; }
.phase { color: var(--gold); font-family: Georgia, serif; }
.tname { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.calcok, .calcno { font-size: 11px; text-transform: none; letter-spacing: 0; padding: 1px 6px; border-radius: 8px; margin-left: 6px; }
.calcok { background: #1d4a2a; color: #9affb0; } .calcno { background: #4a2a1d; color: #ffc09a; }
.tprompt { font-size: 21px; line-height: 1.55; background: var(--parch); color: var(--ink); border-radius: 8px; padding: 14px 16px; user-select: text; }
.tprompt .sys { margin: 8px 0 0 12px; border-left: 3px solid #a07a2a; padding-left: 10px; line-height: 1.7; }
.tprompt .trisvg { display: block; width: 100%; max-width: 420px; max-height: 250px; margin: 4px auto 10px; }
.tw { margin: 12px 0 6px; }
.tfb { min-height: 8px; border-radius: 8px; padding: 0; }
.tfb.good, .tfb.bad, .tfb.info { padding: 10px 14px; margin: 8px 0; font-size: 17px; }
.tfb.good { background: rgba(60, 180, 80, .2); border: 1px solid var(--good); } .tfb.bad { background: rgba(200, 70, 50, .18); border: 1px solid var(--bad); } .tfb.info { background: rgba(80, 140, 220, .18); border: 1px solid #5a8ad0; }
.sol { margin-top: 8px; background: var(--parch); color: var(--ink); border-radius: 6px; padding: 10px 12px; font-size: 17px; line-height: 1.6; }
.hintbox { margin-top: 8px; background: rgba(232, 192, 96, .14); border: 1px dashed var(--gold2); border-radius: 6px; padding: 8px 10px; font-size: 15px; }
.eqt { border-collapse: collapse; } .eqt td { padding: 1px 6px; } .eqt td:first-child { text-align: right; } .eqt .op { color: #7a5a1a; font-size: .9em; padding-left: 18px; }
.sl { margin: 2px 0; }
.ttools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tool { display: flex; align-items: center; gap: 4px; background: #2d2238; color: var(--txt); border: 1px solid #5a4a6a; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 18px; min-height: 40px; }
.tool span { font-size: 13px; } .tool:disabled { opacity: .35; }
.tact { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tact .btn { min-width: 160px; font-size: 18px; }
.tside .calc, .tside .plotter { margin: 8px 0; }

/* Widgets */
.fields { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.frow { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.flab { font-size: 20px; white-space: nowrap; } .funit { font-size: 18px; opacity: .9; }
.mcbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.mcopt, .errline, .stepbtn { background: #fffaf0; color: #1a1208; border: 2px solid #a07a2a; border-radius: 10px; padding: 12px; font-size: 20px; cursor: pointer; min-height: 52px; text-align: center; }
.mcopt .big { font-size: 30px; font-weight: 700; }
.mcopt.sel, .errline.sel { border-color: #3a6ad0; box-shadow: 0 0 0 3px rgba(60, 110, 220, .35); }
.mcopt.good, .errline.good { border-color: var(--good); background: #eaffef; } .mcopt.bad, .errline.bad { border-color: var(--bad); background: #ffeceb; } .mcopt.gone { opacity: .2; }
.errbox { display: flex; flex-direction: column; gap: 6px; } .errline { text-align: left; }
.tfbox { display: flex; flex-direction: column; gap: 6px; }
.tfrow { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .06); border: 2px solid transparent; border-radius: 8px; padding: 6px 8px; }
.tfrow.good { border-color: var(--good); } .tfrow.bad { border-color: var(--bad); }
.tftext { flex: 1; font-size: 18px; } .tfbtn { background: #2d2238; color: #fff; border: 1px solid #5a4a6a; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-width: 74px; min-height: 42px; }
.tfbtn.sel { background: var(--gold); color: #2a1a06; font-weight: 700; }
.sortbox { display: flex; flex-direction: column; gap: 6px; }
.sorti { display: flex; align-items: center; gap: 8px; background: #fffaf0; color: #1a1208; border: 2px solid #a07a2a; border-radius: 8px; padding: 8px 10px; font-size: 20px; cursor: pointer; }
.sorti .sn { opacity: .5; width: 30px; } .sorti.sel { border-color: #3a6ad0; } .sorti.good { border-color: var(--good); } .sorti.bad { border-color: var(--bad); }
.sarr { margin-left: auto; background: #e8dcc0; border: 1px solid #a07a2a; border-radius: 6px; width: 40px; height: 34px; cursor: pointer; } .sarr + .sarr { margin-left: 0; }
.matchbox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcol { display: flex; flex-direction: column; gap: 8px; }
.mitem { background: #fffaf0; color: #1a1208; border: 3px solid #a07a2a; border-radius: 10px; padding: 8px; font-size: 19px; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.mitem.sel { box-shadow: 0 0 0 3px #3a6ad0; } .mitem.good { background: #eaffef; } .mitem.bad { background: #ffeceb; }
.mitem .tag { position: absolute; right: 6px; top: 2px; font-size: 18px; }
.thumb { width: 100%; max-width: 220px; height: auto; border-radius: 6px; }
.twrap { overflow-x: auto; }
.ttab { border-collapse: collapse; background: #fffaf0; color: #1a1208; border-radius: 8px; margin: auto; }
.ttab th, .ttab td { border: 1px solid #c8b080; padding: 6px 8px; text-align: center; font-size: 18px; }
.ttab th { background: #f0dfb0; }
.cwrap { text-align: center; }
.coordcv { width: min(440px, 88vw); height: auto; border-radius: 8px; border: 2px solid #a07a2a; touch-action: none; cursor: crosshair; background: #fbf6e8; }
.abar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 6px 0; }
.abtn { background: #2d2238; color: #fff; border: 1px solid #5a4a6a; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-width: 52px; font-size: 17px; }
.abtn.sel { background: var(--gold); color: #2a1a06; font-weight: 700; }
.stepeq { font-size: 26px; text-align: center; background: #fffaf0; color: #1a1208; border-radius: 10px; padding: 12px; border: 2px solid #a07a2a; }
.stephist { font-size: 17px; opacity: .85; text-align: center; margin-bottom: 6px; } .stepline .op { color: var(--gold); margin-left: 10px; }
.stepopts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; } .stepbtn { min-width: 140px; } .stepbtn.bad { opacity: .4; border-color: var(--bad); }
.good-msg { color: var(--good); font-size: 19px; }
.nlcv { width: 100%; max-width: 760px; height: auto; border-radius: 8px; border: 2px solid #a07a2a; touch-action: none; cursor: pointer; display: block; margin: auto; }
.piecv { width: 260px; height: 260px; display: block; margin: auto; touch-action: none; cursor: pointer; }
.bpool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 6px; border: 1px dashed #6a5a7a; border-radius: 8px; justify-content: center; }
.brow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.bcat { border: 2px solid #a07a2a; border-radius: 10px; min-height: 110px; cursor: pointer; background: rgba(255, 255, 255, .04); }
.bhead { text-align: center; font-family: Georgia, serif; color: var(--gold); padding: 6px; font-size: 18px; } .bbody { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; justify-content: center; }
.chip { background: #fffaf0; color: #1a1208; border: 2px solid #a07a2a; border-radius: 20px; padding: 6px 12px; font-size: 19px; cursor: pointer; }
.chip.sel { box-shadow: 0 0 0 3px #3a6ad0; } .chip.good { border-color: var(--good); } .chip.bad { border-color: var(--bad); }
.tribox { text-align: center; } .tribox .trisvg { width: min(420px, 90vw); height: auto; background: #fbf6e8; border-radius: 8px; border: 2px solid #a07a2a; }
.trisvg .side { stroke: #3a3226; stroke-width: 4; } .trisvg .side.tap { cursor: pointer; } .trisvg .sidehit { stroke: transparent; stroke-width: 26; cursor: pointer; }
.trisvg .side.sel { stroke: #3a6ad0; stroke-width: 7; } .trisvg .side.good { stroke: #2aa04a; stroke-width: 7; } .trisvg .side.bad { stroke: #d03a2a; stroke-width: 7; }
.trisvg .slab, .trisvg .vlab, .trisvg .alab { font: 18px Georgia, serif; fill: #2a2014; } .trisvg .vlab { text-anchor: middle; } .trisvg .slab { font-size: 17px; fill: #1a3a8a; } .trisvg .alab { fill: #b0401a; font-weight: bold; }
.trisvg .rangle { fill: none; stroke: #3a3226; stroke-width: 1.5; } .trisvg .rdot { fill: #3a3226; } .trisvg .abow { fill: none; stroke: #b0401a; stroke-width: 2.5; }
table.mini { border-collapse: collapse; margin-top: 6px; } table.mini td { border: 1px solid #a07a2a; padding: 3px 9px; }
.calc, .plotter { background: #1a1424; border: 1px solid #5a4a6a; border-radius: 10px; padding: 8px; max-width: 440px; margin: 8px auto; }
.cdisp { width: 100%; padding: 8px; font-size: 18px; border-radius: 6px; border: 1px solid #5a4a6a; background: #fffaf0; color: #1a1208; }
.cout { font-size: 22px; text-align: right; padding: 4px 6px; color: #ffe08a; }
.ckeys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ck { height: 42px; border-radius: 6px; border: 1px solid #5a4a6a; background: #2d2238; color: #fff; font-size: 17px; cursor: pointer; }
.cinv { font-size: 11px; opacity: .7; margin-top: 4px; }
.plotter canvas { width: 100%; max-width: 420px; margin-top: 6px; }

/* Weitere Fenster */
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.zcard { background: rgba(255, 255, 255, .05); border: 1px solid #4a3a5a; border-radius: 10px; padding: 8px; font-size: 13px; position: relative; }
.zcard.here { border-color: var(--gold); } .zc { height: 6px; border-radius: 3px; margin-bottom: 6px; } .zt { font-family: Georgia, serif; font-size: 16px; color: #ffe8a8; } .zsu { opacity: .8; }
.zp { height: 6px; background: #2a2038; border-radius: 3px; margin-top: 6px; overflow: hidden; } .zp div { height: 100%; background: var(--good); } .zst { font-size: 12px; margin-top: 3px; } .znew { color: #9ad8ff; font-size: 12px; }
.zmap { width: 100%; max-width: 340px; display: block; margin: 8px auto; border-radius: 8px; border: 2px solid var(--gold2); } .zmaptitle { text-align: center; margin-top: 12px; }
.logq { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; } .lt { font-weight: 700; } .lx { font-size: 14px; opacity: .85; margin: 3px 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slot { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; } .slot .sn { display: inline-block; width: 90px; opacity: .7; }
.gs { margin-top: 6px; } .tsel { width: 100%; padding: 8px; border-radius: 6px; background: #120c1c; color: var(--txt); border: 1px solid #5a4a6a; }
.stats { font-size: 14px; line-height: 1.7; }
.inv { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: rgba(255, 255, 255, .05); border-radius: 6px; padding: 4px 8px; font-size: 14px; } .item small { flex-basis: 100%; } .item.eq { border-left: 3px solid var(--gold); }
.tbars { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.tbar { display: grid; grid-template-columns: 1fr 90px 42px; gap: 6px; align-items: center; } .tbar .tb { height: 10px; background: #2a2038; border-radius: 5px; overflow: hidden; } .tbar .tb div { height: 100%; }
.ktabs { display: flex; flex-wrap: wrap; gap: 4px; } .ktab { background: #2d2238; color: var(--txt); border: 1px solid #5a4a6a; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 14px; } .ktab.sel { background: var(--gold); color: #2a1a06; }
.kentry { background: var(--parch); color: var(--ink); border-radius: 6px; padding: 10px 12px; margin: 6px 0; font-size: 16px; line-height: 1.5; } .kentry b { color: #6a3a0a; }
.skill { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); } .skill .si { font-size: 28px; width: 40px; text-align: center; } .skill > div:nth-child(2) { flex: 1; font-size: 14px; } .skill.locked { opacity: .45; } .skill .sl { color: var(--gold); white-space: nowrap; }
.achgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { background: rgba(255, 255, 255, .04); border: 1px solid #3a2d4a; border-radius: 10px; padding: 8px; text-align: center; opacity: .45; font-size: 14px; } .ach.got { opacity: 1; border-color: var(--gold); } .ach .ai { font-size: 30px; } .ach small { display: block; }
.coll { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(255, 255, 255, .05); border-radius: 8px; margin-bottom: 4px; } .coll b { flex: 1; } .coll small { flex: 2; } .coll.locked { opacity: .5; }
.setrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 16px; } .setrow input { width: 22px; height: 22px; } .setrow select { margin-left: auto; padding: 6px; background: #120c1c; color: var(--txt); border: 1px solid #5a4a6a; border-radius: 6px; }
.help { font-size: 14px; line-height: 1.6; background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 10px; margin-top: 8px; }
.lbt { width: 100%; border-collapse: collapse; } .lbt td { padding: 5px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); } .lbt tr.me { background: rgba(232, 192, 96, .15); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.trtopic summary { cursor: pointer; padding: 8px; font-size: 16px; color: var(--gold); } .trtopic .btn { margin: 3px; }

@media (max-width: 900px) { #tracker { width: 200px; top: 220px; } #chatwrap { width: 240px; } #xpbar { width: 360px; } .cols { grid-template-columns: 1fr; } .tprompt { font-size: 19px; } }
@media (max-width: 700px) { #tracker { display: none; } .diffrow { grid-template-columns: 1fr; } .drow { grid-template-columns: 1fr 50px 90px; } .drow .ds { display: none; } }
@media (max-height: 640px) { #chatlog { max-height: 70px; } #mini canvas { width: 120px; height: 120px; } #mini { width: 120px; } #tracker { top: 170px; } }
.taskwin .wbody { padding-bottom: 0; }
.tact { position: sticky; bottom: 0; background: linear-gradient(transparent, #17111f 30%); padding: 14px 0 12px; margin-top: 4px; z-index: 2; }
.coordcv { width: min(400px, 86vw, 52vh); }
@media (min-width: 1000px) and (min-height: 700px) { .taskwin { max-width: 980px; } }

.modal:has(.taskwin.boss), .modal:has(.taskwin.final), .modal:has(.taskwin.dungeon) { justify-content: flex-end; background: linear-gradient(90deg, transparent 30%, rgba(5, 3, 10, .55)); }
.taskwin.boss, .taskwin.final, .taskwin.dungeon { max-width: min(640px, 96vw); }
@media (max-width: 900px) { .modal:has(.taskwin.boss), .modal:has(.taskwin.final) { justify-content: center; } }
.fsbtn { width: 40px; height: 40px; border-radius: 8px; background: var(--dark); border: 1px solid var(--gold2); color: #f4e2b0; font-size: 22px; cursor: pointer; line-height: 1; }
.hudfs { position: absolute; right: -6px; top: 4px; border-radius: 50%; }
.titlefs { position: absolute; right: 10px; top: 10px; }
.titlewin { position: relative; }

/* Fehler-Truhe */
.menub .badge { position: absolute; top: -7px; right: -7px; min-width: 18px; background: #d03a2a; color: #fff; border-radius: 10px; font-size: 11px; line-height: 16px; padding: 1px 4px; display: none; font-weight: 700; border: 1px solid #fff4; }
.tq.truhe { border-left-color: #e0a040; background: rgba(60, 36, 8, .7); }
.trtab { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; } .trtab th, .trtab td { padding: 5px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; } .trtab th { color: var(--gold); font-weight: 600; }
/* Garderobe */
.modal:has(.wardwin) { justify-content: flex-end; padding-right: 2vw; background: transparent; }
.wardwin { width: min(460px, 46vw); max-height: 92vh; }
.wrow { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; }
.wsw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #5a4a6a; cursor: pointer; padding: 0; }
.wsw.sel { border-color: #ffe08a; box-shadow: 0 0 0 2px #ffe08a; }
.wsw.locked { opacity: .35; filter: grayscale(.6); position: relative; } .wsw.locked::after { content: '🔒'; font-size: 11px; position: absolute; right: -4px; bottom: -4px; }
.wchip { border: 1px solid #5a4a6a; background: #2a2136; color: #eee; border-radius: 14px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.wchip.sel { border-color: #ffe08a; background: #4a3a20; color: #ffe08a; } .wchip.locked { opacity: .5; }
.pn.pet { color: #ffd8f0; font-size: 12px; }
.namewin .tinp { width: 100%; }
@media (max-width: 1100px) { .abtn2, .menub { width: 40px; height: 40px; font-size: 19px; } }

/* ---------- Mathe-Eingabe mit natürlicher Darstellung ---------- */
.mfield { display: inline-flex; align-items: center; min-width: 250px; max-width: 72vw; min-height: 52px; padding: 5px 14px; box-sizing: border-box; background: linear-gradient(#e8eee4, #d6dfd3); border: 2px solid #4b5a50; border-radius: 9px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2); color: #101410; font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", "DejaVu Serif", serif; font-size: 27px; line-height: 1.15; cursor: text; outline: none; overflow-x: auto; overflow-y: hidden; white-space: nowrap; vertical-align: middle; user-select: none; -webkit-user-select: none; touch-action: manipulation; scrollbar-width: thin; }
.mfield.short { min-width: 120px; } .mfield.cell { min-width: 84px; font-size: 21px; min-height: 42px; padding: 2px 7px; }
.mfield.focus { border-color: #c8962a; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2), 0 0 0 3px rgba(255, 200, 80, .55); }
.mfield.good { border-color: var(--good); background: linear-gradient(#e6f8e6, #d2efd4); } .mfield.bad { border-color: var(--bad); background: linear-gradient(#fbe8e6, #f3d6d2); }
.mfield.disabled { cursor: default; }
.mplace { color: #66746a; font-size: 15px; font-family: system-ui, "Segoe UI", sans-serif; white-space: nowrap; } .mplace .mstatic { font-size: 21px; color: #4f5d53; vertical-align: middle; }
.mrow { display: inline-flex; align-items: center; }
.mc { padding: 0 .02em; } .mvar { font-style: italic; padding: 0 .04em; } .mop { padding: 0 .16em; } .mfn { padding-right: .06em; }
.mfracw, .mmixed { display: inline-flex; align-items: center; margin: 0 .07em; }
.mfrac { display: inline-flex; flex-direction: column; align-items: stretch; font-size: .88em; margin: 0 .05em; }
.mfrac > .mrow { display: flex; justify-content: center; padding: 0 .16em; }
.mfrac > .mnum { padding-bottom: .07em; } .mfrac > .mden { border-top: .075em solid currentColor; padding-top: .07em; }
.mwhole { margin-right: .1em; }
.msqrt { display: inline-flex; align-items: stretch; margin: 0 .04em; }
.msign { width: .5em; display: flex; flex: none; } .msign svg { width: 100%; height: 100%; overflow: visible; }
.mrad { border-top: .075em solid currentColor; padding: .12em .1em 0 .04em; margin-left: -.03em; }
.mindex { font-size: .5em; align-self: flex-start; margin-right: -.45em; margin-top: .05em; }
.msup { font-size: .64em; margin-bottom: 1.05em; margin-left: .03em; }
.mph { display: inline-block; width: .56em; height: .82em; border: .06em dashed #5a6a5e; border-radius: 2px; margin: 0 .04em; background: rgba(255, 255, 255, .35); box-sizing: border-box; }
.mfield.focus .mph.cur { border-style: solid; border-color: #101410; background: rgba(255, 220, 120, .35); }
.mcur { display: inline-block; width: 2px; height: 1.05em; background: #101410; margin: 0 -1px; animation: mblink 1.05s steps(1) infinite; flex: none; }
.mfield:not(.focus) .mcur { display: none; }
@keyframes mblink { 50% { opacity: 0; } }
.mstatic { display: inline-flex; align-items: center; font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", serif; }
.frow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
/* Tastatur */
.mkb.ckb { display: flex; flex-direction: column; gap: 5px; margin: 8px auto; max-width: 470px; padding: 8px; background: linear-gradient(#2c2534, #1c1622); border: 1px solid #4a3c5a; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.ckb .mkr { display: flex; gap: 5px; }
.ckb .mk { flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 1px solid #5a4a6a; background: linear-gradient(#433756, #2b2338); color: #f4ecdc; font-size: 18px; cursor: pointer; box-shadow: 0 2px 0 #100c15; display: flex; align-items: center; justify-content: center; padding: 0; touch-action: manipulation; }
.ckb .mk:active { transform: translateY(2px); box-shadow: none; }
.ckb .mk.num { background: linear-gradient(#f6f3ec, #d8d2c5); color: #18140f; font-size: 21px; font-weight: 600; border-color: #a49d90; box-shadow: 0 2px 0 #6a6458; }
.ckb .mk.del { background: linear-gradient(#3d68c0, #284c94); color: #fff; font-weight: 700; font-size: 16px; border-color: #5a80d0; }
.ckb .mk.tpl { background: linear-gradient(#54456b, #362c46); }
.ckb .mk.var { font-family: "Times New Roman", serif; font-style: italic; font-size: 21px; }
.ckb .mk.fn { font-size: 15px; } .ckb .mk.eq { background: linear-gradient(#c8962a, #8a6418); color: #fff; font-weight: 700; font-size: 22px; }
.ckb .mkabc { display: none; flex-wrap: wrap; gap: 4px; } .ckb.abc .mkabc { display: flex; } .ckb .mkabc .mk { flex: 0 0 calc(12.5% - 4px); }
.ki { display: inline-flex; align-items: center; gap: 2px; font-family: "Times New Roman", serif; font-size: 19px; line-height: 1; }
.ki em { font-style: italic; } .ki sup { font-size: 11px; align-self: flex-start; margin-top: -2px; }
.kfrac { display: inline-flex; flex-direction: column; align-items: center; } .kfrac i { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; display: block; } .kfrac b { width: 15px; height: 2px; background: currentColor; margin: 2px 0; display: block; }
.kmixed i.big { width: 10px; height: 15px; border: 1.5px solid currentColor; border-radius: 2px; display: inline-block; margin-right: 3px; }
.ki i.sq { display: inline-block; width: 10px; height: 12px; border: 1.5px solid currentColor; border-top-width: 2px; border-radius: 1px; margin-left: 1px; } .ki i.sq.sm { width: 7px; height: 8px; }
.ki .kidx { width: 5px; height: 6px; border: 1px solid currentColor; display: inline-block; margin-right: -2px; }
/* Taschenrechner */
.calc .clcd { background: linear-gradient(#e8eee4, #d3dccf); border: 2px solid #4b5a50; border-radius: 9px; padding: 6px 8px; margin-bottom: 6px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .2); }
.calc .cfield { display: flex; width: 100%; max-width: none; background: transparent; border: none; box-shadow: none; padding: 2px 4px; min-height: 46px; font-size: 24px; }
.calc .cfield.focus { box-shadow: none; }
.calc .cout { min-height: 40px; display: flex; justify-content: flex-end; align-items: center; color: #101410; font-family: "Cambria Math", "Times New Roman", serif; font-size: 26px; padding: 0 6px; }
.calc .ckb { margin: 0; max-width: none; }

.wtabs { display: flex; gap: 6px; margin: 0 0 8px; } .wtab { flex: 1; border: 1px solid #5a4a6a; background: #2a2136; color: #eee; border-radius: 10px; padding: 7px 10px; font-size: 14px; cursor: pointer; } .wtab.sel { border-color: #ffe08a; background: #4a3a20; color: #ffe08a; }
.ckb.compact { max-width: 620px; padding: 6px; } .ckb.compact .mk { height: 38px; font-size: 16px; } .ckb.compact .mk.del { font-size: 14px; }

/* ---------- Questhelfer: Pfeil, Markierung, Questliste, Karte ---------- */
#qarrow { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: rgba(14, 10, 22, .74); border: 1px solid var(--gold2); border-radius: 34px; padding: 2px 16px 2px 3px; cursor: pointer; max-width: min(380px, 44vw); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
#qarrow svg { flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
#qarrow .qa-ok { display: none; } #qarrow.here .qa-ok { display: inline; } #qarrow.here .qa-r { display: none; }
#qarrow .qa-txt { min-width: 0; line-height: 1.25; }
#qarrow .qa-t { font-family: Georgia, serif; color: var(--gold); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qarrow .qa-d { font-size: 13px; color: #f4ead2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#qarrow.here { border-color: #8aff9a; } #qarrow.here .qa-d { color: #b8ffc0; font-weight: 700; }
.qbeacon .qbi { font-size: 24px; color: #ffd23a; text-shadow: 0 0 8px #ff9a00, 0 2px 2px #000; line-height: 1; animation: bob 1.2s ease-in-out infinite; }
.qbeacon .qbd { font-size: 13px; font-weight: 700; color: #fff3c0; }
.mzoom { position: absolute; right: -8px; bottom: 30px; display: flex; flex-direction: column; gap: 4px; }
.mzb { width: 28px; height: 28px; border-radius: 50%; background: var(--dark); border: 1px solid var(--gold2); color: var(--gold); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
#tracker { max-height: calc(100vh - 400px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding-right: 2px; gap: 5px; }
.trh { display: flex; justify-content: space-between; align-items: center; font-family: Georgia, serif; color: var(--gold); font-size: 15px; font-weight: 700; text-shadow: 0 1px 2px #000; cursor: pointer; padding: 0 2px; }
.trh small { font-weight: 400; opacity: .8; }
.trc { width: 26px; height: 24px; border-radius: 6px; background: var(--dark); border: 1px solid var(--gold2); color: var(--gold); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.trz { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #e8d090; border-bottom: 1px solid rgba(200, 160, 80, .45); margin: 4px 2px 0; text-shadow: 0 1px 2px #000; }
.trz.away { color: #b8b0c8; border-color: rgba(180, 170, 200, .3); }
.tq { line-height: 1.3; }
.tq .tqo { font-size: 12.5px; padding-left: 2px; }
.tq.bonus { border-left-color: #40e0c0; }
.tq.tracked { background: rgba(40, 28, 8, .78); border-left-color: #ffe070; box-shadow: 0 0 0 1px rgba(255, 224, 112, .5), 0 0 12px rgba(255, 200, 60, .25); }
.tq.tracked .tqt::before { content: '◎ '; color: #ffe070; }
.tq.mini.tracked .tqt::before { content: ''; }
.tqn { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 50%; background: #ffd23a; color: #2a1800; font-size: 11px; font-weight: 800; margin-right: 5px; text-shadow: none; }
.tqx { color: #ffd23a; font-family: Georgia, serif; font-weight: 900; margin-right: 5px; text-shadow: 0 0 6px #ff9a00; }
.tqd { color: #ffe08a; font-weight: 700; font-size: 12.5px; margin-top: 2px; }
.tqb { display: flex; gap: 4px; margin-top: 4px; } .tqb .btn { margin: 0; min-height: 30px; padding: 3px 9px; font-size: 13px; }
.tq.newq { border-left: 3px dashed #ffd23a; background: rgba(40, 30, 8, .55); }
.tq.avail { border-left-color: #ffd23a; }
.trmore { font-size: 12px; opacity: .8; text-align: right; cursor: pointer; text-shadow: 0 1px 2px #000; padding: 0 4px; }
.win.mapwin2 { max-width: min(1120px, 98vw); }
.mtab { min-height: 0; }
.zmwrap { display: flex; gap: 12px; align-items: flex-start; }
.zmcv { position: relative; flex: none; border: 2px solid var(--gold2); border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 3px rgba(0, 0, 0, .4), inset 0 0 20px rgba(0, 0, 0, .5); background: #2a2418; }
.zmcv canvas { display: block; cursor: crosshair; touch-action: manipulation; }
.zmtip { position: absolute; display: none; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: rgba(14, 10, 22, .92); border: 1px solid var(--gold2); border-radius: 6px; padding: 3px 8px; font-size: 13px; white-space: nowrap; color: #ffe8a8; }
.zmtip small { display: block; color: #ddd; font-size: 11px; }
.zmside { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 8px; max-height: 76vh; overflow-y: auto; }
.zmh { font-family: Georgia, serif; font-size: 20px; color: #ffe8a8; } .zmh small { display: block; font-size: 13px; color: #ccc; font-family: inherit; }
.zmtrk { background: rgba(60, 42, 10, .55); border: 1px solid #c8a050; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; } .zmtrk.none { background: rgba(255, 255, 255, .05); border-color: #4a3a5a; }
.zmtrk .zl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #e8d090; } .zmtrk .zt2 { font-weight: 700; color: #ffe08a; font-size: 15px; margin: 2px 0; } .zmtrk .zo { opacity: .92; } .zmtrk .zd { color: #ffe08a; font-weight: 700; margin-top: 3px; }
.zmtrk .btnrow { margin-top: 6px; justify-content: flex-start; flex-wrap: wrap; } .zmtrk .btn { margin: 2px 4px 0 0; }
.zmi { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #c8b890; margin: 4px 0 2px; }
.zmq { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; background: rgba(255, 255, 255, .04); margin-bottom: 3px; border-left: 3px solid #999; } .zmq.main { border-left-color: var(--gold); } .zmq:hover { background: rgba(255, 255, 255, .1); }
.zmq.on { background: rgba(255, 210, 60, .16); outline: 1px solid rgba(255, 224, 112, .55); } .zmq small { opacity: .75; } .zmq.away { font-size: 13px; opacity: .9; }
.zmq .num { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: #ffd23a; color: #2a1800; font-size: 11px; font-weight: 800; margin-right: 6px; }
.zmq .ex { color: #ffd23a; font-family: Georgia, serif; font-weight: 900; margin-right: 6px; }
.zmleg { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; opacity: .9; } .zmleg .li { display: inline-flex; align-items: center; gap: 3px; }
.zcard.trk { box-shadow: 0 0 0 1px rgba(255, 224, 112, .6); } .zq { font-size: 12px; margin-top: 3px; color: #ffe08a; } .zq b { color: #ffd23a; } .zhere { font-size: 12px; color: #9aff9a; } .ztrk { font-size: 12px; color: #ffe070; }
.logq.tracked { outline: 1px solid rgba(255, 224, 112, .6); background: rgba(255, 210, 60, .08); } .ltr { color: #ffe070; font-size: 12px; font-weight: 400; } .lo { font-size: 13px; color: #ffe8b0; margin: 4px 0; } .lbtns { display: flex; gap: 4px; flex-wrap: wrap; } .lbtns .btn { margin: 0; }
@media (max-width: 900px) { #qarrow { max-width: 40vw; } }
@media (max-width: 760px) { #qarrow { top: 76px; max-width: 70vw; } .zmwrap { flex-direction: column; align-items: center; } .zmside { width: 100%; max-height: none; } }
@media (max-height: 640px) { #tracker { max-height: calc(100vh - 330px); } .mzoom { bottom: 22px; } }
#mini .mbtn { width: 34px; height: 34px; left: -14px; top: -4px; font-size: 17px; }
#mini .hudfs { right: -14px; top: -4px; width: 34px; height: 34px; min-height: 0; font-size: 16px; padding: 0; }
#touch .tbtns { bottom: 16px; }
#tracker.touch { max-height: max(130px, calc(100vh - 480px)); }
@media (max-width: 640px) { #touch .tbtns { bottom: 140px; } }
