@font-face {
  font-family: "Unbounded";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg: #0a0508;
  --ink: #fff1e6;
  --muted: #b9a49a;
  --f1: #fde68a;
  --f2: #fb923c;
  --f3: #ef4444;
  --card: linear-gradient(180deg, rgba(40, 21, 23, 0.95), rgba(17, 10, 13, 0.96));
  --line: rgba(255, 220, 190, 0.12);
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --coin: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden; overscroll-behavior: none;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ov { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* Randabdunklung über der 3D-Szene (billiger als ein eigener Grafikdurchgang) */
#vig { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 55%, rgba(6, 2, 10, 0.5) 100%); }
.noimg { display: inline-block; width: 40px; height: 40px; }
#ui { position: fixed; inset: 0; pointer-events: none; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; pointer-events: auto;
  display: flex; justify-content: center; align-items: flex-start;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
.screen.game { pointer-events: none; overflow: hidden; padding: 0; display: block; }
.screen.game button, .screen.game .panel, .screen.game .overlay { pointer-events: auto; }
body:not(.ready) #ui, body.intro #ui { opacity: 0; pointer-events: none; }
body.ready:not(.intro) #ui { animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Karten & Knöpfe ---------- */

.card {
  width: 100%; max-width: 460px; margin: auto 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 16px 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 190, 0.1), inset 0 0 0 1px rgba(255, 140, 60, 0.03);
}
.btn {
  display: block; width: 100%; min-height: 50px; margin: 10px 0 0;
  border: 1px solid rgba(255, 220, 190, 0.18); border-radius: 14px; background: rgba(255, 220, 190, 0.06);
  font-family: var(--head); font-size: 14px; letter-spacing: 0.02em;
  transition: transform .12s, background .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary {
  border: 0; color: #2a0a02;
  background: linear-gradient(100deg, var(--f1), var(--f2) 55%, var(--f3));
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn.big { min-height: 60px; font-size: 16px; }
.btn.small { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-height: 36px; margin: 0; padding: 0 12px; font-size: 11px; }
.btn.small.on { background: rgba(253, 224, 71, 0.18); border-color: rgba(253, 224, 71, 0.6); color: #fde047; }
.btn.danger { background: #dc2626; border: 0; color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid rgba(255, 220, 190, 0.16); background: rgba(255, 220, 190, 0.06); color: #f3e1d6; font-size: 18px; }
.icon-btn span { font: 800 10px var(--head); margin-left: 1px; }
.back { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; color: var(--muted); padding: 6px 0; font-size: 14px; }
.g::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 3px; vertical-align: -0.15em; background: var(--coin) center/contain no-repeat; }

/* ---------- Startseite ---------- */

.home-wrap { width: 100%; max-width: 460px; margin: auto 0; display: flex; flex-direction: column; gap: 14px; }
.brand { text-align: center; padding-top: 6px; }
.emblem { width: 74px; height: 74px; filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.5)); }
.logo { margin: 4px 0 0; text-align: center; font-family: var(--head); font-weight: 800; font-size: min(11.5vw, 52px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.logo span {
  display: inline-block;
  background: linear-gradient(180deg, #fffbeb 5%, var(--f1) 30%, var(--f2) 60%, var(--f3) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(249, 115, 22, 0.45));
}
.tagline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 8px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #d9c2b6; }
.tagline i { width: 4px; height: 4px; border-radius: 50%; background: var(--f2); box-shadow: 0 0 6px var(--f2); }
.claim { margin: 4px 0 14px; text-align: center; color: var(--muted); }
.status { margin: 0 0 10px; text-align: center; color: var(--f2); font-size: 13px; }
.status:empty { display: none; }
.namebar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); }
.namebar:focus-within { border-color: var(--f2); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--head); color: #2a0a02; background: linear-gradient(135deg, var(--f1), var(--f2) 60%, var(--f3)); box-shadow: 0 0 14px rgba(249, 115, 22, 0.35); }
.nameinput { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nameinput span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nameinput input { min-width: 0; height: 26px; padding: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 18px; font-weight: 700; }
.modes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin-top: 12px; }
.mode {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 124px; padding: 14px 14px 12px; border-radius: 18px; text-align: left;
  border: 1px solid rgba(255, 220, 190, 0.16); background: linear-gradient(160deg, rgba(255, 220, 190, 0.09), rgba(255, 220, 190, 0.03));
  transition: transform .12s;
}
.mode.duo::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%); pointer-events: none; }
.mode .mic { width: 34px; height: 34px; margin-bottom: auto; }
.mode b { font: 800 17px var(--head); }
.mode small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.mode.duo { border: 0; color: #2a0a02; background: linear-gradient(145deg, #fef3c7, var(--f1) 20%, var(--f2) 60%, var(--f3)); box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.mode.duo small { color: rgba(42, 10, 2, 0.78); }
.mode.solo .mic { color: var(--f1); }
.mode:active { transform: scale(0.97); }
.opts { display: grid; gap: 12px; margin-top: 16px; }
.ol { display: block; margin: 0 0 6px 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.od { display: block; min-height: 1.3em; margin: 6px 2px 0; font-size: 12px; color: #dcc6ba; }
.field { margin-top: 10px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin: 0 0 6px 2px; letter-spacing: .14em; text-transform: uppercase; }
.row { display: flex; gap: 8px; }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; border: 0; background: none; color: #d9c2b6; font: 800 12px var(--head); transition: background .2s, color .2s; }
.seg button.on { background: linear-gradient(150deg, var(--f1), var(--f2)); color: #2a0a02; box-shadow: 0 2px 12px rgba(249, 115, 22, 0.4); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 2px 8px; }
.list-head h2 { margin: 0; font: 800 13px var(--head); letter-spacing: .04em; }
#online { font-size: 12px; color: var(--muted); }
#online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; vertical-align: 1px; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms .empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 14px; }
.room-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin: 0 0 8px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 220, 190, 0.04);
}
.room-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-meta { font-size: 13px; color: var(--muted); }
.room-join { grid-row: 1 / 3; grid-column: 2; padding: 8px 12px; border-radius: 10px; background: rgba(249, 115, 22, 0.16); font: 800 11px var(--head); color: #fdba74; }
.link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 220, 190, 0.14); background: rgba(255, 220, 190, 0.04); color: #e7d3c8; font: 800 13px var(--head); }
.foot { margin: 0; text-align: center; font-size: 11px; color: rgba(255, 220, 190, 0.35); }
.steps { padding-left: 20px; margin: 4px 0; color: #ecd9cc; font-size: 14px; }
.steps li { margin: 8px 0; }
.items { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #ecd9cc; }
.items li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 220, 190, 0.06); }
.items img { width: 46px; height: 46px; flex: none; }
.items small { display: block; color: var(--muted); font-size: 11px; }

/* ---------- Warteraum ---------- */

.room-head { display: flex; justify-content: space-between; align-items: center; }
.badge { padding: 4px 10px; border-radius: 99px; background: rgba(249, 115, 22, 0.15); color: #fdba74; font: 800 10px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.room-title { font: 800 22px var(--head); margin: 12px 0 4px; overflow-wrap: anywhere; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px 0; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.32); border: 1px dashed rgba(253, 224, 71, 0.35); }
.code-box span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.code-box b { margin-left: .24em; font: 800 34px var(--head); letter-spacing: .24em; color: #fde68a; text-shadow: 0 0 18px rgba(253, 224, 71, 0.35); }
.btn.share { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 0; }
.slots { list-style: none; padding: 0; margin: 14px 0 6px; }
.slots li { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 220, 190, 0.05); border: 1px solid var(--line); }
.slots li.me { border-color: rgba(249, 115, 22, 0.6); background: rgba(249, 115, 22, 0.1); }
.slots li.free { background: none; border-style: dashed; color: var(--muted); font-size: 13px; }
.slots li.off { opacity: .55; }
.slots .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slots li.free .nm { font-weight: 400; }
.pdot { --c: #888; display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pdot.ghost { background: none; border: 2px dashed var(--muted); box-shadow: none; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 220, 190, 0.1); color: var(--muted); }
.tag.host { background: rgba(250, 204, 21, 0.18); color: #fde047; }
.ro { color: var(--muted); font-size: 14px; margin: 0; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }
.hint .expire { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }

/* ---------- Symbole ---------- */

.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; margin-right: 6px; }
.big-ic { display: block; width: 46px; height: 46px; margin: 0 auto 6px; color: var(--f2); }

/* ---------- Einführung ---------- */

.overlay.modal { position: fixed; z-index: 45; }
.tut { background: rgba(6, 3, 8, 0.78); overflow: hidden; }
.tut-card { display: flex; flex-direction: column; max-width: 460px; height: min(660px, calc(100vh - 32px)); height: min(660px, calc(100dvh - 32px)); padding: 12px 16px 14px; animation: sheetIn .35s cubic-bezier(.3, 1.2, .5, 1); }
.tut-head { display: flex; justify-content: space-between; align-items: center; }
.tut-count { font: 800 11px var(--head); letter-spacing: .14em; color: var(--muted); }
.link-skip { background: none; border: 0; padding: 6px 2px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.tut-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 8px; }
.tut-body.in > * { animation: fadeUp .35s ease both; }
.tut-body.in > *:nth-child(2) { animation-delay: .05s; }
.tut-body.in > *:nth-child(3) { animation-delay: .1s; }
.tut-body h2 { margin: 6px 0 8px; text-align: center; font: 800 21px var(--head); background: linear-gradient(180deg, #fffbeb, var(--f1) 40%, var(--f2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tut-text p { margin: 0 0 10px; color: #ecd9cc; font-size: 15px; line-height: 1.5; }
.tut-text b { color: #fff; }
.tut-text .tut-team { padding: 8px 10px; border-radius: 12px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); font-size: 14px; }
.tut-art { display: grid; place-items: center; min-height: 120px; margin: 4px 0; }
.tut-emblem { width: 120px; height: 120px; filter: drop-shadow(0 8px 26px rgba(249, 115, 22, 0.6)); }
.tut-list { list-style: none; margin: 0; padding: 0; }
.tut-list li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 220, 190, 0.07); font-size: 13px; color: #d9c2b6; }
.tut-list img, .tut-list .noimg { width: 50px; height: 50px; flex: none; }
.tut-list b { display: block; font: 800 12px var(--head); color: #fff; margin-bottom: 1px; }
.tut-shop { display: flex; gap: 8px; justify-content: center; }
.tut-shop .ts { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; padding: 8px 4px; border-radius: 14px; background: rgba(255, 220, 190, 0.06); border: 1px solid var(--line); }
.tut-shop img, .tut-shop .noimg { width: 52px; height: 52px; }
.tut-shop b { font: 800 11px var(--head); }
.tut-shop .tbtn { margin-top: 3px; padding: 4px 8px; border-radius: 9px; background: rgba(255, 220, 190, 0.1); font: 800 10px var(--head); }
.tut-shop .tbtn.hot { background: linear-gradient(120deg, var(--f1), var(--f2)); color: #2a0a02; }
.tut-ring { position: relative; width: 230px; height: 150px; }
.tut-ring .hex { position: absolute; left: 50%; top: 100px; width: 54px; height: 54px; margin: -27px 0 0 -27px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(180deg, #6d5a63, #3b2f37); box-shadow: 0 0 0 2px #fde047; }
.tut-ring .hex::after { content: ""; position: absolute; inset: 0; border: 2px solid #fde047; clip-path: inherit; }
.tut-ring .rb { position: absolute; left: 50%; top: 100px; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 220, 190, 0.35); background: radial-gradient(circle at 50% 35%, #46241e, #180c0e); transform: rotate(var(--a)) translateX(74px) rotate(calc(-1 * var(--a))); }
.tut-ring .rb img, .tut-ring .rb .noimg { width: 34px; height: 34px; }
.tut-slots { display: flex; gap: 8px; }
.tut-slots .sl { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 14px; border: 1px dashed rgba(255, 220, 190, 0.3); color: var(--muted); font: 800 18px var(--head); }
.tut-slots .sl.full { border: 1px solid rgba(253, 224, 71, 0.6); background: rgba(253, 224, 71, 0.1); }
.tut-slots img, .tut-slots .noimg { width: 46px; height: 46px; }
.tut-foot { padding-top: 8px; border-top: 1px solid var(--line); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 10px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 220, 190, 0.22); transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--f2); }
.tut-btns { display: flex; gap: 8px; }
.tut-btns .btn { margin: 0; flex: 1; }
.tut-btns .btn.primary { flex: 1.6; }

/* ---------- Intro ---------- */

#intro { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; }
.in-black { position: absolute; inset: 0; background: #050207; }
#intro.go .in-black { animation: inBlack 1.8s ease .15s forwards; }
@keyframes inBlack { to { opacity: .12; } }
.in-center { position: relative; text-align: center; padding: 0 16px; margin-top: 34vh; }
@keyframes emIn { to { opacity: 1; transform: none; } }
.in-title { display: flex; justify-content: center; margin: 0; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(0, 0, 0, 0.7)); font: 800 min(12.5vw, 76px) var(--head); line-height: 1; letter-spacing: -0.02em; }
.in-title span {
  display: inline-block; opacity: 0; transform: translateY(-46px) scale(1.9);
  background: linear-gradient(180deg, #fffbeb 5%, var(--f1) 30%, var(--f2) 60%, var(--f3) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#intro.go .in-title span { animation: letterIn .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
#intro.go .in-title span:nth-child(1) { animation-delay: 1.10s; }
#intro.go .in-title span:nth-child(2) { animation-delay: 1.16s; }
#intro.go .in-title span:nth-child(3) { animation-delay: 1.22s; }
#intro.go .in-title span:nth-child(4) { animation-delay: 1.28s; }
#intro.go .in-title span:nth-child(5) { animation-delay: 1.40s; }
#intro.go .in-title span:nth-child(6) { animation-delay: 1.46s; }
#intro.go .in-title span:nth-child(7) { animation-delay: 1.52s; }
#intro.go .in-title span:nth-child(8) { animation-delay: 1.58s; }
#intro.go .in-title span:nth-child(9) { animation-delay: 1.64s; }
@keyframes letterIn { 60% { opacity: 1; transform: translateY(5px) scale(.94); } to { opacity: 1; transform: none; } }
.in-flash { position: absolute; left: -12%; right: -12%; top: 54%; height: 3px; opacity: 0; transform: scaleX(0); background: linear-gradient(90deg, transparent, #fff 40%, #fde68a 60%, transparent); box-shadow: 0 0 20px #fbbf24; }
#intro.go .in-flash { animation: flashSweep .9s ease 1.75s forwards; }
@keyframes flashSweep { 30% { opacity: 1; transform: scaleX(1); } to { opacity: 0; transform: scaleX(1.25); } }
.in-tag { margin: 18px 0 0; opacity: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #fde7d0; }
#intro.go .in-tag { animation: fadeUp .8s ease 2.05s forwards; }
.in-tap { position: absolute; left: 0; right: 0; bottom: max(56px, calc(env(safe-area-inset-bottom) + 30px)); margin: 0; text-align: center; opacity: 0; font: 800 13px var(--head); letter-spacing: .1em; color: #fde68a; }
#intro.go .in-tap { animation: fadeUp .6s ease 2.6s forwards, breathe 1.8s ease-in-out 3.3s 3; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .45; } }
#intro.out { pointer-events: none; animation: introOut .6s ease forwards; }
@keyframes introOut { 0% { opacity: 1; } 15% { opacity: 1; filter: brightness(1.8); } to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { #intro.go * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ---------- Ergebnis-Kopf ---------- */

.end-hero { position: relative; display: grid; place-items: center; height: 92px; }
.end-hero .rays { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 68, 68, 0.28), transparent 65%); animation: raysIn 1s ease both; }
.end.win .end-hero .rays { background: repeating-conic-gradient(rgba(253, 224, 71, 0.22) 0 9deg, transparent 9deg 30deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); }
@keyframes raysIn { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }
.end-ic { position: relative; width: 62px; height: 62px; color: #f87171; filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.5)); animation: emIn .7s cubic-bezier(.2, 1.5, .4, 1) .15s both; opacity: 0; transform: scale(.3); }
.end.win .end-ic { color: #fde047; filter: drop-shadow(0 0 16px rgba(253, 224, 71, 0.6)); }

/* ---------- Im Spiel ---------- */

.topbar {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 10px; align-items: center;
  padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  background: linear-gradient(180deg, rgba(10, 5, 8, 0.92), rgba(10, 5, 8, 0.6) 75%, rgba(10, 5, 8, 0));
}
.hp { display: flex; align-items: center; gap: 6px; }
.hp .hicon { width: 22px; height: 22px; color: #f43f5e; filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.7)); }
.hp b { font: 800 18px var(--head); min-width: 26px; }
.hp .bar { width: 60px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hp .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #fde047); transition: width .3s; }
.hp.low .bar i { background: #ef4444; }
.hp.low .hicon { color: #ef4444; transform: scale(1.12); }
.wave { text-align: center; line-height: 1.15; min-width: 0; }
.wave b { display: block; font: 800 14px var(--head); }
.wave span { font-size: 12px; color: var(--muted); }
.wave .wbar { display: block; width: min(150px, 38vw); height: 4px; margin: 3px auto 0; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.wave .wbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a855f7, #f97316); transition: width .4s; }
.gold { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.gold b { font: 800 18px var(--head); color: #fde047; display: flex; align-items: center; gap: 4px; }
.gold .coin { position: absolute; }
.gold b::before { content: ""; width: 18px; height: 18px; background: var(--coin) center/contain no-repeat; }
.gold .partner { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.gold .partner .pdot { width: 8px; height: 8px; }
.tbtns { grid-column: 1 / 4; display: flex; justify-content: flex-end; gap: 6px; }
.tbtns .icon-btn { width: 36px; height: 32px; font-size: 14px; border-radius: 9px; background: rgba(20, 10, 12, 0.75); }
.tbtns .icon-btn .ic { width: 17px; height: 17px; }
.tbtns .icon-btn.on { background: var(--f2); color: #2a0a02; }

.bottombar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: stretch; gap: 6px;
  padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(10, 5, 8, 0.95), rgba(10, 5, 8, 0.75) 70%, rgba(10, 5, 8, 0));
}
.cards { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; min-width: 0; }
.card.empty { border-radius: 12px; border: 1px dashed rgba(255, 220, 190, 0.12); background: none; padding: 0; backdrop-filter: none; box-shadow: none; margin: 0; }
.cards .card {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 2px 4px; margin: 0; border-radius: 12px; border: 1px solid rgba(255, 220, 190, 0.16);
  background: linear-gradient(180deg, rgba(60, 30, 26, 0.85), rgba(26, 14, 16, 0.9)); box-shadow: none; backdrop-filter: none;
  transition: transform .12s, border-color .2s;
}
.cards .card img { width: 46px; height: 46px; margin-top: -2px; }
.cards .card .cn { font: 800 9px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cards .card .cc { font: 800 11px var(--head); color: #fde047; display: flex; align-items: center; gap: 2px; }
.cards .card .cc::before { content: ""; width: 11px; height: 11px; background: var(--coin) center/contain no-repeat; }
.cards .card kbd { position: absolute; top: 3px; left: 5px; font: 10px system-ui; color: var(--muted); opacity: .6; }
.cards .card.sel { border-color: #fde047; box-shadow: 0 0 0 2px #fde047, 0 0 18px rgba(253, 224, 71, 0.45); transform: translateY(-4px); }
.cards .card.poor { opacity: .45; }
.cards .card.locked { opacity: .35; filter: grayscale(.8); }
.cards .card:active { transform: scale(.95); }
@media (pointer: coarse) { .cards .card kbd { display: none; } }
@media (min-width: 760px) and (min-height: 521px) { .bottombar { justify-content: center; } .cards { flex: 0 1 460px; } }
.side-btn { flex: none; width: 52px; border-radius: 12px; border: 1px solid rgba(255, 220, 190, 0.16); background: rgba(26, 14, 16, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.side-btn span { font-size: 20px; }
.side-btn .ic { width: 22px; height: 22px; color: #f3e1d6; }
.side-btn.badge .ic { color: #fde047; }
.side-btn small { font: 800 8px var(--head); }
.side-btn.badge::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fde047; box-shadow: 0 0 8px #fde047; }
.side-btn.emo { width: 40px; }
.act {
  --fill: 0%;
  flex: none; width: 78px; border-radius: 14px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px;
  font-family: var(--head); line-height: 1.1;
}
.act b { font-size: 10px; }
.act.ability b { font-size: 9.5px; letter-spacing: -0.02em; }
.act small { font: 600 10px system-ui; opacity: .85; }
.act.ready { background: linear-gradient(160deg, var(--f1), var(--f2)); color: #2a0a02; box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
.act.ready.on { background: linear-gradient(160deg, #bbf7d0, #22c55e); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35); }
.act.ability { background: linear-gradient(0deg, rgba(249, 115, 22, 0.9) var(--fill), rgba(40, 20, 20, 0.9) var(--fill)); color: #fff1e6; border: 1px solid rgba(249, 115, 22, 0.5); }
.act.ability.full { background: radial-gradient(circle at 50% 40%, #fde68a, #f97316 60%, #b91c1c); color: #2a0a02; box-shadow: 0 0 0 2px #fde68a, 0 0 22px rgba(251, 146, 60, 0.75); }

.tip {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(8px, env(safe-area-inset-top)) + 84px);
  width: min(92vw, 420px); padding: 10px 14px; border-radius: 14px; text-align: center; font-size: 14px;
  background: rgba(20, 10, 12, 0.9); border: 1px solid rgba(251, 146, 60, 0.55); box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
  animation: tipIn .4s cubic-bezier(.3, 1.4, .5, 1);
}
@keyframes tipIn { from { transform: translate(-50%, -10px); opacity: 0; } }

.panel {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 92px);
  width: min(96vw, 420px); padding: 12px 14px 14px; border-radius: 18px;
  background: rgba(26, 14, 16, 0.95); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: tipIn .25s ease;
}
.panel .ph { display: flex; align-items: center; gap: 10px; }
.panel .ph img { width: 48px; height: 48px; }
.panel .ph div { flex: 1; display: flex; flex-direction: column; }
.panel .ph b { font: 800 14px var(--head); }
.panel .stars { color: #fde047; letter-spacing: 2px; font-size: 13px; }
.panel .buff { font-size: 11px; color: #fde68a; }
.x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 220, 190, 0.06); }
.pst { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; }
.pst li { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px solid rgba(255, 220, 190, 0.06); padding: 2px 0; }
.pst span { color: var(--muted); }
.pst em { color: #86efac; font-style: normal; }
.l4 { margin: 6px 0 0; font-size: 12px; color: #fde68a; }
.owner { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.pbtn { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.pbtn .btn { min-height: 46px; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.modes { margin-top: 8px; }
.modes button { height: 34px; font-size: 10px; }

/* Pausenmenü zwischen den Wellen */
.brk {
  position: absolute; inset: 0; z-index: 4; pointer-events: auto;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(0deg, rgba(10, 5, 8, 0.8), rgba(10, 5, 8, 0.2));
  animation: fade .3s ease;
}
.brk-card {
  width: 100%; max-width: 560px; max-height: calc(100% - 64px - env(safe-area-inset-top));
  display: flex; flex-direction: column;
  background: rgba(22, 12, 14, 0.96); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(249, 115, 22, 0.12); animation: sheetIn .35s cubic-bezier(.3, 1.2, .5, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) and (min-height: 620px) {
  .brk { align-items: center; }
  .brk-card { border-radius: 22px; border-bottom: 1px solid var(--line); max-height: 88%; padding-bottom: 0; }
}
.brk-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 16px; }
.bh-l { flex: 1; min-width: 0; }
.bh-l h2 {
  margin: 0; font: 800 18px var(--head); line-height: 1.15;
  background: linear-gradient(180deg, #fffbeb, var(--f1) 40%, var(--f2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bh-l p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.bh-gold { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.bh-gold b { display: flex; align-items: center; gap: 4px; font: 800 20px var(--head); color: #fde047; }
.bh-gold b::before { content: ""; width: 20px; height: 20px; background: var(--coin) center/contain no-repeat; }
.bh-gold small { font-size: 10px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.tags em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tags em.cloak { background: rgba(165, 243, 252, 0.15); color: #a5f3fc; }
.tags em.fire { background: rgba(251, 146, 60, 0.18); color: #fdba74; }
.tags em.armor { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.tags em.siege { background: rgba(163, 230, 53, 0.16); color: #bef264; }
.tags em.fly { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.tags em.fast, .tags em.swarm { background: rgba(250, 204, 21, 0.14); color: #fde68a; }
.tags em.boss { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.tabs { display: flex; gap: 6px; padding: 0 14px 8px; }
.tabs:empty { display: none; }
.tabs button { position: relative; flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 220, 190, 0.05); font: 800 12px var(--head); }
.tabs button.on { background: rgba(249, 115, 22, 0.22); border-color: var(--f2); color: #fed7aa; }
.tabs .dot { position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fde047; box-shadow: 0 0 8px #fde047; }
.brk-body { flex: 1; min-height: 110px; overflow-y: auto; padding: 0 14px 8px; overscroll-behavior: contain; }
.brk-body .empty { color: var(--muted); text-align: center; padding: 22px 10px; font-size: 14px; margin: 0; }
.hint-l { color: var(--muted); font-size: 12px; margin: 0 0 6px; }
.up-list { list-style: none; margin: 0; padding: 0; }
.up-list li { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px solid rgba(255, 220, 190, 0.07); }
.up-list img, .up-list .noimg { width: 46px; height: 46px; }
.up-list div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.up-list b { font: 800 12px var(--head); }
.up-list .stars { color: #fde047; font-size: 11px; letter-spacing: 1px; }
.up-list small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list em { color: #86efac; font-style: normal; }
.up-list .max { font: 800 11px var(--head); color: #fde047; padding: 0 10px; }
.up-list .btn.small[data-show] { padding: 0 11px; font-size: 15px; }
.team .mate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; margin: 0 0 10px; border-radius: 14px; background: rgba(255, 220, 190, 0.05); border: 1px solid var(--line); }
.team .mate b { font: 800 14px var(--head); }
.team .mate span:last-child { width: 100%; color: var(--muted); font-size: 12px; }
.emo-row { display: flex; justify-content: space-between; gap: 4px; margin-top: 12px; }
.emo-row button { flex: 1; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 220, 190, 0.06); font-size: 24px; }
.brk-foot { padding: 8px 14px 12px; border-top: 1px solid var(--line); }
.brk-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 2px; font-size: 13px; }
.brk-status .pdot { width: 9px; height: 9px; }
.brk-status .ok { color: #86efac; }
.brk-timer { margin: 0 0 8px; text-align: center; font-size: 11px; color: var(--muted); }
.brk-btns { display: flex; gap: 8px; }
.brk-btns .btn { flex: 1; }
.brk-btns #brk-back { flex: 0 0 32%; }
/* Turmauswahl vor jeder Welle */
.pick-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 8px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; padding: 0; border-radius: 14px; border: 1px dashed rgba(255, 220, 190, 0.25); background: rgba(0, 0, 0, 0.25); color: var(--muted); font-size: 11px; }
.slot.full { border: 1px solid rgba(253, 224, 71, 0.55); background: linear-gradient(180deg, rgba(253, 224, 71, 0.14), rgba(0, 0, 0, 0.2)); color: #fde68a; font: 800 10px var(--head); }
.slot img, .slot .noimg { width: 48px; height: 48px; margin-top: -4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding-bottom: 4px; }
.pk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 220, 190, 0.05); transition: transform .12s; }
.pk:active { transform: scale(.96); }
.pk img, .pk .noimg { width: 60px; height: 60px; }
.pk b { font: 800 11px var(--head); }
.pk small { font-size: 11px; color: var(--muted); }
.pk.on { border-color: var(--tc, #fde047); background: linear-gradient(180deg, rgba(253, 224, 71, 0.16), rgba(253, 224, 71, 0.04)); box-shadow: 0 0 0 1px var(--tc, #fde047), 0 4px 16px rgba(0, 0, 0, 0.4); }
.pk .chk { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #04120a; font: 800 12px system-ui; font-style: normal; }
.pk.locked { opacity: .4; filter: grayscale(.8); }
.shop-list .own { font-size: 11px; color: #86efac; font-weight: 700; white-space: nowrap; }
.brk-btns .btn { margin: 0; min-height: 52px; }
#brk-ready.on { background: linear-gradient(100deg, #bbf7d0, #22c55e); box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35); }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(255, 220, 190, 0.07); }
.shop-list li img { width: 52px; height: 52px; }
.shop-list li div { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: #ecd9cc; }
.shop-list li b { font: 800 12px var(--head); }
.shop-list li small { color: var(--muted); }
.shop-list .lock { font-size: 11px; color: var(--muted); text-align: right; }
.shop-list li:not(.owned) img { filter: saturate(.7); }
.shop-list li.locked { opacity: .55; }
.shop-list li.rec { background: linear-gradient(90deg, rgba(134, 239, 172, 0.08), transparent); }
.shop-list li em { font-style: normal; font-size: 11px; display: block; }
.shop-list li em.good { color: #86efac; }
.shop-list li em.bad { color: #fca5a5; }
.team .mate .lo { color: var(--muted); font-size: 11px; width: 100%; }

/* Schnellbau-Ring um ein angetipptes freies Feld */
.radial { position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none; }
.radial .hexmark { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(253, 224, 71, 0.8); box-shadow: 0 0 14px rgba(253, 224, 71, 0.5); }
.radial button {
  position: absolute; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0;
  border: 2px solid rgba(255, 220, 190, 0.35); background: radial-gradient(circle at 50% 35%, rgba(70, 36, 30, 0.97), rgba(24, 12, 14, 0.97));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); animation: popIn .18s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
.radial button img, .radial button .noimg { width: 38px; height: 38px; margin-top: -4px; }
.radial button span { font: 800 10px var(--head); color: #fde047; margin-top: -3px; }
.radial button:disabled { opacity: .45; filter: grayscale(.7); }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } }
/* Infokarte zu einem angetippten Gegner */
.einfo {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(8px, env(safe-area-inset-top)) + 84px); z-index: 3;
  width: min(92vw, 360px); display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px;
  background: rgba(20, 10, 16, 0.94); border: 1px solid rgba(192, 132, 252, 0.45); animation: tipIn .25s ease; font-size: 12px;
}
.einfo img, .einfo .noimg { width: 46px; height: 46px; flex: none; }
.einfo b { font: 800 13px var(--head); display: block; }
.einfo p { margin: 2px 0 0; color: #e9d5ff; }
.einfo .hpb { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.einfo .hpb i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #facc15, #a3e635); }
/* Lebensbalken eines Bosses */
.bossbar { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(8px, env(safe-area-inset-top)) + 70px); z-index: 2; width: min(80vw, 340px); text-align: center; pointer-events: none; }
.bossbar b { font: 800 12px var(--head); color: #fca5a5; text-shadow: 0 1px 3px #000; letter-spacing: .06em; }
.bossbar .bb { display: block; height: 9px; margin-top: 3px; border-radius: 99px; background: rgba(20, 6, 8, 0.85); border: 1px solid rgba(248, 113, 113, 0.6); overflow: hidden; }
.bossbar .bb i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #7f1d1d, #ef4444 60%, #fca5a5); transition: width .2s; }
.emotes { position: absolute; right: 8px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 92px); display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(20, 10, 12, 0.9); border: 1px solid var(--line); pointer-events: auto; }
.emotes button { width: 42px; height: 42px; border: 0; background: none; font-size: 24px; }
.emotes .gift { display: flex; flex-direction: column; align-items: center; justify-content: center; width: auto; min-width: 54px; padding: 0 6px; border-radius: 12px; background: rgba(250, 204, 21, 0.14); border: 1px solid rgba(250, 204, 21, 0.4); font: 800 11px var(--head); color: #fde047; }
.emotes .gift small { font: 600 9px system-ui; color: #fde68a; }
#emo-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.emo-pop { position: absolute; right: 70px; bottom: 120px; display: flex; flex-direction: column; align-items: center; animation: emoRise 2.6s cubic-bezier(.2, .7, .3, 1) forwards; }
.emo-pop .em { font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.emo-pop .who { font: 800 11px var(--head); text-shadow: 0 1px 3px #000; }
@keyframes emoRise { 0% { transform: translateY(30px) scale(.4); opacity: 0; } 15% { transform: none; opacity: 1; } 100% { transform: translateY(-200px); opacity: 0; } }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 5, 8, 0.7); padding: 16px; z-index: 5; }
#replaced { position: fixed; z-index: 30; }
.small-card { max-width: 340px; text-align: center; }
.small-card h2 { font: 800 20px var(--head); margin: 0 0 6px; }
.small-card p { color: var(--muted); }

/* ---------- Ergebnis ---------- */

#s-end { background: rgba(10, 5, 8, 0.45); }
.end-title { font: 800 24px var(--head); text-align: center; margin: 4px 0 4px; color: #fca5a5; }
.end.win .end-title { color: #fde047; text-shadow: 0 0 24px rgba(253, 224, 71, 0.5); }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.big-stats div { text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255, 220, 190, 0.05); border: 1px solid var(--line); }
.big-stats b { display: block; font: 800 22px var(--head); color: #fde68a; }
.big-stats span { font-size: 11px; color: var(--muted); }
.lesson { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(248, 113, 113, 0.35); font-size: 13px; }
.lesson ul { list-style: none; margin: 6px 0 0; padding: 0; }
.lesson li { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.lesson img, .lesson .noimg { width: 40px; height: 40px; flex: none; }
.lesson small { display: block; color: var(--muted); font-size: 12px; }
.mvp { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(253, 224, 71, 0.08); border: 1px solid rgba(253, 224, 71, 0.3); font-size: 13px; }
.mvp img { width: 50px; height: 50px; }
.mvp b { display: block; font: 800 11px var(--head); color: #fde047; }
.pstats { list-style: none; padding: 0; margin: 10px 0; font-size: 13px; }
.pstats li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 220, 190, 0.07); }
.pstats li span:last-child { color: var(--muted); font-size: 12px; text-align: right; }

/* ---------- Meldungen ---------- */

#toast {
  position: fixed; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translate(-50%, -160%);
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: rgba(36, 18, 18, 0.96);
  border: 1px solid rgba(251, 146, 60, 0.5); font-size: 14px; text-align: center; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
  z-index: 40; pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); }
#nogl { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 380px); padding: 18px; border-radius: 16px; background: #7f1d1d; color: #fff; text-align: center; z-index: 50; }
#net { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 10px 16px; border-radius: 99px; background: #7f1d1d; color: #fff; font-size: 13px; z-index: 40; }
dialog { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #2a1517, #140b0e); color: var(--ink); padding: 22px 18px 18px; max-width: 330px; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); }
dialog p b { font: 800 16px var(--head); }
dialog .row .btn { margin-top: 14px; }
dialog::backdrop { background: rgba(10, 5, 8, 0.7); }
dialog small { color: var(--muted); }

@media (orientation: landscape) and (max-height: 520px) {
  .topbar { grid-template-columns: auto 1fr auto auto; grid-template-rows: auto; padding-bottom: 4px; }
  .tbtns { grid-column: auto; }
  .bottombar { left: auto; right: 0; top: 60px; bottom: 0; width: 132px; flex-direction: column; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: linear-gradient(270deg, rgba(10, 5, 8, 0.95), rgba(10, 5, 8, 0.6)); }
  .cards { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .side-btn, .act { width: auto; min-height: 44px; }
  .side-btn.emo { width: auto; }
  .panel { bottom: 10px; left: calc(50% - 66px); }
  .brk { align-items: center; padding-right: 132px; }
  .brk-card { border-radius: 18px; border-bottom: 1px solid var(--line); max-height: calc(100% - 12px); padding-bottom: 0; }
  .brk-head { padding-top: 8px; }
  .brk-head h2 { font-size: 15px; }
  .tabs button { height: 34px; }
  .brk-foot { padding: 6px 12px 8px; }
  .brk-btns .btn { min-height: 42px; }
  .emotes { right: 140px; bottom: 10px; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { .emo-pop, .panel, .tip, .brk-card { animation: none; } }
