/* Glyphra – "Arkane Nacht" */
:root {
  --bg0: #07060f; --bg1: #0e0c1f; --bg2: #17142e; --panel: rgba(24, 20, 48, .72); --panel2: rgba(36, 30, 70, .8);
  --line: rgba(233, 196, 106, .22); --gold: #e9c46a; --gold2: #f6dfa0; --gold3: #a8823a;
  --txt: #ece6ff; --dim: #a59fc4; --bad: #ff5d73; --good: #5fe39b;
  --W: #f3d27a; --U: #4fa8ff; --B: #a46bd8; --R: #ff6a3d; --G: #5fd068; --C: #b9b3c9;
  --radius: 14px; --shadow: 0 10px 40px rgba(0, 0, 0, .55);
  --f-title: 'Cinzel', 'Cinzel Decorative', Georgia, serif; --f-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-body); color: var(--txt); background: var(--bg0); overflow-x: hidden;
}
/* v0.21: feste Himmelsebene in der GRÖSSTEN Viewport-Höhe (lvh) – vorher hing der Verlauf an der sichtbaren Höhe,
   die sich am Handy mit Adressleiste/Tastatur ändert → der Hintergrund „sprang“ beim Verlassen des Chats oder Schließen einer Karte. */
#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; background-image:
    radial-gradient(1200px 700px at 15% -10%, rgba(120, 70, 220, .28), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(40, 120, 255, .18), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(255, 120, 60, .14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0)); }
body::before { /* Sternenstaub */
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 80%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #ffe9b066, transparent), radial-gradient(1px 1px at 85% 15%, #fff7, transparent),
    radial-gradient(1px 1px at 10% 85%, #fff5, transparent), radial-gradient(1.2px 1.2px at 55% 10%, #cfe3ff77, transparent);
  background-size: 380px 380px, 510px 510px, 290px 290px, 640px 640px, 420px 420px, 350px 350px;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 380px 760px, -510px 510px, 290px -290px, 640px 640px, -420px 840px, 350px 350px; } }
#app { position: relative; z-index: 1; min-height: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--gold2); }
.hidden { display: none !important; }

