@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #fff8ec;
  --ink-dim: rgba(255, 248, 236, .74);
  --ink-faint: rgba(255, 248, 236, .5);
  --panel: rgba(17, 25, 39, .8);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 236, 200, .15);
  --orange: #ff8a3d;
  --teal: #22c7a0;
  --sky: #7ee0ff;
  --red: #ff6b5a;
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --st: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1522; color: var(--ink); font-family: 'Fredoka', system-ui, sans-serif; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; overscroll-behavior: none; }
canvas#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 95% at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(8, 14, 26, .38) 100%); }
button { font-family: inherit; color: inherit; }
input { font-family: inherit; -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; display: none; pointer-events: none; }
.screen.show { display: block; }
.screen.show > * { pointer-events: auto; }
.overlay { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(6, 10, 18, .55); }
.overlay.show { display: flex; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(12px) saturate(1.25); -webkit-backdrop-filter: blur(12px) saturate(1.25); }

.logo { font-family: 'Cinzel', serif; font-weight: 900; font-size: 40px; letter-spacing: .02em; line-height: 1; color: #fff3d6; text-shadow: 0 2px 0 #b2552a, 0 4px 0 #7a3418, 0 12px 28px rgba(0, 0, 0, .5); }
.logo.big { font-size: clamp(34px, 6.2vw, 58px); }
.logo-small { display: block; font-size: .34em; letter-spacing: .48em; margin-bottom: .3em; color: #ffd9a0; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

.btn { position: relative; border: 0; border-radius: 16px; padding: 12px 20px 13px; font-size: 17px; font-weight: 650; color: #fff; cursor: pointer; transition: transform .08s ease, filter .15s ease, opacity .2s; letter-spacing: .01em; touch-action: manipulation; }
.btn:active { transform: translateY(3px); }
.btn:disabled { filter: grayscale(.8) brightness(.7); opacity: .6; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, #ffa24f 0%, #ff6e3a 100%); box-shadow: 0 5px 0 #b8431c, 0 10px 22px rgba(255, 110, 58, .32), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 0 rgba(140, 50, 10, .6); }
.btn-primary:active { box-shadow: 0 2px 0 #b8431c, inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-secondary { background: linear-gradient(180deg, #3fe0b8 0%, #17a886 100%); box-shadow: 0 5px 0 #0c6e57, 0 10px 22px rgba(34, 199, 160, .28), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 0 rgba(6, 80, 60, .6); }
.btn-secondary:active { box-shadow: 0 2px 0 #0c6e57, inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn.small { font-size: 14px; padding: 8px 14px; border-radius: 12px; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }
.err { min-height: 18px; color: #ffab9f; font-size: 14px; margin-top: 8px; }
.back-btn { position: absolute; top: 12px; left: 12px; border: 0; border-radius: 11px; padding: 6px 11px 6px 25px; font: 600 12.5px Fredoka, sans-serif; color: #fff; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") 7px center/14px no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); z-index: 2; cursor: pointer; }
.chip { border: 0; border-radius: 999px; padding: 7px 14px 7px 8px; display: inline-flex; align-items: center; gap: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.chip .dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

/* Querformat */
#rotate { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: #0d1522; text-align: center; }
@media (orientation: portrait) and (max-width: 700px) { #rotate { display: flex; } }
.rot-card b { display: block; font-family: Cinzel, serif; font-size: 22px; margin: 18px 0 6px; }
.rot-card span { color: var(--ink-dim); font-size: 15px; }
.rot-phone { width: 46px; height: 80px; margin: 0 auto; border: 4px solid #ffd9a0; border-radius: 10px; animation: rot 2.2s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }

/* Boot / Laden */
#boot { background: radial-gradient(ellipse at 50% 40%, #27406a 0%, #121c2d 60%, #0b111c 100%); }
#boot.show, #loading.show { display: grid; place-items: center; }
#loading { background: radial-gradient(ellipse at 50% 60%, rgba(18, 28, 45, .55), rgba(8, 12, 20, .92)); }
.boot-inner, .loading-inner { text-align: center; }
.bar { width: min(340px, 60vw); height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); margin: 24px auto 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; border-radius: 10px; background: linear-gradient(90deg, #ffb35a, #ff6e3a); transition: width .25s; }
.boot-text { color: var(--ink-dim); font-size: 15px; max-width: 440px; margin: 0 auto; line-height: 1.35; }
.loading-place { font-family: Cinzel, serif; font-weight: 900; font-size: 36px; color: #fff3d6; text-shadow: 0 3px 0 #7a3418, 0 10px 30px rgba(0, 0, 0, .5); }

/* Titel */
#title.show { display: flex; align-items: center; padding-left: calc(5vw + var(--sl)); }
.title-left { width: min(380px, 46vw); }
.tagline { margin: 10px 0 16px 2px; color: #ffe8c4; font-size: 15px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.menu { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.menu .btn { width: 100%; }
.menu .hint { font-size: 13px; color: var(--ink-dim); text-align: center; margin-top: 2px; }
.profile-chip { position: absolute; top: calc(12px + var(--st)); right: calc(14px + var(--sr)); }

/* Konto */
#acct.show { display: flex; align-items: center; padding: 0 calc(4vw + var(--sr)) 0 calc(4vw + var(--sl)); gap: 3vw; }
.acct-card { position: relative; width: min(400px, 50vw); padding: 46px 22px 16px; max-height: calc(100vh - 24px); overflow: auto; }
.acct-title { font-family: Cinzel, serif; font-weight: 900; font-size: 22px; color: #fff3d6; }
.acct-sub { color: var(--ink-dim); font-size: 14px; margin: 4px 0 12px; line-height: 1.35; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-dim); margin-bottom: 5px; }
.field input, .code-input { width: 100%; font-size: 18px; padding: 10px 14px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .28); color: #fff; outline: none; }
.field input:focus, .code-input:focus { border-color: #ffb35a; box-shadow: 0 0 0 3px rgba(255, 179, 90, .2); }
.code-input { text-transform: uppercase; letter-spacing: .32em; text-align: center; font-weight: 650; font-size: 24px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 2px 0 12px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); transition: background .12s, transform .12s; }
.pin-dots i.on { background: #ffb35a; box-shadow: 0 0 12px rgba(255, 179, 90, .6); transform: scale(1.1); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { border: 0; border-radius: 14px; height: 46px; font-size: 21px; font-weight: 650; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 3px 0 rgba(0, 0, 0, .25); cursor: pointer; }
.keypad button:active { transform: translateY(2px); background: rgba(255, 179, 90, .25); }
.keypad .k-wide { font-size: 14px; }
.class-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.class-grid button { border: 0; border-radius: 12px; aspect-ratio: 1; padding: 0; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; display: grid; place-items: center; font-family: Cinzel, serif; font-weight: 900; font-size: 15px; }
.class-grid button i { width: 84%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1b1410; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 0 2px rgba(255, 255, 255, .25); font-style: normal; }
.class-grid button.sel { box-shadow: inset 0 0 0 2px #ffb35a, 0 0 16px rgba(255, 179, 90, .35); background: rgba(255, 179, 90, .14); }
.class-side { flex: 1; align-self: flex-end; margin-bottom: 8vh; text-align: right; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.class-name { font-family: Cinzel, serif; font-weight: 900; font-size: 34px; color: #fff3d6; }
.class-role { color: #ffd9a0; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin: 4px 0 8px; }
.class-lore { color: var(--ink); font-size: 15px; max-width: 320px; margin-left: auto; line-height: 1.35; }
.tagline-tag { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 179, 90, .15); color: #ffd9a0; font-weight: 650; letter-spacing: .04em; }

/* Abenteuer-Liste */
#advs.show, #lobby.show { display: flex; align-items: center; justify-content: center; padding: 12px calc(14px + var(--sr)) calc(10px + var(--sb)) calc(14px + var(--sl)); }
.advs-card { position: relative; width: min(560px, 92vw); padding: 46px 20px 16px; }
.adv-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; max-height: 168px; overflow-y: auto; }
.adv-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); cursor: pointer; border: 0; text-align: left; width: 100%; }
.adv-item:active { transform: translateY(2px); }
.adv-code { font-family: Cinzel, serif; font-weight: 900; font-size: 20px; letter-spacing: .12em; color: #ffd9a0; min-width: 76px; }
.adv-who { flex: 1; font-size: 14px; color: var(--ink-dim); }
.adv-who b { color: var(--ink); font-weight: 600; }
.adv-go { font-size: 13px; font-weight: 650; color: #fff; background: linear-gradient(180deg, #3fe0b8, #17a886); padding: 6px 12px; border-radius: 10px; }
.adv-empty { color: var(--ink-dim); font-size: 14px; padding: 8px 2px; }

/* Lobby */
.lobby-card { position: relative; width: min(760px, 96vw); padding: 18px 20px 16px; }
.lobby-cols { display: flex; gap: 20px; align-items: stretch; }
.lobby-code { flex: 0 0 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 30px; }
.lobby-code .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-dim); }
.code-big { font-family: Cinzel, serif; font-weight: 900; font-size: 38px; letter-spacing: .14em; color: #ffd9a0; text-shadow: 0 3px 0 #7a3418; }
.qr { width: 118px; height: 118px; border-radius: 14px; background: #fff; padding: 7px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.lobby-main { flex: 1; display: flex; flex-direction: column; padding-top: 4px; }
.party { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.party .p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 13px; background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 14px; min-height: 48px; }
.party .p .dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: Cinzel, serif; font-weight: 900; font-size: 13px; color: #1b1410; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.party .p small { display: block; color: var(--ink-faint); font-size: 12px; }
.party .p.empty { color: var(--ink-faint); justify-content: center; box-shadow: inset 0 0 0 1px dashed rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .025); }
.party .crown { color: #ffd166; font-size: 12px; margin-left: auto; }
.wait-note { text-align: center; color: var(--ink-dim); font-size: 14px; margin-top: 6px; }

/* HUD */
#hud.show { display: block; }
#hud > * { pointer-events: none; }
.hud-tl { position: absolute; top: calc(10px + var(--st)); left: calc(12px + var(--sl)); }
.me-frame { display: flex; align-items: center; gap: 9px; }
.portrait { width: 54px; height: 54px; border-radius: 50%; background: #233 center/cover; box-shadow: 0 0 0 3px var(--c, #fff), 0 4px 14px rgba(0, 0, 0, .45); }
.me-info b { display: block; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.me-info span { font-size: 12px; color: #ffe2b8; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.party-frames { margin-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.pf { display: flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(12, 18, 30, .55); font-size: 12.5px; width: max-content; max-width: 180px; }
.pf .dot { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.pf.away { opacity: .55; }
.pf em { font-style: normal; color: var(--ink-faint); font-size: 11px; }
.hud-tr { position: absolute; top: calc(10px + var(--st)); right: calc(12px + var(--sr)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.minimap { position: relative; width: 130px; height: 130px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 236, 200, .55), 0 0 0 6px rgba(20, 28, 44, .55), 0 6px 18px rgba(0, 0, 0, .4); pointer-events: auto !important; background: #20304a; }
.minimap canvas { width: 100%; height: 100%; display: block; }
.mm-n { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font: 800 11px Cinzel, serif; color: #fff3d6; text-shadow: 0 1px 3px #000; }
.goal { max-width: 236px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 5px 11px; border-radius: 12px; background: rgba(12, 18, 30, .62); font-size: 12.5px; line-height: 1.25; text-align: right; }
.goal b { color: #ffd9a0; font-weight: 650; }
.goal:empty { display: none; }
.hud-tc { position: absolute; top: calc(18px + var(--st)); left: 50%; transform: translateX(-50%); text-align: center; }
.area-banner { font-family: Cinzel, serif; font-weight: 900; font-size: 26px; color: #fff3d6; text-shadow: 0 2px 0 #7a3418, 0 8px 24px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(-6px); transition: opacity .6s, transform .6s; white-space: nowrap; }
.area-banner small { display: block; font: 600 12px Fredoka, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #ffd9a0; margin-bottom: 2px; }
.area-banner.on { opacity: 1; transform: none; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(12, 18, 30, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff3d6; display: grid; place-items: center; pointer-events: auto !important; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: scale(.94); }
.menu-btn { position: absolute; top: calc(12px + var(--st)); right: calc(156px + var(--sr)); display: flex; flex-direction: column; gap: 4px; align-content: center; justify-content: center; }
.menu-btn i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: #fff3d6; margin: 0 auto; }
.hud-br { position: absolute; right: calc(18px + var(--sr)); bottom: calc(16px + var(--sb)); display: flex; align-items: flex-end; gap: 12px; }
.small-btns { display: flex; flex-direction: column; gap: 10px; }
.ctx-btn { pointer-events: auto !important; width: 86px; height: 86px; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 50% 35%, #ffb35a, #ff6e3a 70%); box-shadow: 0 5px 0 #b8431c, 0 10px 26px rgba(255, 110, 58, .45), inset 0 2px 0 rgba(255, 255, 255, .45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; animation: ctxIn .25s ease-out; }
.ctx-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b8431c; }
.ctx-ico svg { width: 30px; height: 30px; display: block; }
.ctx-lbl { font-size: 12px; font-weight: 700; max-width: 80px; line-height: 1.05; text-shadow: 0 1px 0 rgba(120, 40, 10, .6); }
@keyframes ctxIn { from { transform: scale(.6); opacity: 0; } }
.joy-layer { position: absolute; left: 0; top: 30%; bottom: 0; width: 45%; pointer-events: auto !important; }
.joy-zone { position: absolute; inset: 0; touch-action: none; }
.joy { position: absolute; width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); opacity: 0; transition: opacity .15s; left: 90px; top: 60%; }
.joy.on { opacity: 1; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd9a0); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.joy-hint { position: absolute; left: calc(26px + var(--sl)); bottom: calc(22px + var(--sb)); font-size: 13px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); transition: opacity .5s; }
.joy-zone.used .joy-hint { opacity: 0; }
.ping-wheel { position: absolute; width: 230px; height: 230px; margin: -115px 0 0 -115px; pointer-events: auto !important; z-index: 5; }
.ping-wheel button { position: absolute; width: 84px; height: 46px; margin: -23px 0 0 -42px; border: 0; border-radius: 14px; background: rgba(12, 18, 30, .82); box-shadow: inset 0 0 0 2px var(--c); font-size: 13.5px; font-weight: 650; color: #fff; cursor: pointer; }
.ping-wheel button:active { background: var(--c); color: #111; }

/* Namen, Sprechblasen, Pings */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.nametag { position: absolute; transform: translate(-50%, -100%); font-size: 12.5px; font-weight: 650; padding: 1px 8px; border-radius: 8px; background: rgba(10, 16, 28, .55); white-space: nowrap; text-shadow: 0 1px 3px #000; }
.nametag i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.nametag.npc { background: rgba(60, 30, 10, .5); color: #ffe2b8; }
.nametag.npc small { display: block; font-size: 10px; font-weight: 500; color: rgba(255, 226, 184, .8); text-align: center; margin-top: -1px; }
.bubble { position: absolute; transform: translate(-50%, -100%); max-width: 250px; padding: 9px 13px; border-radius: 16px; background: #fff8ec; color: #2a1e14; font-size: 14px; line-height: 1.3; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: pop .22s ease-out; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff8ec; }
.bubble b { display: block; font-family: Cinzel, serif; font-size: 12px; color: #9a4a1e; margin-bottom: 2px; }
.pingmark { position: absolute; transform: translate(-50%, -100%); text-align: center; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #000; animation: pop .25s ease-out; }
.pingmark i { display: block; width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: 0 0 18px var(--c); animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-45deg) translate(3px, -3px); } }
@keyframes pop { from { transform: translate(-50%, -100%) scale(.7); opacity: 0; } }

/* Menü */
.menu-card { width: min(560px, 92vw); padding: 18px 20px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.menu-grid .sect { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-dim); margin-top: 4px; }
.seg { grid-column: 1 / -1; display: flex; gap: 6px; }
.seg button { flex: 1; border: 0; border-radius: 12px; padding: 9px 4px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button.sel { background: rgba(255, 179, 90, .22); box-shadow: inset 0 0 0 2px #ffb35a; }
.pair-code { grid-column: 1 / -1; text-align: center; font-family: Cinzel, serif; font-weight: 900; font-size: 30px; letter-spacing: .2em; color: #ffd9a0; }

/* Weltkarte */
.wm-card { position: relative; padding: 10px; }
.wm-card canvas { display: block; width: min(86vw, 150vh); height: auto; max-height: 86vh; border-radius: 14px; }

#toast { position: fixed; left: 50%; bottom: calc(18px + var(--sb)); transform: translate(-50%, 20px); padding: 9px 16px; border-radius: 14px; background: rgba(12, 18, 30, .88); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 80; pointer-events: none; max-width: 80vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#perf { position: fixed; left: 50%; top: 4px; transform: translateX(-50%); z-index: 99; font: 11px/1.3 ui-monospace, monospace; background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px; white-space: pre; pointer-events: none; }

/* Minigame */
#mg { z-index: 10; }
#mg.show { display: block; }
body.in-mg .small-btns, body.in-mg .goal, body.in-mg #ctxBtn, body.in-mg .joy-hint { display: none !important; }
#mg > * { pointer-events: auto; }
.mg-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 90vw); padding: 18px 22px; text-align: center; animation: cardIn .3s ease-out; }
@keyframes cardIn { from { transform: translate(-50%, -46%); opacity: 0; } }
.mg-kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #ffd9a0; }
.mg-title { font-family: Cinzel, serif; font-weight: 900; font-size: 32px; color: #fff3d6; text-shadow: 0 3px 0 #7a3418; margin: 2px 0 6px; }
.mg-text { color: var(--ink-dim); font-size: 14.5px; line-height: 1.35; margin-bottom: 12px; }
.mg-role { display: inline-block; padding: 10px 16px; border-radius: 14px; background: rgba(126, 224, 255, .12); box-shadow: inset 0 0 0 2px rgba(126, 224, 255, .5); font-size: 15px; margin-bottom: 10px; }
.mg-role b { display: block; font-family: Cinzel, serif; font-size: 20px; color: #bff1ff; }
.mg-roster { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; color: var(--ink-dim); }
.mg-roster span { padding: 3px 9px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.mg-count { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-family: Cinzel, serif; font-weight: 900; font-size: 110px; color: #fff3d6; text-shadow: 0 6px 0 #7a3418, 0 0 40px rgba(255, 179, 90, .6); animation: countIn .9s ease-out; pointer-events: none !important; }
@keyframes countIn { from { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-50%, -50%) scale(.9); } }
.mg-top { position: absolute; top: calc(10px + var(--st)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 7px 14px; border-radius: 16px; background: rgba(12, 18, 30, .72); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none !important; }
.mg-seals { display: flex; gap: 6px; }
.mg-seals i { width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.mg-seals i.on { background: #6fd6ff; box-shadow: 0 0 12px #6fd6ff; }
.mg-time { font: 800 20px Fredoka, sans-serif; min-width: 54px; text-align: center; }
.mg-time.low { color: #ff8f80; }
.mg-prog { display: flex; gap: 5px; }
.mg-prog i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mg-prog i.on { background: #7dffb0; box-shadow: 0 0 8px #7dffb0; }
.mg-hint { position: absolute; left: 50%; top: calc(62px + var(--st)); transform: translateX(-50%); font-size: 14px; color: #fff3d6; text-shadow: 0 1px 8px #000; white-space: nowrap; pointer-events: none !important; }
.rune-code { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; gap: 12px; padding: 12px 18px; border-radius: 20px; background: rgba(10, 20, 36, .7); box-shadow: inset 0 0 0 2px rgba(126, 224, 255, .5), 0 0 40px rgba(80, 180, 255, .3); pointer-events: none !important; transition: opacity .2s; }
.rune-code.off { opacity: 0; }
.rune-code svg { width: 54px; height: 54px; }
.rune-code .done { opacity: .35; }
.rune-btns { position: absolute; right: calc(18px + var(--sr)); bottom: calc(16px + var(--sb)); display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.rune-btns button { width: 76px; height: 76px; border: 0; border-radius: 20px; cursor: pointer; background: radial-gradient(circle at 50% 30%, #3a4f78, #1d2a45); box-shadow: 0 5px 0 #0e1628, inset 0 0 0 2px rgba(126, 224, 255, .45), 0 8px 18px rgba(0, 0, 0, .4); display: grid; place-items: center; }
.rune-btns button svg { width: 46px; height: 46px; }
.rune-btns button:active { transform: translateY(3px); box-shadow: 0 2px 0 #0e1628, inset 0 0 0 2px rgba(126, 224, 255, .8); }
.rune-btns button.ok { animation: okFlash .45s; }
.rune-btns button.bad { animation: badFlash .45s; }
@keyframes okFlash { 30% { background: #2fb37a; } }
@keyframes badFlash { 30% { background: #c0392b; transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.torch-btn { position: absolute; right: calc(26px + var(--sr)); bottom: calc(18px + var(--sb)); width: 128px; height: 128px; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 50% 35%, #ffb35a, #c74a1c 75%); box-shadow: 0 6px 0 #7e2a0c, 0 12px 30px rgba(255, 120, 40, .45), inset 0 2px 0 rgba(255, 255, 255, .45); font-weight: 750; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; touch-action: none; }
.torch-btn svg.fl { width: 40px; height: 40px; }
.torch-btn.lit { box-shadow: 0 6px 0 #7e2a0c, 0 0 60px rgba(255, 190, 80, .9), inset 0 2px 0 rgba(255, 255, 255, .45); }
.torch-btn.out { filter: grayscale(.9) brightness(.6); }
.torch-btn .fuel { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; }
.torch-btn .fuel circle { fill: none; stroke: #ffe08a; stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.mg-flash { position: absolute; inset: 0; pointer-events: none !important; background: radial-gradient(ellipse, rgba(255, 60, 40, 0), rgba(255, 60, 40, .45)); opacity: 0; transition: opacity .4s; }
.mg-flash.on { opacity: 1; transition: none; }
.grade { font-family: Cinzel, serif; font-weight: 900; font-size: 44px; margin: 4px 0; }
.grade.gold { color: #ffd166; text-shadow: 0 3px 0 #8a5a10, 0 0 30px rgba(255, 209, 102, .5); }
.grade.silber { color: #e4ecf2; text-shadow: 0 3px 0 #5a6670; }
.grade.bronze { color: #e8a06a; text-shadow: 0 3px 0 #6a3a1a; }
.grade.none { color: #ff9b8f; font-size: 30px; }

/* ---------- Kampf (Paket 2) ---------- */
.me-frame { align-items: flex-start; }
.portrait { position: relative; flex: 0 0 auto; }
.lvl-badge { position: absolute; right: -5px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: linear-gradient(180deg, #ffd166, #e08a1e); color: #3a2208; font: 800 12px/22px Fredoka, sans-serif; text-align: center; box-shadow: 0 2px 0 #8a4a10, 0 0 0 2px rgba(20, 14, 8, .6); }
.me-info { min-width: 150px; }
.hpbar { position: relative; width: 150px; height: 13px; margin-top: 3px; border-radius: 7px; background: rgba(10, 8, 12, .7); box-shadow: inset 0 0 0 1.5px rgba(255, 236, 200, .35); overflow: hidden; }
.hpbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; transition: width .18s ease-out; }
.hpbar .hp { background: linear-gradient(180deg, #7dff8a, #2fb34a); width: 100%; }
body.low-hp .hpbar .hp { background: linear-gradient(180deg, #ff8a7a, #d8352a); animation: lowhp .8s ease-in-out infinite; }
@keyframes lowhp { 50% { filter: brightness(1.35); } }
.hpbar .sh { background: linear-gradient(180deg, rgba(200, 240, 255, .9), rgba(120, 200, 255, .75)); width: 0; mix-blend-mode: screen; }
.hpbar span { position: absolute; inset: 0; font: 700 10px/13px Fredoka, sans-serif; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }
.ultbar, .xpbar { width: 150px; height: 4px; margin-top: 3px; border-radius: 3px; background: rgba(10, 8, 12, .6); overflow: hidden; }
.ultbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb35a, #ffe07a); box-shadow: 0 0 6px #ffd166; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7ee0ff, #b98cff); }
.gold { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 650; color: #ffe2a0; text-shadow: 0 1px 4px #000; }
.gold .coin { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2b0, #e0a020); box-shadow: 0 0 0 1px #8a5a10; }
.pf { position: relative; }
.pf .php { position: absolute; left: 26px; right: 10px; bottom: 2px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.pf .php i { display: block; height: 100%; background: #5fe070; }
.pf.down { box-shadow: inset 0 0 0 1.5px #ff5a4a; }
.pf.down .php i { background: #ff5a4a; }
.menu-btn .badge { position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: #ff6b5a; color: #fff; font: 800 12px/18px Fredoka, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 10px #ff6b5a; animation: bob2 1s ease-in-out infinite; }
@keyframes bob2 { 50% { transform: translateY(-2px); } }
.boss-bar { margin-top: 4px; width: min(380px, 46vw); text-align: center; pointer-events: none; }
.boss-bar b { display: block; font: 900 15px Cinzel, serif; color: #ffd9c0; text-shadow: 0 2px 0 #5a1a10, 0 0 14px rgba(255, 80, 40, .6); }
.boss-bar .bb { height: 12px; margin-top: 3px; border-radius: 6px; background: rgba(20, 6, 6, .8); box-shadow: inset 0 0 0 1.5px rgba(255, 180, 140, .5), 0 4px 14px rgba(0, 0, 0, .5); overflow: hidden; }
.boss-bar .bb i { display: block; height: 100%; background: linear-gradient(180deg, #ff7a5a, #c42a1a); transition: width .25s; }
/* rechte Seite: Kontextknopf links vom Skillpad, kleine Knöpfe oben */
.hud-br { right: calc(286px + var(--sr)); bottom: calc(18px + var(--sb)); }
.hud-br .small-btns { position: fixed; right: calc(206px + var(--sr)); top: calc(12px + var(--st)); flex-direction: row; }
.ctx-btn { width: 74px; height: 74px; }
.pad-layer { position: absolute; right: calc(0px + var(--sr)); bottom: calc(0px + var(--sb)); width: 300px; height: 250px; pointer-events: none !important; }
.pad { position: absolute; inset: 0; --c: #ffb35a; }
.sk { position: absolute; transform: translate(50%, 50%); border: 0; border-radius: 50%; padding: 0; cursor: pointer; pointer-events: auto; touch-action: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, rgba(70, 82, 110, .92), rgba(22, 28, 44, .92) 70%); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c) 75%, #fff 25%), 0 5px 14px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .18); transition: transform .08s; }
.sk .sk-ico { display: grid; place-items: center; position: relative; z-index: 1; }
.sk .sk-ico svg { width: 52%; height: 52%; display: block; margin: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.sk .sk-ico { width: 100%; height: 100%; }
.sk.down { transform: translate(50%, 50%) scale(.93); }
.sk.press { animation: skpress .25s ease-out; }
@keyframes skpress { 0% { filter: brightness(1.8); } }
.sk .sk-cd { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(8, 10, 18, .72) calc(var(--cd, 0) * 360deg), transparent 0); pointer-events: none; z-index: 2; }
.sk .sk-num { position: absolute; z-index: 3; font: 800 18px Fredoka, sans-serif; text-shadow: 0 2px 4px #000; pointer-events: none; }
.sk .sk-name { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 1px); font-size: 9.5px; font-weight: 650; white-space: nowrap; color: rgba(255, 248, 236, .85); text-shadow: 0 1px 3px #000; pointer-events: none; }
.sk.cooling .sk-ico { opacity: .55; }
.sk.nope { animation: nope .3s; }
@keyframes nope { 25% { transform: translate(calc(50% - 4px), 50%); } 75% { transform: translate(calc(50% + 4px), 50%); } }
.sk-basic { width: 92px; height: 92px; right: 66px; bottom: 62px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 55%, #2a3550 45%), rgba(22, 28, 44, .95) 72%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 80%, #fff 20%), 0 6px 18px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .25); }
.sk-basic .sk-ico svg { width: 46%; height: 46%; }
.sk-s1 { width: 60px; height: 60px; right: 168px; bottom: 50px; }
.sk-s2 { width: 60px; height: 60px; right: 150px; bottom: 132px; }
.sk-s3 { width: 60px; height: 60px; right: 78px; bottom: 164px; }
.sk-ult { width: 68px; height: 68px; right: 224px; bottom: 138px; }
.sk-ult .sk-charge { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; z-index: 2; }
.sk-ult .sk-charge circle { fill: none; stroke: #ffd166; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--u, 0) * 100); filter: drop-shadow(0 0 3px #ffb35a); }
.sk-ult:not(.ready) .sk-ico { opacity: .5; }
.sk-ult.ready { box-shadow: 0 0 0 3px #ffe07a, 0 0 26px 6px rgba(255, 200, 80, .75), 0 6px 18px rgba(0, 0, 0, .5); animation: ultglow 1.1s ease-in-out infinite; }
@keyframes ultglow { 50% { box-shadow: 0 0 0 3px #fff2b0, 0 0 38px 12px rgba(255, 210, 90, .95), 0 6px 18px rgba(0, 0, 0, .5); } }
.sk-pot { width: 44px; height: 44px; right: 236px; bottom: 34px; }
.sk-pot .sk-ico svg { width: 60%; height: 60%; }
.sk-pot .sk-cnt { position: absolute; right: -4px; bottom: -4px; z-index: 3; min-width: 18px; height: 18px; border-radius: 9px; background: #2fb34a; font: 800 11px/18px Fredoka, sans-serif; text-align: center; box-shadow: 0 0 0 2px rgba(10, 14, 20, .8); }
.sk-pot.empty { filter: grayscale(1) brightness(.6); }
.pad.blocked .sk { filter: grayscale(.7) brightness(.7); }
.sk-cancel { position: absolute; right: 296px; bottom: 196px; transform: translate(50%, 50%) scale(.6); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(40, 14, 14, .72); box-shadow: 0 0 0 2px rgba(255, 120, 100, .6); opacity: 0; transition: opacity .12s, transform .12s; pointer-events: none; }
.sk-cancel svg { width: 26px; height: 26px; }
.sk-cancel span { font-size: 9.5px; font-weight: 700; margin-top: -2px; }
.sk-cancel.on { opacity: 1; transform: translate(50%, 50%) scale(1); }
.sk-cancel.hot { background: rgba(220, 50, 40, .9); box-shadow: 0 0 0 3px #ffb0a0, 0 0 24px rgba(255, 80, 60, .8); transform: translate(50%, 50%) scale(1.12); }
body.in-mg .pad-layer, body.in-mg .hpbar, body.in-mg .ultbar { display: none !important; }
/* Zahlen, Wörter, Treffer */
#dmgLayer { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.dnum { position: absolute; left: 0; top: 0; translate: -50% -100%; font: 800 17px Fredoka, sans-serif; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .5); white-space: nowrap; will-change: transform; }
.dnum { animation: dnum .85s ease-out forwards; }
.dnum.mine { color: #fff6e0; }
.dnum.other { color: #dfe6f0; font-size: 13px; opacity: .85; }
.dnum.crit { color: #ffd12e; font-size: 27px; text-shadow: 0 3px 0 #7a4a00, 0 0 14px rgba(255, 180, 40, .7); }
.dnum.crit.big { animation: dcrit 1.1s ease-out forwards; }
.dnum.heal { color: #7dff8a; font-size: 15px; }
.dnum.eheal { color: #b8ff7a; font-size: 12px; }
.dnum.hurt { color: #ff6b5a; font-size: 18px; }
.dnum.hurt.big { font-size: 24px; }
.dnum.absorb { color: #bfe8ff; font-size: 13px; }
.dnum.info { color: #e8eef8; font-size: 12px; font-weight: 650; }
.dnum.hurt-ally { color: #ffb0a0; font-size: 11px; }
@keyframes dnum { 0% { margin-top: 0; opacity: 0; scale: .6; } 12% { opacity: 1; scale: 1.15; } 30% { scale: 1; } 100% { margin-top: -48px; opacity: 0; } }
@keyframes dcrit { 0% { margin-top: 0; opacity: 0; scale: .4; } 14% { opacity: 1; scale: 1.45; } 32% { scale: 1.05; } 100% { margin-top: -56px; opacity: 0; } }
.combo-word { position: absolute; left: 0; top: 0; translate: -50% -100%; font: 900 34px Cinzel, serif; letter-spacing: .04em; color: var(--c); text-shadow: 0 3px 0 rgba(40, 20, 10, .85), 0 0 18px var(--c), 0 0 40px var(--c); white-space: nowrap; animation: combo 1.4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes combo { 0% { scale: 2.4; opacity: 0; } 12% { scale: .9; opacity: 1; } 20% { scale: 1.08; } 70% { opacity: 1; margin-top: -12px; } 100% { opacity: 0; margin-top: -36px; scale: 1; } }
#vignette.hurt { animation: vhurt .45s ease-out; }
@keyframes vhurt { 0% { box-shadow: inset 0 0 120px rgba(255, 40, 30, .65); } 100% { box-shadow: inset 0 0 0 rgba(255, 40, 30, 0); } }
body.low-hp #vignette { box-shadow: inset 0 0 90px rgba(200, 20, 20, .45); }
#ultFlash { position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: 0; background: radial-gradient(ellipse at 50% 55%, transparent 30%, var(--c, #fff2c8) 140%); }
#ultFlash.on { animation: uflash .7s ease-out; }
@keyframes uflash { 0% { opacity: .55; } 100% { opacity: 0; } }
.down-ov { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); width: min(420px, 70vw); padding: 14px 18px; border-radius: 18px; background: rgba(30, 8, 10, .78); box-shadow: inset 0 0 0 1.5px rgba(255, 120, 100, .5), 0 10px 30px rgba(0, 0, 0, .5); text-align: center; pointer-events: none !important; }
.down-ov b { display: block; font: 900 24px Cinzel, serif; color: #ffcfc0; text-shadow: 0 2px 0 #4a0a08; }
.down-ov span { display: block; margin-top: 4px; font-size: 13.5px; color: #ffe8e0; }
.down-ov .db { margin-top: 9px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.down-ov .db i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a4a, #ff9a6a); transition: width .2s linear; }
.down-ov .db i.rev { background: linear-gradient(90deg, #7dff8a, #fff6c0); }
body.me-down canvas#gl { filter: saturate(.25) brightness(.85); }
.nametag.elite { background: rgba(60, 30, 6, .7); color: #ffd166; box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .6); }
.nametag.elite small { display: block; font-size: 9.5px; font-weight: 600; color: #ffe8b0; text-align: center; }
/* Talente */
.tal-card { position: relative; width: min(760px, 94vw); max-height: 94vh; padding: 14px 18px 12px; overflow: auto; }
.tal-card .acct-title { text-align: center; }
.tal-tiers { display: flex; justify-content: center; gap: 6px; margin: 6px 0 10px; }
.tal-tiers button { border: 0; border-radius: 12px; padding: 5px 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 12px; font-weight: 650; cursor: pointer; }
.tal-tiers button.sel { background: rgba(255, 179, 90, .22); box-shadow: inset 0 0 0 2px #ffb35a; }
.tal-tiers button.locked { opacity: .4; }
.tal-tiers button.open::after { content: ' ●'; color: #ff8a6a; }
.tal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tcard { position: relative; border: 0; border-radius: 18px; padding: 0 0 12px; background: linear-gradient(180deg, rgba(40, 50, 74, .95), rgba(18, 24, 38, .95)); box-shadow: inset 0 0 0 1.5px rgba(255, 236, 200, .18), 0 8px 20px rgba(0, 0, 0, .35); cursor: pointer; overflow: hidden; text-align: center; transition: transform .12s; }
.tcard:active { transform: scale(.97); }
.tcard .timg { display: block; width: 100%; aspect-ratio: 16 / 10; } .tcard .timg svg { display: block; width: 100%; height: 100%; }
.tcard b { display: block; margin: 8px 8px 2px; font: 800 15px Cinzel, serif; color: #fff3d6; }
.tcard span { display: block; margin: 0 10px; font-size: 12.5px; line-height: 1.3; color: var(--ink-dim); }
.tcard.chosen { box-shadow: inset 0 0 0 3px #ffd166, 0 0 26px rgba(255, 209, 102, .45); }
.tcard.chosen::after { content: 'Gewählt'; position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 8px; background: #ffd166; color: #3a2208; font-size: 11px; font-weight: 800; }
.tcard.dim { opacity: .55; }
.tal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--ink-dim); }
.cls-mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cls-mini button { border: 0; border-radius: 10px; padding: 5px 2px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 -3px 0 var(--c); font-size: 10.5px; font-weight: 650; line-height: 1.1; cursor: pointer; }
.cls-mini button small { display: block; font-size: 9px; opacity: .65; font-weight: 500; }
.cls-mini button.sel { background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.ctx-btn.holding { animation: none; box-shadow: 0 0 0 4px #7dff8a, 0 0 30px rgba(125, 255, 138, .7); }
body.in-combat .goal { opacity: 0; transition: opacity .4s; }
.goal { transition: opacity .4s; }