/* ---------- Buttons & Panels ---------- */
.btn {
  appearance: none; border: 1px solid var(--line); background: linear-gradient(180deg, #2a2350, #1b1736);
  padding: .62em 1.15em; border-radius: 999px; cursor: pointer; font-weight: 700; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 0, 0, .35); transition: transform .12s, filter .15s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.gold { background: linear-gradient(180deg, #f6dfa0, #d3a64a 55%, #a8823a); color: #2a1a00; border-color: #ffe9b0; text-shadow: 0 1px 0 #fff6; box-shadow: 0 0 22px rgba(233, 196, 106, .35), inset 0 1px 0 #fff8; }
.btn.danger { background: linear-gradient(180deg, #5a1d2a, #3a1020); border-color: #ff5d7344; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.small { padding: .38em .8em; font-size: .9em; }
.btn.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 34px rgba(233, 196, 106, .75), inset 0 1px 0 #fff8; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
input, select, textarea {
  font: inherit; color: var(--txt); background: rgba(10, 8, 24, .7); border: 1px solid var(--line); border-radius: 10px; padding: .6em .8em; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--gold3); }
label { display: block; font-size: .85em; color: var(--dim); margin: .8em 0 .3em; }
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 999px; font-size: .78em; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.chip.turn { background: linear-gradient(90deg, #f6dfa0, #d3a64a); color: #2a1a00; animation: pulse 1.6s infinite; }
.chip.win { background: #1f5a3c; } .chip.lose { background: #5a1f2a; }

/* ---------- Kopf / Navigation ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8em; padding: .7em 1em; background: linear-gradient(180deg, rgba(7, 6, 15, .92), rgba(7, 6, 15, .6)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--f-title); font-weight: 900; font-size: 1.45em; letter-spacing: .18em; background: linear-gradient(180deg, #fff3c9, #e9c46a 50%, #a8823a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(233, 196, 106, .45)); cursor: pointer; white-space: nowrap; }
.logo small { font-size: .45em; letter-spacing: .3em; display: block; color: var(--dim); -webkit-text-fill-color: var(--dim); filter: none; }
.nav { display: flex; gap: .3em; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav button { background: none; border: 0; padding: .5em .8em; border-radius: 999px; cursor: pointer; color: var(--dim); font-weight: 700; white-space: nowrap; }
.nav button.on { color: var(--gold2); background: rgba(233, 196, 106, .1); box-shadow: inset 0 0 0 1px var(--line); }
.page { max-width: 1180px; margin: 0 auto; padding: 1.2em 16px 5em; }
h1, h2, h3 { font-family: var(--f-title); letter-spacing: .06em; margin: .2em 0 .6em; }
h2 { font-size: 1.35em; color: var(--gold2); }
.sub { color: var(--dim); }

/* ---------- Startseite ---------- */
.hero { text-align: center; padding: 2.5em 1em 1.5em; }
.hero .big { font-family: var(--f-title); font-weight: 900; font-size: clamp(2.8em, 11vw, 5.5em); letter-spacing: .2em; margin: 0; background: linear-gradient(180deg, #fff6d6, #e9c46a 45%, #8a6424); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(233, 196, 106, .4)); }
.orbs { display: flex; justify-content: center; gap: .8em; margin: .6em 0 1.2em; }
.orbs .pip { width: 2.1em; height: 2.1em; animation: float 4s ease-in-out infinite; }
.orbs .pip:nth-child(2) { animation-delay: -.8s } .orbs .pip:nth-child(3) { animation-delay: -1.6s } .orbs .pip:nth-child(4) { animation-delay: -2.4s } .orbs .pip:nth-child(5) { animation-delay: -3.2s }
@keyframes float { 50% { transform: translateY(-7px); } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1em; }
.gamecard { padding: 1em 1.1em; display: flex; gap: 1em; align-items: center; cursor: pointer; transition: transform .15s, border-color .2s; }
.gamecard:hover { transform: translateY(-2px); border-color: var(--gold3); }
.gamecard.myturn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold3), 0 0 30px rgba(233, 196, 106, .18), var(--shadow); }
.gamecard .vs { font-family: var(--f-title); font-weight: 700; font-size: 1.1em; }
.gamecard .meta { color: var(--dim); font-size: .88em; margin-top: .2em; }
.gamecard .lifes { margin-left: auto; text-align: right; font-family: var(--f-title); font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-title); font-weight: 900; font-size: 1.2em; background: conic-gradient(var(--W), var(--U), var(--B), var(--R), var(--G), var(--W)); color: #120d22; flex: none; box-shadow: 0 0 16px rgba(233, 196, 106, .3); }
.avatar span { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); color: var(--gold2); display: grid; place-items: center; }
.section { margin: 1.6em 0; }
.row { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; color: var(--dim); padding: 2em 1em; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Karten ---------- */
.card {
  --w: 220px; width: var(--w); aspect-ratio: 63 / 88; container-type: inline-size; position: relative; border-radius: calc(var(--w) * .046); flex: none;
  padding: 0; background: linear-gradient(145deg, #1c1830, #0c0a18); box-shadow: 0 6px 22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .6); user-select: none;
  --s1: var(--C); --s2: var(--C);
}
.card.s-W { --s1: var(--W); --s2: #fff5d6; } .card.s-U { --s1: var(--U); --s2: #bfe0ff; } .card.s-B { --s1: var(--B); --s2: #e3c9ff; }
.card.s-R { --s1: var(--R); --s2: #ffd0b8; } .card.s-G { --s1: var(--G); --s2: #d2ffc9; } .card.s-C { --s1: #b9b3c9; --s2: #ece7f7; }
.card.s-M { --s1: var(--gold); --s2: #fff3c9; }
.card.s-WU { --m1: var(--W); --m2: var(--U); } .card.s-UB { --m1: var(--U); --m2: var(--B); } .card.s-BR { --m1: var(--B); --m2: var(--R); }
.card.s-RG { --m1: var(--R); --m2: var(--G); } .card.s-GW { --m1: var(--G); --m2: var(--W); } .card.s-WB { --m1: var(--W); --m2: var(--B); }
.card.s-UR { --m1: var(--U); --m2: var(--R); } .card.s-BG { --m1: var(--B); --m2: var(--G); } .card.s-RW { --m1: var(--R); --m2: var(--W); } .card.s-GU { --m1: var(--G); --m2: var(--U); }
.c-frame {
  position: absolute; inset: 2.2cqw; border-radius: 3.4cqw; display: flex; flex-direction: column; padding: 2.4cqw; gap: 1.6cqw; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--s1) 26%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--s1) 18%, #15122a), #0f0d1f 70%);
  border: .9cqw solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 .7cqw color-mix(in srgb, var(--s1) 70%, #000), inset 0 0 6cqw rgba(0, 0, 0, .55);
}
.card.s-M .c-frame { box-shadow: 0 0 0 .7cqw var(--gold3), inset 0 0 6cqw rgba(0, 0, 0, .55); background: linear-gradient(120deg, color-mix(in srgb, var(--m1) 30%, #15122a), color-mix(in srgb, var(--m2) 30%, #15122a)); }
.card.r-M .c-frame::after, .card.r-R .c-frame::after { /* Foil-Schimmer */
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 45%, rgba(160, 220, 255, .4) 50%, transparent 62%);
  background-size: 250% 100%; animation: foil 5.5s ease-in-out infinite;
}
.card.r-R .c-frame::after { opacity: .18; }
@keyframes foil { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.c-head { display: flex; align-items: center; gap: 1.5cqw; padding: 1.2cqw 2.4cqw; border-radius: 2.2cqw; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .25)); border: .4cqw solid color-mix(in srgb, var(--s1) 55%, transparent); }
.c-name { font-family: var(--f-title); font-weight: 700; font-size: 6.3cqw; line-height: 1.05; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 .4cqw 1cqw #000; }
.c-cost { display: flex; gap: .7cqw; flex: none; }
.c-cost .pip { width: 7.4cqw; height: 7.4cqw; font-size: 5.2cqw; }
.c-art { flex: none; aspect-ratio: 4 / 3; border-radius: 2cqw; background-size: cover; background-position: center; border: .5cqw solid rgba(0, 0, 0, .7); box-shadow: 0 0 0 .4cqw color-mix(in srgb, var(--s1) 50%, transparent); position: relative; overflow: hidden; }
.c-art.ph, .m-art.ph {
  display: grid; place-items: center; align-content: center;
  background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--s1) 45%, transparent), transparent 70%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .035) 0 10deg, transparent 10deg 20deg), #110e22;
}
.card.s-M .c-art.ph { background: radial-gradient(60% 70% at 30% 40%, color-mix(in srgb, var(--m1) 50%, transparent), transparent 70%), radial-gradient(60% 70% at 70% 60%, color-mix(in srgb, var(--m2) 50%, transparent), transparent 70%), #110e22; }
.ph-glyph { font-size: 22cqw; line-height: 1; color: var(--s2); text-shadow: 0 0 6cqw var(--s1), 0 0 2cqw var(--s1); opacity: .9; }
.ph-sub { font-family: var(--f-title); font-size: 4.2cqw; color: var(--s2); opacity: .7; letter-spacing: .15em; text-transform: uppercase; margin-top: 2cqw; }
.c-type { display: flex; align-items: center; gap: 1.5cqw; font-size: 4.8cqw; font-weight: 700; padding: .9cqw 2.4cqw; border-radius: 2cqw; background: rgba(0, 0, 0, .35); border: .4cqw solid color-mix(in srgb, var(--s1) 40%, transparent); }
.c-type span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gem { width: 4.4cqw; height: 4.4cqw; transform: rotate(45deg); border-radius: .8cqw; background: #cfd3dd; box-shadow: 0 0 1.5cqw #0008; flex: none; }
.r-U .gem { background: linear-gradient(135deg, #e7f1ff, #7aa4d8); } .r-R .gem { background: linear-gradient(135deg, #fff1b8, #d39b2a); box-shadow: 0 0 2.5cqw #e9c46a; }
.r-M .gem { background: linear-gradient(135deg, #ffd1a6, #ff5a2a); box-shadow: 0 0 3cqw #ff7a3d; } .r-L .gem { display: none; }
.c-text { flex: 1; min-height: 0; overflow: hidden; font-size: 5.7cqw; line-height: 1.24; padding: 2cqw 2.6cqw; border-radius: 2cqw; background: linear-gradient(180deg, rgba(250, 244, 230, .95), rgba(232, 222, 200, .95)); color: #1d1730; }
.c-text p { margin: 0 0 1.4cqw; }
.c-text .flavor { font-style: italic; color: #5a4f6e; font-size: 5.1cqw; }
.c-text .pip { width: 4.8cqw; height: 4.8cqw; font-size: 3.4cqw; vertical-align: -.8cqw; }
.land-sym { display: flex; align-items: center; justify-content: center; gap: 3cqw; height: 100%; } .land-sym .pip { width: 18cqw; height: 18cqw; }
.land-sym:has(.pip + .pip) .pip { width: 13cqw; height: 13cqw; }
.c-pt { position: absolute; right: 2.4cqw; bottom: 2cqw; font-family: var(--f-title); font-weight: 900; font-size: 7.4cqw; padding: .6cqw 3cqw; border-radius: 2.4cqw; background: linear-gradient(180deg, #2a2448, #120f24); border: .6cqw solid color-mix(in srgb, var(--s1) 75%, #000); color: #fff; box-shadow: 0 1cqw 3cqw #000a; }
.c-pt.up { color: var(--good); } .c-pt.down { color: var(--bad); }
.card.back { background: radial-gradient(circle at 50% 45%, #3b2a6e, #120d26 70%); }
.back-inner { position: absolute; inset: 5cqw; border-radius: 4cqw; border: 1.2cqw solid var(--gold3); display: grid; place-items: center; background: repeating-conic-gradient(from 0deg, rgba(233, 196, 106, .08) 0 7.5deg, transparent 7.5deg 15deg); }
.back-inner span { font-size: 30cqw; color: var(--gold); text-shadow: 0 0 8cqw var(--gold); }

/* Manasymbole */
.pip { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; flex: none; font-weight: 900; font-family: var(--f-body); box-shadow: 0 .08em .2em #0009, inset 0 -.08em .15em #0004; }
.pip svg { width: 72%; height: 72%; fill: #1b1426; stroke: #1b1426; }
.pip-W { background: radial-gradient(circle at 35% 30%, #fffbe8, #f3d27a); } .pip-U { background: radial-gradient(circle at 35% 30%, #d9eeff, #4fa8ff); }
.pip-B { background: radial-gradient(circle at 35% 30%, #e8d6ff, #8a52c8); } .pip-R { background: radial-gradient(circle at 35% 30%, #ffe1d1, #ff6a3d); }
.pip-G { background: radial-gradient(circle at 35% 30%, #dcffd6, #4fc05a); } .pip-N, .pip-X { background: radial-gradient(circle at 35% 30%, #f2eef8, #b0aac0); color: #1b1426; }
.pip-T { background: radial-gradient(circle at 35% 30%, #f2eef8, #9d97ad); }
.pip-W svg { fill: #6a4a00; stroke: #6a4a00; }

/* ---------- Spielfeld ---------- */
.board { display: flex; flex-direction: column; height: 100dvh; max-width: 1400px; margin: 0 auto; position: relative; }
.hud { display: flex; align-items: center; gap: .6em; padding: .45em .8em; background: linear-gradient(90deg, rgba(20, 16, 40, .85), rgba(20, 16, 40, .5)); border-bottom: 1px solid var(--line); flex: none; }
.hud.me { border-bottom: 0; border-top: 1px solid var(--line); }
.hud .who { font-family: var(--f-title); font-weight: 700; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.hud .who small { color: var(--dim); font-family: var(--f-body); font-weight: 400; font-size: .75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.life { --c: var(--gold); position: relative; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--f-title); font-weight: 900; font-size: 1.35em; cursor: default;
  background: radial-gradient(circle at 35% 30%, #3a2f6a, #120e26); box-shadow: 0 0 0 2px var(--gold3), 0 0 18px rgba(233, 196, 106, .3), inset 0 0 14px #0009; }
.life.low { color: var(--bad); box-shadow: 0 0 0 2px var(--bad), 0 0 22px rgba(255, 93, 115, .45), inset 0 0 14px #0009; }
.life.targetable { cursor: pointer; }
@keyframes tglow { 50% { box-shadow: 0 0 0 3px #ff8a5c, 0 0 30px #ff6a3d; } }
.counters { display: flex; gap: .35em; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.counter { display: inline-flex; align-items: center; gap: .25em; padding: .2em .55em; border-radius: 9px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); font-weight: 700; font-size: .85em; cursor: pointer; }
.counter.seal { border-color: #b98cff66; color: #dcc6ff; }
.zone { flex: 1 1 0; min-height: 0; overflow: auto; padding: .4em .6em; display: flex; flex-direction: column; gap: .35em; scrollbar-width: thin; }
.zone.opp { justify-content: flex-start; } .zone.mine { justify-content: flex-end; }
.lane { display: flex; flex-wrap: wrap; gap: .45em; align-items: center; justify-content: center; min-height: 10px; }
.lands { display: flex; flex-wrap: wrap; gap: .35em; justify-content: center; }
.landchip { display: inline-flex; align-items: center; gap: .3em; padding: .22em .55em .22em .3em; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); font-weight: 800; font-size: .9em; }
.landchip .pip { width: 1.35em; height: 1.35em; }
.landchip .t { color: var(--dim); font-weight: 400; font-size: .85em; }
.landchip.all-tapped { opacity: .5; }
.mid { flex: none; display: flex; align-items: center; gap: .6em; padding: .4em .8em; background: linear-gradient(90deg, transparent, rgba(233, 196, 106, .08), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 52px; }
.phases { display: flex; gap: .2em; font-size: .7em; color: var(--dim); }
.phases span { padding: .2em .45em; border-radius: 6px; white-space: nowrap; }
.phases span.on { color: #2a1a00; background: var(--gold); font-weight: 800; }
.prompt { flex: 1; text-align: center; font-weight: 700; color: var(--gold2); font-size: .95em; min-width: 0; }
.actions { display: flex; gap: .4em; flex-wrap: wrap; justify-content: flex-end; }

.mini {
  --w: 92px; width: var(--w); aspect-ratio: 5 / 6.4; position: relative; border-radius: 10px; cursor: pointer; flex: none; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), filter .2s, box-shadow .2s;
  background: #120f22; box-shadow: 0 0 0 2px color-mix(in srgb, var(--s1) 75%, #000), 0 6px 14px rgba(0, 0, 0, .55); overflow: visible; --s1: var(--C);
}
.mini.s-W { --s1: var(--W) } .mini.s-U { --s1: var(--U) } .mini.s-B { --s1: var(--B) } .mini.s-R { --s1: var(--R) } .mini.s-G { --s1: var(--G) } .mini.s-M { --s1: var(--gold) }
.mini .m-art { position: absolute; inset: 0; border-radius: 10px; background-size: cover; background-position: center 30%; }
.mini .m-art.ph .ph-glyph { font-size: 2.3em; }
.mini::after { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85)); pointer-events: none; }
.m-name { position: absolute; left: 5px; right: 5px; bottom: 20px; font-size: .62em; font-weight: 800; line-height: 1.05; z-index: 2; text-shadow: 0 1px 2px #000; max-height: 2.2em; overflow: hidden; }
.m-kw { position: absolute; left: 3px; top: 3px; display: flex; flex-wrap: wrap; gap: 1px; z-index: 2; max-width: 70%; }
.m-kw i { font-style: normal; font-size: .7em; background: rgba(0, 0, 0, .65); border-radius: 5px; padding: 0 2px; line-height: 1.3; }
.m-pt { position: absolute; right: -4px; bottom: -6px; z-index: 3; font-family: var(--f-title); font-weight: 900; font-size: .9em; padding: .05em .45em; border-radius: 8px; background: linear-gradient(180deg, #2c2650, #120f24); border: 2px solid color-mix(in srgb, var(--s1) 80%, #000); }
.m-pt.up { color: var(--good) } .m-pt.down { color: var(--bad) }
.m-cnt { position: absolute; right: -4px; top: -6px; z-index: 3; background: var(--good); color: #062; font-weight: 900; font-size: .72em; padding: 0 .35em; border-radius: 6px; }
.m-token { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-size: .5em; letter-spacing: .1em; text-transform: uppercase; background: rgba(0, 0, 0, .6); padding: 0 4px; border-radius: 4px; z-index: 2; white-space: nowrap; display: none; }
.m-badge { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); z-index: 4; background: var(--gold); color: #2a1a00; font-weight: 900; font-size: .64em; padding: .1em .5em; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 10px var(--gold); }
.m-att { position: absolute; right: 3px; top: 3px; z-index: 2; font-size: .7em; }
.m-sick { position: absolute; right: 3px; top: 18px; z-index: 2; font-size: .7em; opacity: .85; }
.mini.tapped { transform: rotate(14deg) translateY(4px); filter: saturate(.35) brightness(.7); }

@keyframes sel { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(233, 196, 106, .8); } }

.mini.chosen, .mini.attacking { box-shadow: 0 0 0 3px #ff8a5c, 0 0 26px #ff6a3d; transform: translateY(-10px); }
.mini.attacking.tapped { transform: rotate(14deg) translateY(-10px); }
.mini.blocking { box-shadow: 0 0 0 3px #6ab8ff, 0 0 26px #4fa8ff; transform: translateY(8px); }
.mini.enter { animation: enter .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes enter { from { transform: scale(.3) translateY(30px); opacity: 0; filter: brightness(3); } }

/* Hand */
.hand { flex: none; display: flex; justify-content: center; padding: .4em .6em calc(.5em + env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: visible; scrollbar-width: none; min-height: 140px; background: linear-gradient(0deg, rgba(7, 6, 15, .95), transparent); }
.hand .card { --w: 104px; margin: 0 -14px; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3); cursor: pointer; }
.hand .card:hover { transform: translateY(-14px) scale(1.05); z-index: 5; }
.hand .card.playable { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(233, 196, 106, .6), 0 6px 22px rgba(0, 0, 0, .6); }
.hand .card.chosen { transform: translateY(-22px); box-shadow: 0 0 0 3px #ff8a5c, 0 0 26px #ff6a3d; }
.hand .card.dim { filter: brightness(.6) saturate(.7); }
.oppHand { display: flex; } .oppHand .card { --w: 22px; margin-left: -10px; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 12, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0 } }
.zoom { display: flex; flex-direction: column; align-items: center; gap: 1em; max-height: 100%; overflow: hidden auto; scrollbar-width: none; } /* x: hidden – das Überschwingen der Pop-Animation ließ kurz eine Scrollleiste aufblitzen; Leiste ganz aus: bei manchen Karten ist der Inhalt durch Rundung 1 px höher (576/575) → Leiste blitzte auf. Scrollen per Rad/Finger geht weiter. */
.zoom::-webkit-scrollbar { display: none; }
.zoom .card { --w: min(330px, 82vw); animation: pop .25s cubic-bezier(.2, .9, .3, 1); } /* kein Überschwingen über 100 % – sonst blitzt bei kurzen Karten eine Scrollleiste auf */
@keyframes pop { from { transform: scale(.8); opacity: 0 } }
.zoom .zside { display: contents; } /* Hochformat: wie vorher untereinander; quer (siehe unten): rechte Spalte neben der Karte */
.zoom .info { max-width: 360px; font-size: .9em; color: var(--dim); text-align: center; }
.dialog { width: min(560px, 100%); max-height: 90dvh; overflow: auto; padding: 1.2em; }
.dialog .cards { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; margin: 1em 0; }
.dialog .cards .card { --w: 120px; cursor: pointer; transition: transform .15s; }
.dialog .cards .card.chosen { transform: translateY(-8px); box-shadow: 0 0 0 3px #ff8a5c, 0 0 22px #ff6a3d; }
.dialog .cards .card.bottom { filter: grayscale(.8) brightness(.55); }
.reveal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; cursor: pointer; }
.reveal .card { --w: min(260px, 64vw); animation: reveal 1.7s cubic-bezier(.2, .9, .3, 1) forwards; }
.reveal .who { position: absolute; top: 14%; font-family: var(--f-title); font-weight: 700; color: var(--gold2); text-shadow: 0 0 12px #000; animation: fade .3s; }
@keyframes reveal { 0% { transform: scale(.4) rotateY(80deg); opacity: 0 } 18% { transform: scale(1.04); opacity: 1 } 80% { transform: scale(1); opacity: 1 } 100% { transform: scale(.85) translateY(-30px); opacity: 0 } }
.float { position: fixed; z-index: 70; pointer-events: none; font-family: var(--f-title); font-weight: 900; font-size: 1.6em; color: var(--bad); text-shadow: 0 0 10px #000, 0 0 2px #000; animation: floatup 1.3s ease-out forwards; }
.float.heal { color: var(--good); }
@keyframes floatup { from { transform: translate(-50%, 0) scale(.6); opacity: 0 } 20% { transform: translate(-50%, -10px) scale(1.2); opacity: 1 } to { transform: translate(-50%, -60px) scale(1); opacity: 0 } }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-5px) } 40% { transform: translateX(5px) } 60% { transform: translateX(-3px) } 80% { transform: translateX(3px) } }
.toast { position: fixed; left: 50%; bottom: 22%; transform: translateX(-50%); z-index: 90; padding: .7em 1.2em; border-radius: 12px; background: rgba(20, 14, 40, .95); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; animation: fade .2s; max-width: 90vw; text-align: center; }
.toast.err { border-color: var(--bad); color: #ffd0d6; }
.banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 40; font-family: var(--f-title); font-weight: 900; font-size: clamp(1.6em, 7vw, 3em); letter-spacing: .1em; color: var(--gold2); text-shadow: 0 0 30px rgba(233, 196, 106, .8), 0 0 4px #000; pointer-events: none; animation: banner 1.6s ease-out forwards; white-space: nowrap; }
@keyframes banner { from { opacity: 0; transform: translate(-50%, -50%) scale(.6) } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05) } 75% { opacity: 1 } to { opacity: 0; transform: translate(-50%, -60%) } }
.logpanel { position: fixed; right: 0; top: 0; bottom: 0; width: min(380px, 92vw); z-index: 55; padding: 1em; overflow: auto; border-radius: 0; animation: slidein .25s; }
@keyframes slidein { from { transform: translateX(100%) } }
.logpanel .entry { padding: .35em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .9em; }
.logpanel .entry.turn { color: var(--gold2); font-family: var(--f-title); font-weight: 700; margin-top: .6em; }
.logpanel .entry.new { background: linear-gradient(90deg, rgba(233, 196, 106, .14), transparent); }
.logpanel .entry .peek { color: var(--gold2); text-decoration: underline dotted; cursor: pointer; }
.endscreen { text-align: center; padding: 2em 1.4em; }
.endscreen .big { font-family: var(--f-title); font-weight: 900; font-size: clamp(1.7em, 9vw, 2.6em); letter-spacing: .12em; color: var(--gold2); text-shadow: 0 0 30px rgba(233, 196, 106, .7); }

/* ---------- Deckbau & Sammlung ---------- */
.filters { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; margin-bottom: .8em; }
.filters .pip { width: 1.8em; height: 1.8em; cursor: pointer; opacity: .35; transition: opacity .15s, transform .15s; }
.filters [data-sph].on .pip { opacity: 1; transform: scale(1.08); box-shadow: 0 0 12px rgba(233, 196, 106, .5); }
.filters [data-sph] { cursor: pointer; }
.filters input { max-width: 220px; }
.filters select { width: auto; }
.pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8em; }
.pool .card { --w: 100%; cursor: pointer; transition: transform .15s; }
.pool .card:hover { transform: translateY(-4px); }
.pool .slot { position: relative; }
.pool .slot .cnt { position: absolute; top: -6px; right: -6px; z-index: 3; min-width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: #2a1a00; font-weight: 900; box-shadow: 0 0 12px var(--gold); }
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 1em; align-items: start; }
.decklist { position: sticky; top: 70px; padding: 1em; max-height: calc(100dvh - 90px); overflow: auto; }
.decklist .line { display: flex; align-items: center; gap: .5em; padding: .3em .4em; border-radius: 8px; cursor: pointer; font-size: .92em; }
.decklist .line:hover { background: rgba(255, 255, 255, .06); }
.decklist .line .n { font-weight: 900; color: var(--gold2); width: 1.6em; }
.decklist .line .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.decklist .line .pip { width: 1.05em; height: 1.05em; font-size: .7em; }
.decklist .grp { font-family: var(--f-title); color: var(--dim); font-size: .8em; letter-spacing: .1em; margin: .8em 0 .2em; text-transform: uppercase; }
.curve { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin: .6em 0; }
.curve div { flex: 1; background: linear-gradient(180deg, var(--gold2), var(--gold3)); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.curve div span { position: absolute; bottom: -1.3em; left: 0; right: 0; text-align: center; font-size: .7em; color: var(--dim); }
.curve div b { position: absolute; top: -1.3em; left: 0; right: 0; text-align: center; font-size: .7em; }
.deckcount { font-family: var(--f-title); font-weight: 900; font-size: 1.4em; }
.deckcount.ok { color: var(--good); } .deckcount.bad { color: var(--bad); }
.decktile { padding: 1em; cursor: pointer; display: flex; flex-direction: column; gap: .3em; transition: transform .15s; position: relative; overflow: hidden; }
.decktile:hover { transform: translateY(-2px); border-color: var(--gold3); }
/* v0.25: Reiter über Deck-Listen (Eigene · Set 1 · Set 2) */
.dtabs { display: flex; gap: .35em; flex-wrap: wrap; margin: .2em 0 .7em; }
.dtabs button { font: inherit; font-size: .86em; font-weight: 700; color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid rgba(220, 190, 120, .18); border-radius: 999px; padding: .38em .9em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dtabs button small { opacity: .65; font-weight: 600; margin-left: .15em; }
.dtabs button:hover { color: var(--gold2); border-color: var(--gold3); }
.dtabs button.on { color: #2a1a00; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; }
.dtabs button.on small { opacity: .8; }
.decktile .name { font-family: var(--f-title); font-weight: 700; font-size: 1.1em; }
.decktile .cols { display: flex; gap: .25em; }
.decktile .chip { align-self: flex-start; }
.decktile .cols .pip { width: 1.4em; height: 1.4em; }
.decktile.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(233, 196, 106, .3); }
.rules { line-height: 1.55; max-width: 820px; }
.rules h3 { color: var(--gold2); margin-top: 1.6em; }
.rules .kw { display: grid; grid-template-columns: 170px 1fr; gap: .3em 1em; }
.rules .kw b { color: var(--gold2); }
.rules .pip { vertical-align: -.2em; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .decklist { position: static; max-height: none; }
  .pool { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5em; }
  .phases { display: none; }
}
@media (max-width: 560px) {
  .dialog .cards .card { --w: 98px; }
  .dialog .cards { gap: .4em; }
  .dialog { padding: 1em .8em; }
  .mini { --w: 66px; }
  .m-name { font-size: .52em; bottom: 16px; }
  .m-pt { font-size: .78em; }
  .hand .card { --w: 86px; margin: 0 -12px; }
  .hand { min-height: 122px; }
  .life { width: 44px; height: 44px; font-size: 1.15em; }
  .hud { padding: .35em .5em; gap: .4em; }
  .counter { font-size: .75em; padding: .15em .4em; }
  .logo { font-size: 1.15em; }
  .nav button { padding: .45em .55em; font-size: .9em; }
  .mid { padding: .35em .5em; }
  .prompt { font-size: .85em; }
}
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) {
  .mini { --w: 112px; }
  .hand .card { --w: 150px; margin: 0 -8px; }
  .hand .card:hover { transform: translateY(-40px) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* Handy: Navigation als Tab-Leiste unten */
@media (max-width: 700px) {
  .topbar { justify-content: center; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 6, 15, .94); }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; justify-content: space-around; padding: .35em .3em calc(.35em + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(7, 6, 15, .97), rgba(14, 12, 31, .92)); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .nav button { flex: 1; font-size: .82em; padding: .6em .2em; }
  .page { padding-bottom: 6.5em; }
  .toast { bottom: 5.5em; }
}
.counter[data-a] { min-width: 38px; min-height: 34px; justify-content: center; font-size: 1em; }

/* ---------- Generierte Grafiken ---------- */
.board { background: linear-gradient(180deg, rgba(7, 6, 15, .62), rgba(7, 6, 15, .38) 50%, rgba(7, 6, 15, .7)); }
.tablebg { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; background: #07060f url('/art/ui_table_w.webp?v=4') center / cover no-repeat; }
.tablebg.tb-p { background-image: url('/art/ui_table_p.webp?v=4'); }
.tablebg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.back { background: url('/art/ui_back.webp') center / cover no-repeat, radial-gradient(circle at 50% 45%, #3b2a6e, #120d26 70%); }
.card.back .back-inner { display: none; }
.oppHand { display: flex; align-items: center; padding-left: 10px; }
.oppHand .card { --w: 24px; margin-left: -12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.hero { position: relative; isolation: isolate; border-radius: 0 0 24px 24px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 6, 15, .25), rgba(7, 6, 15, .55) 60%, var(--bg0)), url('/art/ui_hero.webp') center 30% / cover no-repeat; }
.hero h1, .hero h2, .hero p { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }


/* =====================================================================
   v0.2 – Erklärungen, Animationen, PC-Layout
   ===================================================================== */

/* ---------- Begriffe & Erklärungen ---------- */
.kwl { font-weight: 800; }
.zoom .kwl, .reveal .kwl { text-decoration: underline dotted color-mix(in srgb, var(--s1) 70%, #5a4f6e); text-underline-offset: .18em; cursor: help; }
.zoom .kwl:hover { background: rgba(233, 196, 106, .25); border-radius: .2em; }
.kwlist { width: min(420px, 92vw); display: flex; flex-direction: column; gap: .4em; }
.kwitem { display: flex; gap: .6em; align-items: flex-start; padding: .55em .75em; border-radius: 12px; background: rgba(20, 16, 40, .9); border: 1px solid var(--line); cursor: pointer; text-align: left; animation: pop .3s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.kwitem:nth-child(2) { animation-delay: .05s } .kwitem:nth-child(3) { animation-delay: .1s } .kwitem:nth-child(4) { animation-delay: .15s }
.kwitem b { display: block; color: var(--gold2); font-family: var(--f-title); font-size: .95em; }
.kwitem span { font-size: .88em; color: var(--txt); }
.kwitem em { display: none; font-size: .82em; color: var(--dim); margin-top: .3em; }
.kwitem.open em { display: block; }
.kwitem:not(.open) b::after { content: ' · Beispiel ▸'; font-family: var(--f-body); font-weight: 400; font-size: .75em; color: var(--dim); }
.kwi { flex: none; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a2f6a, #120e26); box-shadow: 0 0 0 1px var(--gold3); font-size: .95em; font-weight: 900; color: var(--gold2); }
.kwpop { position: fixed; z-index: 120; width: min(320px, 90vw); padding: .8em 1em; border-radius: 14px; background: rgba(18, 14, 36, .98); border: 1px solid var(--gold3); box-shadow: 0 12px 40px #000c, 0 0 24px rgba(233, 196, 106, .2); animation: pop .2s cubic-bezier(.2, .9, .3, 1.3); }
.kwpop .kwh { display: flex; align-items: center; gap: .5em; }
.kwpop .kwh b { font-family: var(--f-title); color: var(--gold2); font-size: 1.05em; }
.kwpop .kwh small { margin-left: auto; color: var(--dim); font-size: .72em; text-transform: uppercase; letter-spacing: .08em; }
.kwpop p { margin: .5em 0 .3em; font-size: .92em; line-height: 1.4; }
.kwpop em { display: block; font-size: .84em; color: var(--dim); }
.kwpop .kwf { margin-top: .6em; font-size: .72em; color: var(--dim); }

/* ---------- Länder-Leiste ---------- */
.lands { align-items: center; }
.lands .lbl { font-size: .68em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 0 .3em; }
.landchip { position: relative; overflow: hidden; padding: .28em .65em .28em .32em; border-color: color-mix(in srgb, var(--s1, #fff) 45%, transparent); transition: opacity .3s, filter .3s; isolation: isolate; }
.landchip.s-W { --s1: var(--W) } .landchip.s-U { --s1: var(--U) } .landchip.s-B { --s1: var(--B) } .landchip.s-R { --s1: var(--R) } .landchip.s-G { --s1: var(--G) } .landchip.s-M { --s1: var(--gold) }
.landchip .lart { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .45; }
.landchip b { font-size: 1.05em; text-shadow: 0 1px 3px #000; }
.landchip .t { text-shadow: 0 1px 3px #000; }
.landchip.all-tapped { opacity: .45; filter: saturate(.4); }
.landchip.landpop { animation: landpop .7s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes landpop { 0% { transform: scale(.4); box-shadow: 0 0 0 0 var(--s1); } 50% { transform: scale(1.35); box-shadow: 0 0 0 6px color-mix(in srgb, var(--s1) 50%, transparent), 0 0 30px var(--s1); } 100% { transform: scale(1); } }
.float.info { font-size: .95em; color: var(--gold2); font-family: var(--f-body); font-weight: 800; white-space: nowrap; }

/* ---------- Hand ---------- */
.hand { justify-content: flex-start; }
.hand > .card:first-child { margin-left: auto; } .hand > .card:last-child { margin-right: auto; }
.hand .card { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); transform-origin: 50% 120%; }
.hand .card:hover { transform: translateY(-14px) scale(1.05); }
.hand .card.drawn { animation: drawn .6s cubic-bezier(.2, .9, .3, 1.2) backwards; }
@keyframes drawn { from { transform: translate(60vw, -20px) rotate(25deg) scale(.6); opacity: 0; } }
.hand .card.playable::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 233, 170, .55) 50%, transparent 65%); background-size: 300% 100%; animation: shine 2.8s ease-in-out infinite; z-index: 3; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

/* ---------- Flug-, Kampf- und Todesanimationen ---------- */
.flyer { position: fixed; z-index: 75; pointer-events: none; will-change: transform; }
.flyer > .card, .flyer > .mini { width: 100%; height: 100%; }
.flyer > .card { aspect-ratio: auto; box-shadow: 0 0 22px rgba(233, 196, 106, .55), 0 10px 30px #000a; }
.flyer.ghostfly > .card { box-shadow: 0 0 26px rgba(164, 107, 216, .95), 0 10px 30px #000a; }
.flyer.burst { animation: burst .5s ease-out forwards; }
@keyframes burst { 40% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.flyer.burst::after { content: ''; position: absolute; inset: -25%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 240, 200, .95), rgba(255, 220, 140, .4) 55%, transparent); opacity: 0; animation: flash .5s ease-out; }
@keyframes flash { 35% { opacity: 1; } }
.flyer.sealfade { animation: sealfade .5s ease-in forwards; }
@keyframes sealfade { to { transform: scale(.3) rotateY(180deg); opacity: 0; } }
.lunger > .mini { box-shadow: 0 0 0 3px #ff8a5c, 0 0 34px #ff6a3d, 0 14px 30px #000c; }
.ghost.die { animation: dissolve 1s ease-in forwards; }
@keyframes dissolve { 0% { filter: none; } 25% { filter: brightness(2) saturate(0); transform: scale(1.05); } 100% { filter: brightness(.3) saturate(0) blur(4px); transform: scale(.85) translateY(10px); opacity: 0; } }
.ghost.bounce { animation: bounceback .8s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes bounceback { to { transform: translateY(60vh) scale(.5) rotate(-20deg); opacity: 0; } }
.shard { position: absolute; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, #fff, #a59fc4); box-shadow: 0 0 8px #e3c9ff; animation: shard .9s ease-out forwards; }
@keyframes shard { from { opacity: 0; } 20% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.bolt { position: fixed; z-index: 76; width: 26px; height: 26px; border-radius: 50%; pointer-events: none; --bc: #ff6a3d;
  background: radial-gradient(circle, #fff 0 20%, var(--bc) 45%, transparent 70%); box-shadow: 0 0 24px 8px var(--bc); }
.bolt.c-W { --bc: #f3d27a } .bolt.c-U { --bc: #4fa8ff } .bolt.c-B { --bc: #a46bd8 } .bolt.c-G { --bc: #5fd068 } .bolt.c-C { --bc: #d8d2ea }
.spark { position: fixed; z-index: 77; width: 0; height: 0; pointer-events: none; }
.spark::before { content: ''; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, #fff 0 15%, rgba(255, 170, 90, .9) 35%, transparent 70%); animation: flash .45s ease-out forwards; }
.spark.magic::before { background: radial-gradient(circle, #fff 0 15%, rgba(190, 150, 255, .9) 35%, transparent 70%); }
.spark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px #ff8a3d; animation: sparkfly .6s ease-out forwards; }
.spark.magic i { background: #d9c2ff; box-shadow: 0 0 6px #a46bd8; }
@keyframes flash { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes sparkfly { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.mini.hurt { animation: hurt .45s; }
@keyframes hurt { 0% { filter: brightness(2.5) saturate(0); } 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -3px 0; } 100% { filter: none; translate: 0 0; } }
.mini.enter { animation: enter .55s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes enter { 0% { transform: scale(1.25); opacity: .55; } 100% { transform: scale(1); opacity: 1; } }
.mini.attacking .m-badge { background: #ff6a3d; color: #fff; box-shadow: 0 0 12px #ff6a3d; }

/* Kampfpfeile */
.board > svg.arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; overflow: visible; }
.arrows path.ar { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 12 9; animation: march .7s linear infinite; filter: drop-shadow(0 0 6px currentColor); }
.arrows path.atk { stroke: #ff6a3d; color: #ff6a3d; }
.arrows path.blk { stroke: #6ab8ff; color: #4fa8ff; }
@keyframes march { to { stroke-dashoffset: -21; } }

/* Kampfbericht */
.combatlog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 45; width: min(440px, 92%); padding: .9em 1.1em; background: rgba(16, 12, 34, .94); border-color: var(--gold3); cursor: pointer; animation: pop .3s cubic-bezier(.2, .9, .3, 1.3); }
.combatlog.out { opacity: 0; transition: opacity .4s; }
.combatlog .clh { font-family: var(--f-title); font-weight: 700; color: var(--gold2); margin-bottom: .4em; display: flex; align-items: baseline; gap: .6em; }
.combatlog .clh small { font-family: var(--f-body); font-weight: 400; color: var(--dim); font-size: .7em; margin-left: auto; }
.combatlog .cl { padding: .3em .2em; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .92em; animation: fade .3s backwards; }
.combatlog .cl:nth-child(3) { animation-delay: .15s } .combatlog .cl:nth-child(4) { animation-delay: .3s } .combatlog .cl:nth-child(5) { animation-delay: .45s } .combatlog .cl:nth-child(6) { animation-delay: .6s }
.combatlog .cl.mine { border-left: 3px solid var(--gold); padding-left: .5em; }
.combatlog .cl.theirs { border-left: 3px solid #ff6a3d; padding-left: .5em; }
.combatlog .cl.die { color: #d8cfee; }
.combatlog .dmg { color: #ff8a73; font-weight: 800; }

/* Banner */
.banner { padding: .25em 1.4em; background: linear-gradient(90deg, transparent, rgba(20, 14, 40, .92) 20%, rgba(20, 14, 40, .92) 80%, transparent); }
.banner span { display: inline-block; background: linear-gradient(90deg, #fff3c9, #e9c46a, #fff3c9); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.6s linear; }
.banner.atk span { background-image: linear-gradient(90deg, #ffd0b8, #ff6a3d, #ffd0b8); }
.banner::before, .banner::after { content: ''; position: absolute; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.banner::before { top: 0; } .banner::after { bottom: 0; }
.banner.atk::before, .banner.atk::after { background: linear-gradient(90deg, transparent, #ff6a3d, transparent); }

/* Hilfe-Knopf in der Aktionsleiste */
.helpbtn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold3); background: rgba(0, 0, 0, .4); color: var(--gold2); font-weight: 900; cursor: pointer; font-family: var(--f-title); }
.helpbtn:hover { background: rgba(233, 196, 106, .18); }

/* ---------- Hilfe: Schnelleinstieg & Glossar ---------- */
.tabs { display: flex; gap: .3em; margin-bottom: 1em; flex-wrap: wrap; }
.tabs button { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--dim); padding: .5em 1em; border-radius: 999px; cursor: pointer; font-weight: 700; }
.tabs button.on { color: #2a1a00; background: linear-gradient(180deg, #f6dfa0, #d3a64a); border-color: #ffe9b0; }
.tabs .x { margin-left: auto; }
.helpdlg { width: min(760px, 100%); max-height: 92dvh; display: flex; flex-direction: column; }
.helpdlg .tabbody { overflow: auto; min-height: 0; padding-right: .3em; }
.help .lead { font-size: 1.05em; }
.help h3 { color: var(--gold2); font-size: 1.05em; margin: 1.3em 0 .5em; }
.qsgrid { display: grid; gap: .6em; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.qs { display: flex; gap: .7em; align-items: flex-start; padding: .8em; border-radius: 14px; background: rgba(20, 16, 40, .7); border: 1px solid var(--line); position: relative; }
.qs .qsn { position: absolute; top: -.6em; left: -.4em; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1a00; font-weight: 900; font-size: .8em; box-shadow: 0 0 10px var(--gold); }
.qs .qsi { font-size: 1.7em; line-height: 1; flex: none; width: 1.4em; text-align: center; }
.qs > div > b { color: var(--gold2); font-family: var(--f-title); }
.qs p b { color: var(--gold2); }
.qs p { margin: .25em 0 0; font-size: .9em; line-height: 1.42; }
.qs .pip { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.fieldmap { display: flex; flex-direction: column; gap: 3px; max-width: 460px; margin: 0 auto; padding: 6px; border-radius: 14px; background: linear-gradient(180deg, rgba(7, 6, 15, .7), rgba(7, 6, 15, .6)), url('/art/ui_table_w.webp?v=4') center / cover; border: 1px solid var(--line); }
.fm { padding: .45em .7em; border-radius: 8px; font-size: .82em; background: rgba(0, 0, 0, .45); border: 1px dashed rgba(255, 255, 255, .18); display: flex; align-items: center; gap: .5em; }
.fm span { font-family: var(--f-title); font-weight: 900; color: var(--gold2); }
.fm.fm-lands { border-color: rgba(95, 208, 104, .6); color: #c8f5c4; justify-content: center; }
.fm.fm-crea { min-height: 3.2em; justify-content: center; border-color: rgba(164, 107, 216, .5); }
.fm.fm-mid { border: 1px solid var(--gold3); background: rgba(233, 196, 106, .12); color: var(--gold2); justify-content: center; }
.fm.fm-hand { border-color: var(--gold); color: var(--gold2); justify-content: center; min-height: 3em; }
.help ul { padding-left: 1.2em; line-height: 1.5; }
.gloss .gsearch { margin-bottom: .6em; position: sticky; top: 0; z-index: 2; }
.gcat h3 { margin-top: 1.1em; }
.gitem { display: flex; gap: .7em; align-items: flex-start; padding: .55em .3em; border-bottom: 1px solid rgba(255, 255, 255, .06); scroll-margin-top: 4em; }
.gitem b { color: var(--gold2); }
.gitem p { margin: .15em 0; font-size: .92em; line-height: 1.4; }
.gitem em { font-size: .84em; color: var(--dim); }
.gitem:target { background: rgba(233, 196, 106, .1); border-radius: 10px; }
.rules .ruletabs { margin-top: .4em; }

/* ---------- Seitenleiste (nur PC) ---------- */
.side { display: none; }

/* ---------- PC: Brett auf ganzer Breite mit Seitenleiste ---------- */
@media (min-width: 1100px) and (min-height: 620px) and (min-aspect-ratio: 1001/1000) {
  .board {
    display: grid; max-width: none; overflow: hidden;
    grid-template-columns: minmax(0, 1fr) clamp(290px, 21vw, 380px);
    grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
    grid-template-areas: "hudo side" "zo side" "mid side" "zm side" "hudm side" "hand side";
  }
  .hud.opp { grid-area: hudo; } .zone.opp { grid-area: zo; } .mid { grid-area: mid; } .zone.mine { grid-area: zm; } .hud.me { grid-area: hudm; } .hand { grid-area: hand; }
  .zone { justify-content: center !important; gap: .7em; padding: .6em 1.2em; }
  .zone.opp { flex-direction: column; } .zone.mine { flex-direction: column; }
  .mini { --w: clamp(108px, 7.4vw, 160px); border-radius: 12px; }
  .mini .m-art, .mini::after { border-radius: 12px; }
  .m-name { font-size: .78em; bottom: 26px; left: 7px; right: 7px; }
  .m-kw i { font-size: .9em; padding: 1px 3px; }
  .m-pt { font-size: 1.08em; }
  .m-badge { font-size: .75em; }
  .lane { gap: .8em; }
  .landchip { font-size: 1.05em; padding: .35em .8em .35em .4em; }
  .lands .lbl { font-size: .74em; }
  .life { width: 60px; height: 60px; font-size: 1.5em; }
  .hud { padding: .5em 1.2em; }
  .hud .who { font-size: 1.12em; }
  .mid { min-height: 60px; padding: .5em 1.2em; }
  .prompt { font-size: 1.12em; }
  .phases { font-size: .8em; }
  .btn.small { font-size: 1em; padding: .45em 1em; }
  /* Hand: großer Fächer, ragt unten aus dem Bild und hebt sich beim Zeigen */
  .hand { --hw: clamp(140px, 9.6vw, 190px); height: calc(var(--hw) * 1.397 * .62); min-height: 0; overflow: visible; align-items: flex-start; padding-top: .6em; z-index: 10; }
  .hand .card { --w: var(--hw); margin: 0 calc(var(--hw) * -.12); }
  .hand .card:hover { transform: translateY(calc(var(--hw) * -.52)) scale(1.32); z-index: 30; box-shadow: 0 20px 50px #000c, 0 0 0 2px var(--gold); }
  .hand .card.chosen { transform: translateY(calc(var(--hw) * -.3)); }
  .board > .banner { left: calc(50% - clamp(290px, 21vw, 380px) / 2); }
  .combatlog { left: calc(50% - clamp(290px, 21vw, 380px) / 2); }

  .side { grid-area: side; display: flex; flex-direction: column; gap: .7em; padding: .8em; min-height: 0; border-left: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 11, 30, .9), rgba(10, 8, 22, .85)); backdrop-filter: blur(6px); }
  .sbox { padding: .7em .85em; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .07); }
  .stitle { font-family: var(--f-title); font-weight: 700; color: var(--gold2); font-size: .9em; margin-bottom: .45em; letter-spacing: .04em; }
  .sphases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2em; }
  .sphases li { display: flex; justify-content: space-between; gap: .6em; padding: .3em .6em; border-radius: 8px; color: var(--dim); font-size: .88em; }
  .sphases li span { font-size: .85em; opacity: .8; }
  .sphases li.on { background: linear-gradient(90deg, rgba(233, 196, 106, .3), rgba(233, 196, 106, .06)); color: var(--gold2); box-shadow: inset 3px 0 0 var(--gold); }
  .hint p { margin: 0 0 .6em; font-size: .92em; line-height: 1.45; }
  .slog { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .sloglist { overflow: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
  .sloglist .entry { padding: .3em 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: .84em; line-height: 1.35; }
  .sloglist .entry.turn { color: var(--gold2); font-family: var(--f-title); font-weight: 700; margin-top: .5em; }
  .sloglist .entry.new { background: linear-gradient(90deg, rgba(233, 196, 106, .12), transparent); }
  .sloglist .entry:first-child { animation: fade .5s; }
  .sloglist .peek { color: var(--gold2); text-decoration: underline dotted; cursor: pointer; }
  .counter[data-a="log"] { display: none; }
}
@media (min-width: 1700px) and (min-height: 900px) and (min-aspect-ratio: 1001/1000) {
  .mini { --w: 170px; }
  .hand { --hw: 200px; }
}

/* ---------- Übrige Seiten am PC großzügiger ---------- */
@media (min-width: 1300px) {
  .page { max-width: 1480px; padding-left: 32px; padding-right: 32px; }
  .pool { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .builder { grid-template-columns: 1fr 380px; }
  .rules { max-width: 1000px; }
}

/* =====================================================================
   v0.3 – Stapel, Ziehen, Kampf-Vorschau
   ===================================================================== */
.pile { position: relative; flex: none; width: 34px; height: 46px; border-radius: 5px; cursor: pointer; display: grid; place-items: center; }
.pile.deck i { position: absolute; inset: 0; border-radius: 5px; background: url('/art/ui_back.webp') center / cover, #241a4a; box-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 0 1px rgba(233, 196, 106, .45); transform: translate(calc(var(--k) * -1.5px), calc(var(--k) * -1.5px)); }
.pile.deck b { position: relative; z-index: 2; font-size: .78em; font-weight: 900; padding: 0 .35em; border-radius: 6px; background: rgba(7, 6, 15, .85); border: 1px solid var(--gold3); color: var(--gold2); transform: translate(-3px, -3px); }
.pile.deck.low b { color: var(--bad); border-color: var(--bad); }
.pile.deck.empty { border: 1px dashed rgba(255, 255, 255, .25); }
.pile.deck:hover i { box-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 0 1px var(--gold), 0 0 14px rgba(233, 196, 106, .5); }
.pile.gy { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.pile.gy .gart { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(.7) brightness(.55); }
.pile.gy b { position: relative; font-size: .68em; font-weight: 900; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.pile.gy.empty { opacity: .5; }
.counters { align-items: center; }
.kwpop .note { color: var(--gold2); font-weight: 700; margin-bottom: 0; }
.hand .card.flipin { animation: flipin .38s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes flipin { from { transform: rotateY(90deg) scale(1.05); } }
.drawfly > .card { width: 100%; height: 100%; box-shadow: 0 10px 30px #000c, 0 0 0 1px var(--gold3); }
.fromdeck .card { animation: flipin .5s cubic-bezier(.2, .9, .3, 1.2) backwards; animation-delay: calc(var(--d, 0) * .14s); }
svg.arrows.preview { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 74; pointer-events: none; transition: opacity .3s; }
svg.arrows.preview path.ar { stroke-width: 6; animation: march .5s linear infinite, drawin .4s ease-out; }
svg.arrows.preview.out { opacity: 0; }
@keyframes drawin { from { opacity: 0; } }
@media (min-width: 1100px) and (min-height: 620px) and (min-aspect-ratio: 1001/1000) {
  .pile { width: 46px; height: 64px; border-radius: 6px; }
  .pile.deck i { border-radius: 6px; }
  .pile.deck b { font-size: .9em; }
  .pile.gy b { font-size: .8em; }
}

/* ---------- Menüs: mehr Atmosphäre (dezent) ---------- */
/* Kopfzeile mit goldener Zierlinie und Edelstein */
.topbar { border-bottom: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold3) 20%, var(--gold) 50%, var(--gold3) 80%, transparent); }
.topbar::before { content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: linear-gradient(135deg, #fff3c9, var(--gold)); box-shadow: 0 0 10px var(--gold); z-index: 1; }
.nav button { display: inline-flex; align-items: center; gap: .4em; transition: color .2s, background .2s; }
.nav button i { font-style: normal; opacity: .75; font-size: .95em; }
.nav button.on i { opacity: 1; filter: drop-shadow(0 0 6px var(--gold)); }
.nav button:hover { color: var(--gold2); }
@media (max-width: 700px) {
  .topbar::before { display: none; }
  .nav button { flex-direction: column; gap: .1em; font-size: .74em; }
  .nav button i { font-size: 1.35em; }
  .nav::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
}

/* Überschriften mit Zierlinie */
.page > h2, .page .section > h2, .page > .row > h2, .rules > h2 { display: flex; align-items: center; gap: .6em; }
.page > h2::after, .page .section > h2::after, .page > .row > h2::after, .rules > h2::after { content: ''; flex: 1; min-width: 30px; height: 1px; background: linear-gradient(90deg, var(--gold3), transparent); }
.page > h2::before, .page .section > h2::before, .page > .row > h2::before, .rules > h2::before { content: '◆'; font-size: .55em; color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.page > .row > h2 { flex: 1; margin-right: 1em; }

/* Seiten blenden sanft ein */
.page > * { animation: rise .45s cubic-bezier(.2, .8, .3, 1) backwards; }
.page > *:nth-child(2) { animation-delay: .05s } .page > *:nth-child(3) { animation-delay: .1s } .page > *:nth-child(4) { animation-delay: .15s } .page > *:nth-child(5) { animation-delay: .2s }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Paneele: feine Doppelkante + goldene Ecken */
.panel { box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .06); }
.gamecard, .decktile, .dialog { position: relative; }
.gamecard::before, .decktile::after, .dialog::before {
  content: ''; position: absolute; inset: 5px; border-radius: calc(var(--radius) - 4px); pointer-events: none; z-index: 2; opacity: .55;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 1px, linear-gradient(var(--gold), var(--gold)) top left / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 1px, linear-gradient(var(--gold), var(--gold)) top right / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 1px, linear-gradient(var(--gold), var(--gold)) bottom left / 1px 14px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 1px, linear-gradient(var(--gold), var(--gold)) bottom right / 1px 14px;
  background-repeat: no-repeat; transition: opacity .25s, inset .25s;
}
.gamecard:hover::before, .decktile:hover::after { opacity: 1; inset: 3px; }
.helpdlg::before { display: none; }

/* Deck-Kacheln mit Aushängeschild-Bild */
.decktile { min-height: 118px; justify-content: flex-end; isolation: isolate; }
.decktile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 11, 30, .96) 30%, rgba(14, 11, 30, .55) 70%, rgba(14, 11, 30, .2)), var(--art, none) center 30% / cover no-repeat; transition: transform .5s cubic-bezier(.2, .8, .3, 1), filter .3s; filter: saturate(.85); }
.decktile:hover::before { transform: scale(1.06); filter: saturate(1.1); }
.decktile.sel::before { filter: saturate(1.15) brightness(1.1); }
.decktile .name { text-shadow: 0 2px 8px #000; }

/* Partie-Karten */
.gamecard { overflow: hidden; isolation: isolate; }
.gamecard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 50%, rgba(120, 70, 220, .22), transparent 60%); }
.gamecard.myturn::after { background: radial-gradient(120% 140% at 0% 50%, rgba(233, 196, 106, .22), transparent 60%); }
.avatar { position: relative; }

@keyframes avglow { 50% { box-shadow: 0 0 26px rgba(233, 196, 106, .75); } }

/* Gold-Knöpfe mit Lichtkante */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%); transform: translateX(-120%); transition: transform .6s; pointer-events: none; }
.btn.gold:hover::after { transform: translateX(120%); }

/* Leere Zustände */
.empty { background: radial-gradient(80% 120% at 50% 0%, rgba(233, 196, 106, .06), transparent 70%); }
.empty::before { content: '✦'; display: block; font-size: 1.6em; color: var(--gold3); margin-bottom: .3em; text-shadow: 0 0 12px rgba(233, 196, 106, .5); }

/* Hintergrund: ganz langsam wabernder Nebel */
body::after { content: ''; position: fixed; top: -20vh; left: -20vw; width: 140vw; height: 140vh; height: 140lvh; pointer-events: none; z-index: 0; opacity: .35;
  background: radial-gradient(40% 30% at 30% 40%, rgba(120, 70, 220, .18), transparent 70%), radial-gradient(35% 30% at 70% 60%, rgba(40, 120, 255, .14), transparent 70%);
  animation: fog 40s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translate(6%, -4%) rotate(8deg); } }

/* ---------- v0.4: Zerstörung ---------- */
.ghost.die { animation: destroy 1.3s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes destroy {
  0% { filter: none; transform: scale(1); }
  12% { filter: brightness(2.6) saturate(0) drop-shadow(0 0 18px #ff5d73); transform: scale(1.08) rotate(-2deg); }
  22% { transform: scale(1.04) rotate(2deg); }
  32% { filter: brightness(1.1) saturate(.3) drop-shadow(0 0 10px #a46bd8); transform: scale(1.02) rotate(-1deg); }
  55% { filter: brightness(.8) saturate(0); transform: scale(1); opacity: 1; }
  100% { filter: brightness(.2) saturate(0) blur(5px); transform: scale(.7) translateY(16px) rotate(6deg); opacity: 0; }
}
.ghost .crack { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.ghost .crack path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 3px #ff5d73) drop-shadow(0 0 6px #ff5d73); stroke-dasharray: 260; stroke-dashoffset: 260; animation: crack .35s .12s ease-out forwards; }
@keyframes crack { to { stroke-dashoffset: 0; } }
.ghost.die .shard { width: 9px; height: 9px; background: linear-gradient(135deg, #fff, #c9b8ff 60%, #5a3b9a); animation: shard 1s .45s ease-out backwards; }
.spark.doom::before { left: -70px; top: -70px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 10%, rgba(255, 93, 115, .7) 30%, rgba(120, 50, 200, .45) 50%, transparent 70%); animation: flash .6s ease-out forwards; }
.spark.doom i { background: #ff8a9b; box-shadow: 0 0 8px #ff5d73; }
.combatlog .tag { display: block; font-size: .78em; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .1em; }
.combatlog .tag.hit { color: #ff8a73; } .combatlog .tag.held { color: #6ab8ff; } .combatlog .tag.lethal { color: #ff5d73; } .combatlog .tag.both { color: #e3c9ff; }

/* ---------- v0.6: Auren/Ausrüstung an der Karte, Block-Hilfe, Kampf, Lupe ---------- */
/* Lasche einer Aura oder Ausrüstung: liegt an der Karte, an der sie hängt (auch auf der Gegenseite) */
.stack { display: flex; flex-direction: column; align-items: center; flex: none; position: relative; }
.stack > .mini:not(.att) { z-index: 1; }
.mini.att { aspect-ratio: auto; width: calc(var(--w) * .94); height: 1.75em; border-radius: 8px; overflow: hidden; z-index: 0; transition: transform .2s, box-shadow .2s; }
.mini.att .m-art { border-radius: 8px; background-position: center 35%; filter: brightness(.55) saturate(1.1); }
.mini.att::after { display: none; }
.mini.att .a-name { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .25em; padding: 0 .4em; font-size: .64em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.stack.up > .mini.att { margin-bottom: -5px; border-radius: 8px 8px 0 0; }
.stack.down > .mini.att { margin-top: -5px; border-radius: 0 0 8px 8px; }
.stack.up > .mini.att + .mini.att { margin-top: 2px; } .stack.down > .mini.att + .mini.att { margin-top: -3px; }
/* fremde Lasche (z. B. gegnerischer Bann auf meiner Kreatur) rot, eigene golden */
.mini.att.foe { box-shadow: 0 0 0 2px #ff5d73, 0 0 12px rgba(255, 93, 115, .55); }
.mini.att.own { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(233, 196, 106, .4); }
.mini.att:hover { transform: scale(1.06); z-index: 3; }
.stack.held, .mini.held { pointer-events: none; }
@media (min-width: 1100px) and (min-height: 620px) and (min-aspect-ratio: 1001/1000) { .mini.att { height: 2em; } .mini.att .a-name { font-size: .78em; } }

/* Blockfenster: was geblockt werden darf, leuchtet blau; alles andere tritt zurück */
.mini.blockable { transform: translateY(0) scale(1.05); z-index: 2; cursor: pointer; }
@keyframes blkglow { 0%, 100% { box-shadow: 0 0 0 3px #6ab8ff, 0 0 14px #4fa8ff; } 50% { box-shadow: 0 0 0 5px #bfe2ff, 0 0 34px 6px #4fa8ff; } }
.mini.blockable .m-badge { background: #6ab8ff; color: #04203a; box-shadow: 0 0 12px #4fa8ff; }
.mini.noblock { filter: grayscale(.85) brightness(.42); box-shadow: 0 0 0 2px #3a3550; transform: none; }
.mini.noblock .m-badge { background: #4a4560; color: #d8d2ea; box-shadow: none; }
.arrows path.hintarrow { opacity: .5; stroke-width: 3; stroke-dasharray: 4 10; }

/* Kampf: Abbilder der Kämpfer */
.lunger { z-index: 78; }
.lunger > .mini { box-shadow: 0 0 0 3px #ff8a5c, 0 0 26px #ff6a3d, 0 16px 28px #000b; transition: none; }

/* Lupe in Auswahllisten (Vorhersehen, Abwerfen, Mulligan …) */
.zoombtn { position: absolute; left: 4px; bottom: 4px; z-index: 6; width: 2em; height: 2em; border-radius: 50%; border: 1px solid var(--gold3); background: rgba(10, 8, 22, .88); color: #fff; font-size: .85em; cursor: zoom-in; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 8px #000a; }
.zoombtn:hover { background: var(--gold); transform: scale(1.12); }
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) {
  .dialog.scry { width: fit-content; max-width: 94vw; }
  .dialog.scry .cards { gap: 1.1em; }
  .dialog.scry .cards .card { --w: clamp(190px, 15vw, 270px); }
  .dialog.scry .cards .card:hover { transform: translateY(-6px); }
}
.zone.opp .lane { align-items: flex-start; } .zone.mine .lane { align-items: flex-end; }
.mini.picked { box-shadow: 0 0 0 4px #fff, 0 0 30px 6px #6ab8ff; z-index: 3; }
.mini.picked .m-badge { background: #fff; color: #04203a; }

/* Anwesenheit (online/offline) */
.pdot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #5d5870; border: 2px solid var(--bg2); }
.pdot.on { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .8); animation: pres 2.4s ease-in-out infinite; }
@keyframes pres { 50% { box-shadow: 0 0 2px rgba(74, 222, 128, .4); } }
.pres { display: inline-flex; align-items: center; gap: .35em; font-family: var(--f-body); font-weight: 400; font-size: .8em; color: var(--dim); }
.pres i { width: 9px; height: 9px; border-radius: 50%; background: #5d5870; }
.pres.on { color: #86efac; }
.pres.on i { background: #4ade80; box-shadow: 0 0 7px rgba(74, 222, 128, .8); }
.players { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em 1.2em; margin: -.6em 0 1.2em; }
.players .pl { display: inline-flex; align-items: center; gap: .5em; padding: .3em .8em; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.presslot { display: inline-block; position: relative; width: 11px; height: 11px; margin-left: .45em; vertical-align: middle; }
.presslot .pdot { width: 10px; height: 10px; right: 0; bottom: 0; border-width: 1px; }

/* Das Buch der Zeichen (Symbol-Anleitung) */
.runebook { --rn-glow: rgba(233, 196, 106, .35); position: relative; }
.rn-head { text-align: center; padding: 1.6em 1em 1.2em; margin: .6em 0 1em; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(164, 107, 216, .22), transparent 65%), radial-gradient(ellipse at 50% 120%, rgba(95, 208, 104, .14), transparent 60%), var(--panel); box-shadow: inset 0 0 60px rgba(0, 0, 0, .5); }
.rn-head { padding-top: 0; overflow: hidden; }
.rn-banner { position: relative; margin: 0 -1em -2.2em; height: min(56vw, 360px); overflow: hidden; }
.rn-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; animation: rnbreathe 9s ease-in-out infinite; }
.rn-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--panel) 98%); pointer-events: none; }
@keyframes rnbreathe { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .rn-banner img { animation: none; } }
.rn-head h2 { position: relative; }
.rn-head h2 { font-family: var(--f-title); font-size: 1.7em; letter-spacing: .08em; margin: .3em 0 .2em; color: var(--gold2); text-shadow: 0 0 18px var(--rn-glow), 0 0 2px #000; }
.rn-orbs { display: flex; justify-content: center; gap: .55em; }
.rn-orbs .pip { animation: rnfloat 4s ease-in-out infinite; }
.rn-orbs .pip:nth-child(2) { animation-delay: -.8s; } .rn-orbs .pip:nth-child(3) { animation-delay: -1.6s; } .rn-orbs .pip:nth-child(4) { animation-delay: -2.4s; } .rn-orbs .pip:nth-child(5) { animation-delay: -3.2s; }
@keyframes rnfloat { 50% { transform: translateY(-4px); } }
.rn-intro { font-style: italic; color: var(--dim); max-width: 560px; margin: .4em auto 0; }
.runebook section { margin-top: 1.8em; }
.runebook h3 { display: flex; align-items: center; gap: .6em; font-family: var(--f-title); letter-spacing: .05em; margin: 0 0 .2em; }
.runebook h3 span { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid var(--gold3); color: var(--gold); font-size: .8em; box-shadow: 0 0 12px var(--rn-glow) inset; }
.runebook h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.rn-sub { color: var(--dim); font-size: .92em; margin: 0 0 .8em; }
.rn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .7em; }
.rn-item { display: flex; gap: .85em; align-items: flex-start; padding: .8em .9em; border-radius: 12px; background: linear-gradient(160deg, rgba(36, 30, 70, .7), rgba(14, 12, 31, .75)); border: 1px solid rgba(233, 196, 106, .12); transition: border-color .25s, box-shadow .25s; }
.rn-item:hover { border-color: var(--line); box-shadow: 0 0 18px rgba(233, 196, 106, .08); }
.rn-medal { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35em; line-height: 1;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .1), rgba(0, 0, 0, .55)); border: 1px solid var(--gold3); box-shadow: 0 0 14px var(--rn-glow), inset 0 0 10px rgba(0, 0, 0, .6); }
.rn-medal .pip { transform: scale(1.35); }
.rn-body h4 { margin: .05em 0 .25em; font-family: var(--f-title); font-size: 1em; color: var(--gold2); letter-spacing: .03em; }
.rn-body h4 small { font-family: var(--f-body); font-weight: 400; color: var(--dim); letter-spacing: 0; }
.rn-verse { margin: 0 0 .35em; font-style: italic; color: #d6cdf5; font-size: .93em; line-height: 1.45; }
.rn-plain { margin: 0; font-size: .86em; color: var(--dim); line-height: 1.4; padding-top: .3em; border-top: 1px dashed rgba(233, 196, 106, .15); }
.rn-plain .pip { vertical-align: -3px; }
.rn-item.sph-W .rn-medal { box-shadow: 0 0 16px rgba(243, 210, 122, .45), inset 0 0 10px rgba(0, 0, 0, .6); border-color: var(--W); }
.rn-item.sph-U .rn-medal { box-shadow: 0 0 16px rgba(79, 168, 255, .45), inset 0 0 10px rgba(0, 0, 0, .6); border-color: var(--U); }
.rn-item.sph-B .rn-medal { box-shadow: 0 0 16px rgba(164, 107, 216, .5), inset 0 0 10px rgba(0, 0, 0, .6); border-color: var(--B); }
.rn-item.sph-R .rn-medal { box-shadow: 0 0 16px rgba(255, 106, 61, .45), inset 0 0 10px rgba(0, 0, 0, .6); border-color: var(--R); }
.rn-item.sph-G .rn-medal { box-shadow: 0 0 16px rgba(95, 208, 104, .45), inset 0 0 10px rgba(0, 0, 0, .6); border-color: var(--G); }
.rn-arrow { display: block; width: 28px; height: 4px; border-radius: 2px; position: relative; }
.rn-arrow::after { content: ''; position: absolute; right: -6px; top: -5px; border: 7px solid transparent; border-left-width: 9px; }
.rn-arrow.red { background: #ff5d5d; box-shadow: 0 0 8px #ff5d5d; } .rn-arrow.red::after { border-left-color: #ff5d5d; }
.rn-arrow.blue { background: #4fa8ff; box-shadow: 0 0 8px #4fa8ff; } .rn-arrow.blue::after { border-left-color: #4fa8ff; }
.rn-end { text-align: center; font-family: var(--f-title); color: var(--gold3); letter-spacing: .1em; margin: 2em 0 1em; }
@media (max-width: 420px) { .rn-grid { grid-template-columns: 1fr; } }

/* ---------- v0.9: Grafiklast senken ----------
   Ursache der GPU-Spitzen: Dauer-Animationen, die jeden Frame neu malen (background-position, box-shadow),
   und Weichzeichner (backdrop-filter) über dem laufenden Tisch-Video, die 24×/s neu gerechnet werden mussten. */
body::before { animation: none; }               /* Sternenstaub: statisch (vorher Vollbild-Repaint pro Frame) */
body::after { animation: none; transform: translate(3%, -2%) rotate(4deg); } /* Nebel: statisch, sonst muss jede Glas-Fläche mit-neu-weichzeichnen */
.pdot.on { animation: none; }
.card.r-M .c-frame::after, .card.r-R .c-frame::after { animation: none; background-position: 40% 0; }
.zoom .card.r-M .c-frame::after, .zoom .card.r-R .c-frame::after, .reveal .card.r-M .c-frame::after { animation: foil 5.5s ease-in-out infinite; }
.hand .card.playable::before { animation-iteration-count: 2; }
.board > svg.arrows path.ar { filter: none; stroke-width: 5; }

/* Im Duell: Hintergrundebenen liegen ohnehin unter dem Tisch; kein Weichzeichner über dem Video */
body.ingame::before, body.ingame::after, body.ingame #sky { display: none; }
body.ingame .panel, body.ingame .topbar, body.ingame .side, body.ingame .overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.ingame .panel { background: rgba(22, 18, 44, .95); }
body.ingame .overlay { background: rgba(5, 4, 12, .82); }
body.ingame .side { background: linear-gradient(180deg, rgba(14, 11, 30, .95), rgba(10, 8, 22, .93)); }

/* Leuchten nur noch über die Deckkraft einer Zusatzebene (läuft auf dem Compositor statt neu zu malen) */
.mini.selectable { box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0, 0, 0, .55); }
.mini.target, .life.targetable { box-shadow: 0 0 0 3px #ff8a5c; }
.mini.blockable { box-shadow: 0 0 0 3px #6ab8ff; }
.life.low.targetable { box-shadow: 0 0 0 3px var(--bad), 0 0 22px rgba(255, 93, 115, .45), inset 0 0 14px #0009; }
.mini.attacking.target, .mini.chosen.target { box-shadow: 0 0 0 3px #ff8a5c, 0 0 26px #ff6a3d; }
.mini.selectable::before, .mini.target::before, .mini.blockable::before, .life.targetable::before, .gamecard.myturn .avatar::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; animation: glowop 1.2s ease-in-out infinite; }
.mini.selectable::before { box-shadow: 0 0 22px 2px rgba(233, 196, 106, .85); }
.mini.target::before, .life.targetable::before { box-shadow: 0 0 30px #ff6a3d; animation-duration: 1s; }
.mini.blockable::before { box-shadow: 0 0 0 2px #bfe2ff, 0 0 34px 6px #4fa8ff; animation-duration: .9s; }
.gamecard.myturn .avatar::before { box-shadow: 0 0 26px rgba(233, 196, 106, .75); animation-duration: 2.4s; }
@keyframes glowop { 50% { opacity: 1; } }

/* Sparmodus (Menü): stehendes Tischbild, keine Dauer-Animationen */
body.lite *, body.lite *::before, body.lite *::after { animation-iteration-count: 1 !important; }
body.lite .tablebg video { display: none; }

/* ---------- v0.9: Profilbilder ---------- */
.avimg { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg2); background-repeat: no-repeat;
  color: var(--gold2); font-family: var(--f-title); font-weight: 900; box-shadow: 0 0 0 2px var(--gold3), 0 2px 8px #0008; overflow: hidden; user-select: none; }
.avimg.sm { width: 24px; height: 24px; font-size: .7em; box-shadow: 0 0 0 1.5px var(--gold3); }
.avimg.md { width: 44px; height: 44px; font-size: 1.1em; }
.avimg.lg { width: 92px; height: 92px; font-size: 2.2em; box-shadow: 0 0 0 3px var(--gold3), 0 0 22px rgba(233, 196, 106, .3); }
.avimg.xl { width: min(240px, 66vw); height: min(240px, 66vw); font-size: 3em; box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(233, 196, 106, .35); cursor: grab; touch-action: none; }
.avimg.xl:active { cursor: grabbing; }
.avimg.hud { width: 40px; height: 40px; font-size: 1em; }
.avatar .avimg { width: 40px; height: 40px; box-shadow: none; }
.players .pl .avimg { margin-left: -.4em; }
.aved { display: grid; place-items: center; padding: .6em 0 .2em; }
.avdlg { width: min(640px, 94vw); }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45em; max-height: 58vh; overflow: auto; padding: .2em; }
.avthumb { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.avthumb:hover, .avthumb:focus-visible { outline: 2px solid var(--gold); }
@media (max-width: 560px) { .avimg.hud { width: 30px; height: 30px; font-size: .8em; } }

/* ---------- v0.9: Chat ---------- */
.chatbtn { position: relative; }
.cbadge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #2a1a00; font-size: .72em; display: grid; place-items: center; }
.chatov { place-items: end center; padding: 0; }
.chatpanel { width: min(520px, 100vw); max-height: 82vh; display: flex; flex-direction: column; gap: .6em; padding: .9em 1em calc(.9em + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; animation: chatup .22s ease-out; }
@keyframes chatup { from { transform: translateY(40px); opacity: 0; } }
.clist { flex: 1 1 auto; min-height: 120px; max-height: 40vh; overflow: auto; display: flex; flex-direction: column; gap: .4em; padding: .2em; }
.cmsg { display: flex; align-items: flex-end; gap: .45em; max-width: 86%; }
.cmsg.mine { align-self: flex-end; flex-direction: row-reverse; }
.ctext { padding: .4em .75em; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); overflow-wrap: anywhere; }
.cmsg.mine .ctext { border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, rgba(233, 196, 106, .28), rgba(168, 130, 58, .22)); border-color: var(--line); }
.cquick { display: flex; flex-wrap: wrap; gap: .35em; }
.cq { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: .32em .7em; font-size: .85em; cursor: pointer; }
.cq:hover { background: rgba(233, 196, 106, .14); }
.cform { display: flex; gap: .5em; }
.cform input { flex: 1; min-width: 0; }
.cbubble { position: fixed; z-index: 90; max-width: 260px; padding: .45em .8em; border-radius: 14px; font-weight: 700; pointer-events: auto; cursor: pointer;
  background: rgba(24, 19, 48, .97); border: 1px solid var(--gold3); box-shadow: 0 8px 24px #000a; animation: pop .25s cubic-bezier(.2, .9, .3, 1.3); transition: opacity .45s, transform .45s; overflow-wrap: anywhere; }
.cbubble.mine { border-color: rgba(233, 196, 106, .5); background: rgba(48, 38, 18, .96); pointer-events: none; }
.cbubble.out { opacity: 0; transform: translateY(-6px); }

/* v0.10: Karte kehrt aus dem Friedhof auf die Hand zurück */
.hand .card.revived { animation: revived .8s ease-out; }
@keyframes revived { from { box-shadow: 0 0 0 3px #b98cff, 0 0 30px #a46bd8; } }

/* ---------- v0.10: Menü (oben rechts) + Einstellungen ---------- */
.menubtn { order: 9; margin-left: .4em; display: inline-flex; align-items: center; gap: .35em; padding: .45em .8em; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--gold2); font-weight: 700; font-size: 1em; }
.menubtn span { font-size: .85em; }
.menubtn:hover { background: rgba(233, 196, 106, .12); }
@media (max-width: 700px) { .topbar { position: sticky; } .menubtn { position: absolute; right: .7em; top: 50%; transform: translateY(-50%); padding: .4em .65em; } .menubtn span { display: none; } }
.menudlg { width: min(460px, 94vw); }
.settings { display: flex; flex-direction: column; gap: .7em; margin-top: .9em; }
.srow { display: flex; align-items: center; gap: .7em; }
.srow input[type=range] { flex: 1; min-width: 0; accent-color: var(--gold); }
.srow .btn.tog { min-width: 7.4em; justify-content: flex-start; opacity: .55; }
.srow .btn.tog.on { opacity: 1; border-color: var(--gold3); box-shadow: inset 0 0 0 1px var(--gold3); }
.sval { width: 3.6em; text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); font-size: .85em; }
.slbl { min-width: 7.4em; font-weight: 700; color: var(--dim); font-size: .9em; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 1; }
.seg button { flex: 1; appearance: none; border: 0; background: transparent; padding: .45em .6em; cursor: pointer; font-weight: 700; font-size: .88em; color: var(--dim); }
.seg button.on { background: linear-gradient(180deg, #f6dfa0, #d3a64a); color: #2a1a00; }
.menulinks { display: flex; flex-direction: column; gap: .5em; margin-top: 1.2em; }
/* Glanz über spielbaren Handkarten: wandernde Ebene (transform) statt background-position + Mischmodus – das hat bei jedem Neuzeichnen ~2,5 s Rasterzeit gekostet */
.hand .card.playable { overflow: hidden; }
.hand .card.playable::before { inset: 0 auto 0 0; width: 55%; border-radius: 0; mix-blend-mode: normal; background: linear-gradient(105deg, transparent, rgba(255, 236, 180, .38) 50%, transparent);
  background-size: auto; transform: translateX(-130%); animation: shine2 2.8s ease-in-out 2; will-change: transform; }
@keyframes shine2 { 0% { transform: translateX(-130%); } 60%, 100% { transform: translateX(260%); } }

/* v0.11: Deck des Gegners im HUD */
.hud .who small.oppdeck { display: inline-flex; align-items: center; gap: .25em; }
.hud .who small.oppdeck .pip { width: 1.15em; height: 1.15em; font-size: .85em; }
.hud .who small.oppdeck .pip:last-of-type { margin-right: .25em; }
.tallies { display: flex; flex-wrap: wrap; gap: .4em .6em; margin: -.3em 0 .8em; }
.tally { padding: .2em .7em; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .88em; color: var(--dim); }
.tally b.w { color: var(--good); } .tally b.l { color: var(--bad); }
.gamecard .meta .pip, .odeck .pip { width: 1.05em; height: 1.05em; font-size: .8em; vertical-align: -.15em; margin-right: .1em; }
.decktile { transition: transform .15s, box-shadow .25s, border-color .25s; }
.decktile.sel { transform: translateY(-2px); }

/* v0.13/v0.16: verdeckte Siegel auf dem Brett – violett getönter, schräg liegender Kartenrücken mit Siegelring, klar vom Deck unterscheidbar */
.sealback { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 2.8em; height: 3.9em; margin: .15em .15em .15em .3em; border-radius: .35em; cursor: pointer; isolation: isolate; rotate: -5deg;
  background: linear-gradient(165deg, rgba(168, 110, 255, .5), rgba(60, 20, 120, .62) 55%, rgba(20, 6, 48, .8)), url('/art/ui_back.webp') center / cover no-repeat, #1a1236;
  border: 1.5px solid #cfa8ff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .6), inset 0 0 12px rgba(190, 140, 255, .45); }
.seals { display: inline-flex; flex: none; align-items: center; flex-wrap: nowrap; }
/* v0.25: Verzauberungen & Artefakte – kleine Ablage hinten bei den Ländern */
.relics { display: inline-flex; flex: none; align-items: center; gap: .35em; margin-left: .35em; padding: .15em .35em; border-radius: 10px; background: rgba(150, 120, 255, .07); box-shadow: inset 0 0 0 1px rgba(190, 160, 255, .16); }
.relics .mini { --w: 52px; }
.relics .m-name { font-size: .48em; bottom: 4px; }
.relics .m-kw { display: none; }
@media (max-width: 560px) { .relics .mini { --w: 42px; } .relics .m-name { display: none; } }
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) { .relics .mini { --w: 68px; } .relics .m-name { font-size: .52em; } }
.sealback + .sealback { rotate: 4deg; margin-left: .25em; }
.sealback::before { content: ''; position: absolute; inset: -4px; border-radius: .5em; z-index: -1; box-shadow: 0 0 14px 3px #b98cffcc; opacity: .45; animation: glowop 2.6s ease-in-out infinite; }
.sealback::after { content: ''; position: absolute; top: 42%; left: 50%; width: 1.9em; height: 1.9em; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid #ead9ffcc; box-shadow: 0 0 8px #b98cff, inset 0 0 8px #b98cff99; background: radial-gradient(circle, rgba(40, 14, 80, .85) 55%, rgba(40, 14, 80, 0) 72%); }
.sealback i { position: absolute; top: 42%; left: 50%; z-index: 1; transform: translate(-50%, -50%); font-style: normal; color: #f3e8ff; font-size: 1.35em; line-height: 1; text-shadow: 0 0 8px #c9a2ff, 0 0 2px #fff; }
.sealback em { position: relative; z-index: 1; font-style: normal; font-size: .52em; font-weight: 800; letter-spacing: .04em; line-height: 1.15; max-width: 5.4em; padding: .12em .35em; margin-bottom: .3em; border-radius: .25em; background: rgba(12, 5, 30, .88); border: 1px solid #b98cff88; color: #e6d4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sealback:not(.mine) em { text-transform: uppercase; }
.sealback.sealnew { animation: sealpop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes sealpop { from { transform: scale(1.6); } }
body.lite .sealback::before { animation: none; }
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) { .sealback { width: 2.7em; height: 3.75em; } }

/* v0.16: Mulligan-Mischen – Karte zeigt ihre Rückseite */
.dialog .cards .card.mflip { pointer-events: none; }
.dialog .cards .card.mflip::after { content: ''; position: absolute; inset: 0; z-index: 20; border-radius: inherit; background: url('/art/ui_back.webp') center / cover no-repeat, radial-gradient(circle at 50% 45%, #3b2a6e, #120d26 70%); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .5), 0 4px 10px rgba(0, 0, 0, .5); }
.overlay.shuffling .dialog { overflow: visible; }

/* v0.13: Bühne für Sprüche und Siegel */
.reveal.stage { background: radial-gradient(ellipse at center, rgba(8, 5, 20, .72), rgba(8, 5, 20, .45) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; padding: 1em; animation: fade .25s; perspective: 1200px; }
.reveal.stage.out { opacity: 0; transition: opacity .25s; }
.reveal.stage .who { position: static; text-align: center; font-size: 1.25em; display: flex; flex-direction: column; gap: .15em; }
.reveal.stage .who small { font-family: var(--f-body); font-weight: 400; font-size: .7em; color: #f4ecd8; }
.reveal.stage.isseal .who { color: #dcc6ff; text-shadow: 0 0 14px #b98cff, 0 0 4px #000; }
.reveal.stage .flipper { position: relative; transform-style: preserve-3d; }
.reveal.stage .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.reveal.stage .face.back { position: absolute; inset: 0; transform: rotateY(180deg); }
.reveal.stage .face.back .card { --w: 100%; width: 100%; height: 100%; }
.reveal.stage .card { --w: min(250px, 58vw, 34vh); animation: none; }
.reveal.stage.quick .card { animation: reveal 1.7s cubic-bezier(.2, .9, .3, 1) forwards; }
.reveal.stage.quick .timer, .reveal.stage.quick .tap { display: none; }
.reveal.stage .result { max-width: min(360px, 90vw); display: flex; flex-direction: column; gap: .3em; text-align: center; font-weight: 700; color: #f4ecd8; }
.reveal.stage .result > div { background: rgba(12, 8, 28, .82); border: 1px solid rgba(233, 196, 106, .35); border-radius: .6em; padding: .35em .8em; opacity: 0; animation: resin .35s ease-out forwards; }
.reveal.stage .result > div:nth-child(1) { animation-delay: .7s } .reveal.stage .result > div:nth-child(2) { animation-delay: 1.1s } .reveal.stage .result > div:nth-child(3) { animation-delay: 1.5s }
.reveal.stage .result > div:nth-child(4) { animation-delay: 1.9s } .reveal.stage .result > div:nth-child(5) { animation-delay: 2.3s }
.reveal.stage .result .sub { font-weight: 400; }
@keyframes resin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal.stage .timer { width: min(220px, 60vw); height: 3px; border-radius: 3px; background: rgba(233, 196, 106, .8); transform-origin: left; animation: timer var(--d) linear forwards; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.reveal.stage .tap { font-size: .75em; color: var(--dim); }
.hitflash { animation: hitflash 1.2s ease-out; }
@keyframes hitflash { 0% { scale: 1; box-shadow: 0 0 0 0 rgba(233, 196, 106, 0); } 15% { scale: 1.12; box-shadow: 0 0 0 4px rgba(233, 196, 106, .95), 0 0 24px rgba(233, 196, 106, .8); } 35% { scale: .97; } 50% { scale: 1.05; } 100% { scale: 1; box-shadow: 0 0 0 0 rgba(233, 196, 106, 0); } }

/* v0.13: „schreibt …“ */
.dots { display: inline-flex; gap: 2px; align-items: center; }
.dots i, .pres .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: none; animation: tdot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.pres.typing { color: var(--gold2); }
.hud .who small.typingline { display: none; align-items: center; gap: .35em; color: var(--gold2); }
.hud .who.istyping small.typingline { display: inline-flex; }
.hud .who.istyping small.oppdeck { display: none; }
.pdot.typing { background: var(--gold2); box-shadow: 0 0 8px rgba(233, 196, 106, .8); }
.ctyping { display: none; align-items: center; gap: .5em; padding: .3em .2em; color: var(--gold2); font-size: .9em; }
.ctyping.on { display: flex; }
.ctyping .dots { padding: .45em .7em; border-radius: 1em; background: rgba(255, 255, 255, .08); }
.ctyping .dots i { width: 6px; height: 6px; }

/* v0.14: Gegnerhand als Fächer aus Kartenrücken; die Plätze (.ohs) schrumpfen bei wenig Platz, die Karten überlappen dann stärker */
.hud.opp { position: relative; z-index: 4; overflow: visible; }
.oppHand { --cw: 30px; flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; justify-content: center; padding: 0 calc(var(--cw) - 14px) 0 0; pointer-events: none; }
.oppHand .ohs { position: relative; flex: 0 1 18px; min-width: 4px; }
.oppHand .card { --w: var(--cw); position: absolute; left: 0; top: 50%; margin-top: calc(var(--cw) * -0.62) !important; margin: 0; transform-origin: 50% -140%; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); box-shadow: 0 3px 8px rgba(0, 0, 0, .7); }
@media (max-width: 420px) { .oppHand { --cw: 26px; } }
@media (min-width: 1100px) and (min-aspect-ratio: 1001/1000) { .oppHand { --cw: 40px; } .oppHand .ohs { flex-basis: 26px; } }

/* v0.14: mystischer Sieg / Niederlage (nur transform/opacity) */
.overlay.end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; overflow: hidden; background: radial-gradient(ellipse at 50% 38%, rgba(30, 20, 60, .55), rgba(4, 3, 10, .92) 70%); backdrop-filter: none; }
.overlay.end-lose { background: radial-gradient(ellipse at 50% 38%, rgba(30, 22, 40, .6), rgba(2, 2, 6, .95) 70%); }
.overlay.end > .panel { position: relative; z-index: 2; background: rgba(14, 10, 30, .78); animation: endpanel .7s 1.5s both cubic-bezier(.2, .8, .3, 1); }
@keyframes endpanel { from { opacity: 0; transform: translateY(24px); } }
.endscreen { padding: 1.2em 1.4em 1.4em; }
.end-win .endscreen .big { animation: endtitle 1.2s 1.6s both ease-out; }
.end-lose .endscreen .big { color: #c9c3d8; text-shadow: 0 0 24px rgba(150, 120, 200, .55); animation: endtitle 1.6s 1.6s both ease-out; }
@keyframes endtitle { from { opacity: 0; letter-spacing: .5em; } }
.sigilwrap { position: relative; z-index: 1; width: min(68vw, 40vh, 360px); aspect-ratio: 1; flex: none; pointer-events: none; }
.sigilwrap .sigil { position: absolute; inset: 0; width: 100%; height: 100%; }
.sigilwrap.win .sigil, .sigilwrap.draw .sigil { animation: sigilin 1.5s cubic-bezier(.2, .9, .3, 1) both, sigilspin 80s 1.5s linear infinite; }
.sigilwrap.draw .sigil { opacity: .55; }
@keyframes sigilin { from { opacity: 0; transform: scale(.25) rotate(-120deg); } 70% { opacity: 1; transform: scale(1.06) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes sigilspin { to { transform: rotate(360deg); } }
.sigilwrap.lose .sigil { animation: sigillose 3s ease-out both; }
@keyframes sigillose { 0% { opacity: 0; transform: scale(1.15); } 25% { opacity: 1; transform: scale(1); } 30% { transform: translate(-6px, 2px) rotate(-1.5deg); } 35% { transform: translate(5px, -2px) rotate(1deg); } 40% { transform: translate(-2px, 1px); } 100% { opacity: .82; transform: translateY(10px) scale(.97); } }
.sigilwrap .rays { position: absolute; inset: -40%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .22) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); opacity: 0; animation: raysin 1.2s 1.1s both ease-out, sigilspin 120s 1.1s linear infinite reverse; }
@keyframes raysin { from { opacity: 0; transform: scale(.4); } to { opacity: 1; } }
.sigilwrap.lose .rays { display: none; }
.sigilwrap .flash { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 200, .95), rgba(255, 200, 90, .5) 40%, transparent 70%); opacity: 0; animation: flash 1s 1.15s ease-out both; }
.sigilwrap.lose .flash { background: radial-gradient(circle, rgba(190, 140, 255, .7), rgba(90, 50, 160, .3) 40%, transparent 70%); animation-delay: .8s; }
@keyframes flash { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
.sigilwrap .orb { position: absolute; left: 50%; top: 50%; width: 13%; height: 13%; margin: -6.5% 0 0 -6.5%; display: grid; place-items: center; opacity: 0; animation: orbin 1s cubic-bezier(.3, .1, .2, 1) both; }
.sigilwrap .orb .pip { width: 100%; height: 100%; }
@keyframes orbin { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(2); } 30% { opacity: 1; } 85% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1.1); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.4); } }
.endfx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.endfx .motes i { position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #f3c45a 50%, transparent 70%); opacity: 0; animation: moteup 5s ease-out 2 both; }
@keyframes moteup { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -85vh) scale(var(--s)); } }
.endfx.lose .motes i { bottom: auto; top: -12px; background: radial-gradient(circle, #d9cff0, #7a6a9a 55%, transparent 72%); animation-name: ashfall; }
@keyframes ashfall { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 15% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), 90vh) scale(var(--s)) rotate(160deg); } }
body.lite .sigilwrap .sigil, body.lite .sigilwrap .rays { animation-iteration-count: 1, 0; }
@media (prefers-reduced-motion: reduce) { .sigilwrap *, .endfx * { animation: none !important; opacity: 1; } .sigilwrap .flash, .sigilwrap .orb { display: none; } }
/* Handy: in der Leiste ist kein Platz – der Fächer hängt mittig unter der Gegnerleiste über dem Brett */
@media (max-width: 560px) {
  .oppHand { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); height: 0; flex: none; padding: 0 12px 0 0; }
  .oppHand .ohs { flex: 0 0 15px; }
  .oppHand .card { top: -6px; margin-top: 0 !important; transform-origin: 50% -60%; }
  .zone.opp { padding-top: 2.5em; }
}
@media (max-width: 380px) { .counter.ohcount { display: none; } } /* sehr schmal: der Fächer zeigt die Hand schon */

/* PC mit Seitenleiste: alle Fenster im Duell (Starthand, Auswahl, Menü, Kartenansicht, Sieg/Niederlage) mittig über der Spielfläche statt über dem ganzen Bildschirm */
@media (min-width: 1100px) and (min-height: 620px) and (min-aspect-ratio: 1001/1000) {
  body.ingame { --sidew: clamp(290px, 21vw, 380px); }
  body.ingame .overlay { padding-right: calc(var(--sidew) + 16px); }
  body.ingame .overlay.end { background: radial-gradient(ellipse at calc(50% - var(--sidew) / 2) 38%, rgba(30, 20, 60, .55), rgba(4, 3, 10, .92) 70%); }
  body.ingame .overlay.end-lose { background: radial-gradient(ellipse at calc(50% - var(--sidew) / 2) 38%, rgba(30, 22, 40, .6), rgba(2, 2, 6, .95) 70%); }
  body.ingame .overlay.end .endfx { right: var(--sidew); }
}

/* v0.16: Einladungen teilen / ablehnen */
.gamecard .invbtns { margin-left: auto; display: flex; flex-direction: column; gap: .35em; flex: none; }
.gamecard .invbtns .btn { white-space: nowrap; justify-content: center; }
.joinnote { margin: 1em 0 .2em; padding: .7em .9em; border-radius: .6em; background: rgba(233, 196, 106, .08); border: 1px solid rgba(233, 196, 106, .35); color: var(--gold2); font-size: .95em; }

/* v0.17: Lobby + Rangliste */
.lobbycard { border-color: rgba(120, 200, 255, .45); box-shadow: 0 0 0 1px rgba(120, 200, 255, .15), 0 6px 20px rgba(0, 0, 0, .35); }
.ranklist { display: flex; flex-direction: column; gap: .5em; max-width: 620px; margin-top: 1em; }
.rankrow { display: flex; align-items: center; gap: .8em; padding: .7em 1em; border-radius: .8em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rankrow .rk { width: 2em; text-align: center; font-family: var(--f-title); font-weight: 700; font-size: 1.15em; color: var(--dim); flex: none; }
.rankrow .rn { min-width: 0; flex: 1; }
.rankrow .rn b { font-size: 1.05em; }
.rankrow .rn .sub { font-size: .8em; }
.rankrow .re { font-family: var(--f-title); font-weight: 700; font-size: 1.35em; color: var(--gold2); flex: none; }
.rankrow.top1 { background: linear-gradient(90deg, rgba(233, 196, 106, .18), rgba(233, 196, 106, .03)); border-color: rgba(233, 196, 106, .55); }
.rankrow.top2 { background: linear-gradient(90deg, rgba(200, 210, 230, .12), rgba(200, 210, 230, .02)); }
.rankrow.top3 { background: linear-gradient(90deg, rgba(205, 127, 50, .14), rgba(205, 127, 50, .02)); }
.rankrow.me { box-shadow: inset 0 0 0 1.5px var(--gold); }
.rankrow.none { opacity: .55; }
.streak { margin-left: .45em; font-size: .78em; font-weight: 800; padding: .05em .4em; border-radius: 999px; background: rgba(140, 180, 255, .12); color: #a9c8ff; }
.streak.hot { background: rgba(255, 120, 60, .15); color: #ffb48a; }
@media (max-width: 700px) { .nav button { font-size: .74em; padding: .6em .05em; } .nav button span { letter-spacing: -.01em; } }
.joinstat { align-items: center; gap: .6em; margin-top: .5em; min-height: 1.6em; }
.btn.danger-t { color: #ff9a8a; }
/* v0.18.1: Mulligan – neuer Dialog übernimmt nahtlos vom alten (kein Ein-/Ausblenden) */
.overlay.nofade, .overlay.nofade > .panel { animation: none !important; }

/* v0.19: Admin-Modus */
.admsec { margin-top: .8em; padding: .8em 1em; border-radius: 12px; background: rgba(60, 200, 120, .08); border: 1px solid rgba(60, 200, 120, .25); }
.admsec.down { background: rgba(255, 60, 80, .12); border-color: rgba(255, 80, 100, .45); }
.admlist { display: flex; flex-direction: column; gap: .4em; }
.admrow { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .5em .7em; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.admrow.banned { opacity: .7; border-color: rgba(255, 90, 110, .35); }
.admname { min-width: 0; overflow-wrap: anywhere; }
.overlay.maint { z-index: 60; }
.overlay:has(.admindlg), .overlay:has(.askov) { z-index: 70; }
.overlay.askov { z-index: 80; }
/* v0.19: Kartenvorschau im Deckbau */
.bpbar { display: flex; align-items: center; justify-content: center; gap: .8em; padding: .6em .8em; border-radius: 14px; background: rgba(22, 18, 44, .92); border: 1px solid rgba(255, 255, 255, .12); }
.bpbar .bpn { min-width: 4.5em; text-align: center; font-weight: 700; }
.bpbar .btn { min-width: 3em; }

/* Set-2-Ankündigung auf der Startseite */
.news { position: relative; margin: 0 auto 1.4em; max-width: 760px; min-height: 150px; border-radius: 16px; overflow: hidden; padding: 1.1em 1.3em; background-size: cover; background-position: center right; border: 1px solid rgba(233, 196, 106, .35); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.news h2 { margin: .1em 0 .2em; font-family: var(--f-title); color: var(--gold2); letter-spacing: .08em; }
.news p { margin: 0 0 .8em; max-width: 26em; color: #e9e3f5; font-size: .95em; }
.news .ntag { font-size: .75em; letter-spacing: .15em; text-transform: uppercase; color: #c9b6ff; }
.news .x { position: absolute; top: .5em; right: .6em; background: rgba(0, 0, 0, .45); border: 0; color: #fff; border-radius: 50%; width: 1.9em; height: 1.9em; cursor: pointer; }

/* ---------- v0.21: Nachricht der Spielleitung, Patchnotes ---------- */
.annc { position: relative; margin: 0 auto 1.4em; max-width: 760px; padding: .9em 2.6em .9em 1.2em; border-color: rgba(233, 196, 106, .5); background: linear-gradient(90deg, rgba(60, 40, 10, .55), rgba(24, 20, 48, .8)); }
.annc .ntag { font-size: .75em; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.annc p { margin: .35em 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.annc .x { position: absolute; top: .5em; right: .6em; background: rgba(0, 0, 0, .45); border: 0; color: #fff; border-radius: 50%; width: 1.9em; height: 1.9em; cursor: pointer; }
.pnlist { display: flex; flex-direction: column; gap: 1em; max-height: 62dvh; overflow: auto; padding-right: .3em; scrollbar-width: thin; }
.pnv h3 { margin: 0 0 .3em; font-family: var(--f-title); color: var(--gold2); font-size: 1.05em; display: flex; gap: .6em; align-items: baseline; flex-wrap: wrap; }
.pnv h3 small { font-family: var(--f-body); color: var(--dim); font-weight: 400; font-size: .8em; }
.pnv ul { margin: 0; padding-left: 1.2em; }
.pnv li { margin: .2em 0; line-height: 1.35; }
.pnv.new { border-left: 3px solid var(--gold); padding-left: .8em; }
.admsec textarea { width: 100%; min-height: 4.5em; resize: vertical; font: inherit; color: var(--txt); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; padding: .6em; }

/* ---------- v0.22: Anmeldung mit Google / Discord ---------- */
.oauthbtns { display: flex; flex-direction: column; gap: .6em; }
.obtn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; width: 100%; }
.obtn.ob-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.obtn.ob-discord { background: #5865f2; color: #fff; border-color: #4752c4; }
.accts { display: flex; flex-direction: column; gap: .5em; }
.acctrow { display: flex; align-items: center; gap: .6em; }
.acctrow.on { padding: .55em .8em; border: 1px solid rgba(95, 227, 155, .35); border-radius: 12px; background: rgba(95, 227, 155, .06); }
.acctrow.on > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acctrow.on .dcicon { color: #8891f7; }

/* ---------- v0.24: Glocke im Duell, Spielerliste ---------- */
.bellbtn { position: relative; }
.bellbtn.has { border-color: rgba(233, 196, 106, .6); }
.bellnum { position: absolute; top: -.45em; right: -.45em; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 99px; background: #e5484d; color: #fff; font-size: .68em; line-height: 1.35em; text-align: center; box-shadow: 0 0 0 2px #0e0c1f; }
.bellbtn.bump { animation: bellbump .6s ease-out; }
@keyframes bellbump { 0% { transform: rotate(0); } 20% { transform: rotate(-14deg) scale(1.12); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } 100% { transform: rotate(0); } }
.belllist { display: flex; flex-direction: column; gap: .5em; margin-top: .8em; max-height: 60dvh; overflow: auto; }
.bellrow { display: flex; align-items: center; gap: .8em; justify-content: space-between; padding: .6em .8em; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.bellrow.new { border-color: rgba(233, 196, 106, .5); background: rgba(233, 196, 106, .07); }
.bellrow small { font-size: .78em; }
.plmore { cursor: pointer; }
.plsearch { width: 100%; margin: .6em 0; }
.pllist { display: flex; flex-direction: column; gap: .4em; max-height: 55dvh; overflow: auto; }
.plrow { display: flex; align-items: center; gap: .6em; padding: .45em .6em; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.plrow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plrow .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plrow .star { background: none; border: 0; font-size: 1.3em; cursor: pointer; color: var(--dim); padding: 0 .2em; }
.plrow .star.on { color: var(--gold); }

/* v0.25: Installieren-Karte, Profilbild-Hinweis, Versions-Warnung, Feedback */
.installcard, .pbhint { position: relative; display: flex; align-items: center; gap: .8em; margin: 0 auto 1.2em; max-width: 760px; padding: .75em 2.4em .75em 1em; border-color: rgba(150, 120, 255, .35); background: linear-gradient(90deg, rgba(40, 28, 80, .6), rgba(18, 15, 38, .8)); }
.pbhint { border-color: rgba(233, 196, 106, .4); background: linear-gradient(90deg, rgba(60, 42, 12, .5), rgba(18, 15, 38, .8)); }
.installcard .ico, .pbhint .ico { font-size: 1.7em; flex: none; }
.installcard .txt, .pbhint .txt { flex: 1; min-width: 0; font-size: .9em; line-height: 1.3; }
.installcard .txt b { display: block; color: var(--gold2); }
.installcard .txt span { color: var(--dim); font-size: .92em; }
.pbhint .txt b { color: var(--gold2); }
.installcard .btn, .pbhint .btn { flex: none; }
.installcard .x, .pbhint .x { position: absolute; top: .3em; right: .4em; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: .95em; padding: .2em .4em; }
@media (max-width: 560px) { .installcard, .pbhint { flex-wrap: wrap; } .installcard .btn, .pbhint .btn { margin-left: auto; } }
.isteps { list-style: none; padding: 0; margin: .8em 0; display: flex; flex-direction: column; gap: .55em; }
.isteps li { display: flex; gap: .7em; align-items: flex-start; line-height: 1.35; }
.isteps .num { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #2a1a00; font-size: .85em; }
.ishare { display: inline-flex; vertical-align: middle; color: #5aa2ff; margin-left: .2em; }
.outdated { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + .5em); transform: translateX(-50%); z-index: 95; width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: .8em; padding: .7em .9em; border-radius: 14px; background: linear-gradient(90deg, #4a2a06, #2a1838); border: 1px solid var(--gold); box-shadow: 0 10px 30px #000a; font-size: .9em; line-height: 1.3; }
.outdated span { flex: 1; min-width: 0; }
.outdated .btn { flex: none; }
.fbkind { display: flex; margin: .2em 0 .7em; flex-wrap: wrap; }
.fbkind button { white-space: nowrap; }
.dialog textarea#fbt { width: 100%; resize: vertical; font: inherit; color: var(--txt); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; padding: .6em; }
.fblist .admrow { align-items: flex-start; }

/* v0.26: Dialog offen → Seite darunter scrollt nicht mit (Handy: Scroll-Chaining aus dem Dialog) */
html:has(body > .overlay), body:has(> .overlay) { overflow: hidden; }
.overlay, .dialog, .zoom { overscroll-behavior: contain; }
/* v0.26: lange Decknamen (Höllenschlund, Sternenflotte) passen in schmale Kacheln */
.decktile { container-type: inline-size; }
.decktile .name { font-size: clamp(.82em, 8.6cqi, 1.1em); overflow-wrap: anywhere; hyphens: auto; line-height: 1.15; }
/* v0.26: Lange drücken = Karte ansehen (kein Text-Markieren/Systemmenü auf den Brett-Karten) */
.mini { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.lphint { display: block; font-size: .72em; opacity: .65; font-weight: 400; margin-top: .1em; }
@media (hover: hover) and (pointer: fine) { .lphint { display: none; } }

/* v0.26: Handy hochkant – eigene Reihe an der Mittelleiste wurde bei vollem Feld oben abgeschnitten
   (flex-end + overflow schiebt Überstand unerreichbar nach oben). margin-top:auto hält sie unten, ohne abzuschneiden. */
.zone.mine { justify-content: flex-start; }
.zone.mine > :first-child { margin-top: auto; }
.zone { padding-top: .8em; padding-bottom: .7em; }

/* v0.26: Im Duell scrollt das Dokument nie – sonst fährt die Adressleiste rein/raus und das Brett „wandert“ über dem Tisch */
html:has(body.ingame), body.ingame { overflow: hidden; overscroll-behavior: none; }
body.ingame .board { touch-action: manipulation; }
@media (hover: none) and (pointer: coarse) {
  body.ingame .board { position: fixed; inset: 0; height: auto; margin: 0; max-width: none; }
}

/* v0.26: Handy quer – Spielfeld links, Gegner/Leiste/Ich rechts in einer Spalte, Hand guckt unten heraus */
@media (orientation: landscape) and (max-height: 619.98px), (orientation: landscape) and (max-width: 1099.98px) and (max-height: 739.98px) {
  .board {
    display: grid; max-width: none; overflow: hidden;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 300px);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .zone.opp { grid-column: 1; grid-row: 1; }
  .zone.mine { grid-column: 1; grid-row: 2; }
  .hand { grid-column: 1; grid-row: 3; }
  .hud.opp { grid-column: 2; grid-row: 1; align-self: start; }
  .mid { grid-column: 2; grid-row: 1 / 4; align-self: center; z-index: 2; }
  .hud.me { grid-column: 2; grid-row: 3; align-self: end; }
  .hud, .mid { border: 0; border-left: 1px solid var(--line); }
  .hud { flex-wrap: wrap; padding: .3em .5em; gap: .35em; background: rgba(14, 11, 30, .82); }
  .hud .avimg.hud, .oppHand { display: none; }
  .hud .who { font-size: .85em; flex: 1; }
  .hud .counters { margin-left: 0; width: 100%; justify-content: flex-start; }
  .counter, .counter[data-a] { font-size: .75em; padding: .12em .4em; min-height: 28px; min-width: 30px; }
  .life { width: 38px; height: 38px; font-size: 1em; }
  .mid { flex-direction: column; flex-wrap: nowrap; gap: .3em; padding: .4em .5em; min-height: 0; background: rgba(14, 11, 30, .9); }
  .mid .phases { display: none; }
  .mid .helpbtn { position: absolute; right: .4em; top: .3em; }
  .prompt { font-size: .82em; padding: 0 1.6em; }
  .actions { justify-content: center; }
  .btn.small { font-size: .82em; padding: .35em .7em; }
  .zone { padding: .45em .6em; gap: .25em; justify-content: center !important; }
  .zone.mine > :first-child { margin-top: 0; }
  .mini { --w: clamp(50px, 17vh, 74px); }
  .m-name { font-size: .5em; bottom: 15px; }
  .landchip { font-size: .78em; }
  .hand { min-height: 0; height: 21vh; padding: .3em .4em 0; overflow: visible; align-items: flex-start; z-index: 10; justify-content: center; }
  .hand .card { --w: clamp(64px, 19vh, 92px); margin: 0 -8px; }
  .hand .card.chosen { transform: translateY(-40%); }
  body.ingame .overlay { padding-right: 16px; }
}
@media (orientation: landscape) and (max-height: 619.98px), (orientation: landscape) and (max-width: 1099.98px) and (max-height: 739.98px) { .mid { position: relative; } }
/* v0.26.1: Zoom quer – Karte an die Bildschirmhöhe angepasst, Erklärungen + Knöpfe rechts daneben */
@media (orientation: landscape) and (max-height: 619.98px), (orientation: landscape) and (max-width: 1099.98px) and (max-height: 739.98px) {
  .zoom { flex-direction: row; align-items: center; justify-content: center; gap: 1.2em; overflow: hidden; }
  .zoom .card { --w: min(330px, calc((100dvh - 40px) * 63 / 88)); }
  .zoom .zside { display: flex; flex-direction: column; align-items: center; gap: .8em; width: min(360px, 44vw); max-height: calc(100dvh - 40px); overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain; }
  .zoom .zside .kwlist { width: 100%; }
  .zoom .zside:empty { display: none; }
  .zoom .zside::-webkit-scrollbar { display: none; }
}
.lane.fit .mini { --w: var(--fitw); }
.lane.fit .m-kw i { font-size: .6em; }
.lane.fitrow { flex-shrink: 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 9px 4px 7px; scrollbar-width: none; }
.lane.fitrow::-webkit-scrollbar { display: none; }
/* v0.26: Abwerfen-Dialog – gerade gezogene Karten markiert */
.dialog .cards .card.justdrawn { box-shadow: 0 0 0 2px #8fd3ff, 0 0 18px rgba(120, 200, 255, .55); }
.dialog .cards .card.justdrawn::before { content: '✨ neu'; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 5; background: #8fd3ff; color: #06223a; font-weight: 900; font-size: .62em; padding: .05em .5em; border-radius: 999px; white-space: nowrap; }
.dialog .cards .card.justdrawn.chosen { box-shadow: 0 0 0 3px #ff8a5c, 0 0 22px #ff6a3d; }

/* ---------- v0.27 ---------- */
/* iPhone (installierte App, Statusleiste durchsichtig): Inhalte unter Notch/Dynamic Island hervorholen */
.topbar { padding-top: calc(.7em + env(safe-area-inset-top, 0px)); padding-left: calc(1em + env(safe-area-inset-left, 0px)); padding-right: calc(1em + env(safe-area-inset-right, 0px)); }
@media (max-width: 700px) { .menubtn { top: calc(50% + env(safe-area-inset-top, 0px) / 2); right: calc(.7em + env(safe-area-inset-right, 0px)); } }
.board { padding-top: env(safe-area-inset-top, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.overlay { padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.logpanel { padding-top: calc(1em + env(safe-area-inset-top, 0px)); }
/* Große Kartenansicht: nie höher als der Bildschirm, Knöpfe bleiben unten erreichbar (lange Kartentexte) */
.overlay > .panel:has(> .zoom) { max-height: 100%; display: flex; min-height: 0; }
.zoom { max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.zoom > .zside > .row:last-child, .zoom > .zside > .bpbar { position: sticky; bottom: 0; z-index: 3; width: min(360px, 100%); justify-content: center; flex: none; padding: .6em; border-radius: 14px; background: rgba(14, 11, 30, .97); border: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(0, 0, 0, .6); }
/* Deckname unter dem Spielernamen: am Handy zweizeilig statt abgeschnitten */
@media (max-width: 700px) {
  .hud .who small.oppdeck { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; line-height: 1.15; font-size: .7em; overflow-wrap: anywhere; }
  .hud .who small.oppdeck .pip { display: inline-grid; vertical-align: -.2em; }
  .hud .who.istyping small.oppdeck { display: none; }
  .gamecard .meta { overflow-wrap: anywhere; }
}
/* Glocke: Kopfzeile mit „Alle gelesen“/„Leeren“, Liste scrollt */
.belldlg .belllist { max-height: min(60vh, 460px); overflow: hidden auto; overscroll-behavior: contain; }
.bellhead { display: flex; align-items: center; justify-content: space-between; gap: .6em; flex-wrap: wrap; }
/* Vergangene Duelle: Bilanz kompakt */
.tallies .tmore { cursor: pointer; }
/* Patchnotes: ältere/kleine Einträge zusammengefasst */
.pnv.pnsum h3 { font-size: .95em; opacity: .8; }
.pnmore { text-align: center; margin-top: .8em; }
/* Login: Geräte-Code einfügen */
.codebox { display: flex; gap: .5em; margin-top: .6em; }
.codebox input { flex: 1; min-width: 0; }
.page.nolive > * { animation: none !important; }
@media (orientation: landscape) and (max-height: 619.98px), (orientation: landscape) and (max-width: 1099.98px) and (max-height: 739.98px) { .zoom .zside { max-height: 100%; } }

/* v0.28: FHD-Skalierung – Reihe darf nicht schrumpfen (sonst ragen Karten über Länder/Siegel/Relikte und fitZones merkt nichts),
   Platz für angehobene Angreifer (-10px + Abzeichen) bzw. abgesenkte Blocker, Kartenbreite am PC auch an die Höhe gekoppelt */
.zone > .lane, .zone > .lands { flex-shrink: 0; }
.zone.mine { padding-top: max(.8em, 26px); }
.zone.opp { padding-bottom: max(.7em, 20px); }
@media (min-width: 1100px) and (min-height: 620px) and (min-aspect-ratio: 1001/1000) {
  .zone { justify-content: safe center !important; }
  .mini { --w: clamp(96px, min(7.4vw, 14vh), 160px); }
  .zone > .lands { margin-top: .3em; }
}
@media (min-width: 1700px) and (min-height: 900px) and (min-aspect-ratio: 1001/1000) {
  .mini { --w: min(170px, 15.5vh); }
  .hand { --hw: min(200px, 19vh); }
}
@media (orientation: landscape) and (max-height: 619.98px), (orientation: landscape) and (max-width: 1099.98px) and (max-height: 739.98px) {
  .zone.mine { padding-top: max(.45em, 22px); }
  .zone.opp { padding-bottom: max(.45em, 16px); }
}
.c-name.long { font-size: 5.1cqw; }
.c-name.xl { font-size: 4.7cqw; letter-spacing: -.01em; }

/* ---------- v0.29: eine Skalierung für alle Hochformate ----------
   Vorher galten zwischen 560 und 1100 px Breite feste Pixelgrößen – auf einem Chromebook/Tablet hochkant (z. B. 1080×1850)
   war das Brett dadurch winzig und leer. Jetzt: ein Faktor --u („Handy-Pixel“) = 1px am Handy, wächst mit Breite UND Höhe
   (je nachdem, was knapper ist) bis 3.2px. Alle Brettgrößen sind Handy-Werte × --u, die Schrift im Duell ebenso –
   das Handy-Layout (das gut aussieht) wird auf großen Hochformaten einfach proportional größer.
   Gilt nur im Hochformat (Höhe ≥ Breite). Querformat bleibt wie bisher (PC-Raster, Tablet quer, Handy quer) – dort ist die Höhe knapp,
   größere Leisten hätten die Kartenreihen zusammengedrückt (getestet: iPad quer 1024×768).
   Hochkant gedrehte PC-Monitore (≥1100 breit, aber höher als breit) bekommen ebenfalls das einspaltige Brett. */
:root { --u: 1px; }
@media (orientation: portrait) {
  :root { --u: clamp(1px, min(100vw / 420, 100dvh / 800), 3.2px); }
  body.ingame { font-size: calc(16 * var(--u)); }
  .mini { --w: calc(66 * var(--u)); }
  .m-name { font-size: .52em; bottom: calc(16 * var(--u)); }
  .m-pt { font-size: .78em; }
  .hand .card { --w: calc(86 * var(--u)); margin: 0 calc(-12 * var(--u)); }
  .hand { min-height: calc(122 * var(--u)); }
  .life { width: calc(44 * var(--u)); height: calc(44 * var(--u)); font-size: 1.15em; }
  .hud { padding: .35em .5em; gap: .4em; }
  .counter { font-size: .75em; padding: .15em .4em; }
  .counter[data-a] { min-width: calc(38 * var(--u)); min-height: calc(34 * var(--u)); }
  .mid { padding: .35em .5em; min-height: calc(52 * var(--u)); }
  .prompt { font-size: .85em; }
  .helpbtn { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
  .avimg.hud { width: calc(32 * var(--u)); height: calc(32 * var(--u)); font-size: .8em; }
  .pile { width: calc(34 * var(--u)); height: calc(46 * var(--u)); }
  .relics .mini { --w: calc(44 * var(--u)); }
  .oppHand { --cw: calc(28 * var(--u)); }
  .oppHand .ohs { flex-basis: calc(16 * var(--u)); }
  .zone.mine { padding-top: max(.8em, calc(26 * var(--u))); }
  .zone.opp { padding-bottom: max(.7em, calc(20 * var(--u))); }
  .lane.fitrow { padding: calc(9 * var(--u)) 4px calc(7 * var(--u)); }
  /* Fenster im Duell wachsen mit */
  body.ingame .dialog { width: min(calc(560 * var(--u)), 100%); }
  body.ingame .dialog .cards .card { --w: calc(98 * var(--u)); }
  body.ingame .zoom .card { --w: min(calc(330 * var(--u)), 82vw, calc(58dvh * 63 / 88)); }
  body.ingame .zoom .info { max-width: calc(360 * var(--u)); }
  body.ingame .zoom > .zside > .row:last-child, body.ingame .zoom > .zside > .bpbar { width: min(calc(360 * var(--u)), 100%); }
  body.ingame .kwlist { width: min(calc(420 * var(--u)), 92vw); }
  body.ingame .kwpop { width: min(calc(320 * var(--u)), 90vw); }
  body.ingame .reveal.stage .card { --w: min(calc(250 * var(--u)), 58vw, 34vh); }
  body.ingame .reveal.stage .result { max-width: min(calc(360 * var(--u)), 90vw); }
  body.ingame .reveal.stage .timer { width: min(calc(220 * var(--u)), 60vw); }
  body.ingame .combatlog { width: min(calc(440 * var(--u)), 92%); }
  body.ingame .logpanel { width: min(calc(380 * var(--u)), 92vw); }
  body.ingame .chatpanel { width: min(calc(520 * var(--u)), 100vw); }
  body.ingame .cbubble { max-width: calc(260 * var(--u)); }
}
/* v0.29: hochkant ist die Mittelleiste zu schmal für Phasen + Hinweis + Knöpfe (der Hinweis brach in 5 Zeilen um) – Phasen wie am Handy aus */
@media (max-aspect-ratio: 5/6) { .mid .phases { display: none; } }

/* ---------- v0.30 ---------- */
/* Glocke außerhalb des Duells: Zähler am Reiter „Spiele“, antippbarer Hinweis (ohne Dauer-Animation, siehe Grafiklast v0.9) */
.nav button { position: relative; }
.navnum { position: absolute; top: .1em; right: .2em; min-width: 1.45em; height: 1.45em; padding: 0 .35em; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: #2a1a00; font-size: .68em; font-weight: 900; font-style: normal; box-shadow: 0 0 8px rgba(233, 196, 106, .7); pointer-events: none; animation: pop .3s cubic-bezier(.2, .9, .3, 1.3); }
@media (max-width: 700px) { .navnum { top: .15em; right: calc(50% - 2.4em); font-size: .95em; } }
.toast { width: max-content; max-width: min(90vw, 440px); } /* left:50% halbierte sonst die verfügbare Breite → schmale Spalte */
.toast.tap { cursor: pointer; border-color: var(--gold3); padding-right: 2.2em; }
.toast.tap::after { content: '›'; position: absolute; right: .8em; top: 50%; transform: translateY(-50%); font-size: 1.4em; color: var(--gold2); }
/* Kartentext: fließt um das Stärke-Schild (unsichtbarer Platzhalter rechts unten), lange Texte eine Stufe kleiner */
.c-text::before { content: ''; float: right; width: 0; height: calc(100% - 10.5cqw); }
.c-text:not(:has(.ptsp))::before { display: none; }
.c-text .ptsp { float: right; clear: right; width: 23cqw; height: 10.5cqw; margin-right: -2.6cqw; }
.c-text.t-l { font-size: 5.25cqw; } .c-text.t-l .flavor { font-size: 4.7cqw; }
.c-text.t-xl { font-size: 4.85cqw; line-height: 1.2; } .c-text.t-xl .flavor { font-size: 4.4cqw; }
.c-text.t-xxl { font-size: 4.5cqw; line-height: 1.18; } .c-text.t-xxl .flavor { font-size: 4.1cqw; }
/* Doppelländer: Text + Symbol – das Symbol nimmt nur den Rest (vorher 100 % zusätzlich → Überlauf) */
.c-text:has(.land-sym) { display: flex; flex-direction: column; }
.c-text .land-sym { flex: 1; height: auto; min-height: 0; }
.c-text p:last-of-type { margin-bottom: 0; }
/* Login-Banner: Schriftzug an der Breite der Box statt des Bildschirms (am PC ragte das „A“ über den Rand, mit großer
   Systemschrift auch am Handy); Buchstabenabstand hängt nicht mehr rechts über; Bild blendet oben weich aus statt hart abzuschneiden (Sonne lag direkt an der Kante) */
.hero { container-type: inline-size; }
.hero .big { font-size: min(5.2rem, 14.2cqi); letter-spacing: .14em; padding-left: .14em; white-space: nowrap; }
.hero:has(.big)::before { background-position: 0 0, center top; }
.hero::before { -webkit-mask-image: linear-gradient(180deg, transparent, #000 2.2em); mask-image: linear-gradient(180deg, transparent, #000 2.2em); }
.hero:has(.big) { border-radius: 24px; padding-top: 2.8em; }
/* Google-/Discord-Knöpfe: einheitlich hoch, Logo in fester Box links, Text mittig, ohne Gold-Effekte der normalen Knöpfe */
.btn.obtn { position: relative; min-height: 48px; padding: .6em 3em; border-radius: 12px; font-weight: 800; font-size: 1em; letter-spacing: .01em; gap: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: filter .15s, transform .1s, box-shadow .15s; }
.btn.obtn > svg, .btn.obtn > .obico { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; flex: none; }
.btn.obtn.ob-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; text-shadow: none; }
.btn.obtn.ob-google:hover { background: #f5f7fa; filter: none; box-shadow: 0 2px 14px rgba(255, 255, 255, .18); }
.btn.obtn.ob-discord { background: #5865f2; color: #fff; border: 1px solid #6f7af5; text-shadow: none; }
.btn.obtn.ob-discord:hover { background: #4752c4; filter: none; box-shadow: 0 2px 14px rgba(88, 101, 242, .45); }
.acctrow { min-height: 48px; }
.acctrow > .btn.obtn { flex: 1; }
.acctrow.on > svg { width: 22px; height: 22px; flex: none; }
.acctrow.on .dcicon { color: #8891f7; }

/* v0.31: Umzugsbildschirm SPHÄRA → Glyphra */
.movescr { max-width: 520px; margin: 0 auto; padding: 1.5rem 16px; text-align: center; }
.movescr .panel { margin-top: 1rem; padding: 1.2em 1.2em 1em; }
.movescr .btn { display: block; margin: .6rem auto 0; min-width: 14em; }
