/* Checkout-Popup: Belohnungs-Zeile im Erfolgszustand */
.co-reward {
  margin: -8px auto 22px;
  max-width: 380px;
  padding: 10px 16px;
  font-family: var(--mp-sans);
  font-size: 13px;
  letter-spacing: .3px;
  color: var(--mp-teal-1, #6ee7d8);
  border: 1px solid rgba(77, 208, 196, .3);
  background: rgba(35, 155, 149, .08);
}
.co-reward b { color: var(--mp-bone, #e8dec5); font-weight: 700; }
.co-reward.muted { color: var(--mp-ink-dim, #847b65); border-color: rgba(216, 177, 90, .2); background: rgba(11, 13, 18, .5); }
.co-reward.muted b { color: var(--mp-ink, #aea58c); }

/* Support Us — quiet goodwill item pinned to the bottom of the nav rail */
.sideSupport {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: calc(100% - 32px);
  margin: 0 16px 10px;
  padding: 9px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mp-ink-dim);
  font: inherit;
  font-size: 12px;
  letter-spacing: .3px;
  text-align: left;
  cursor: pointer;
  opacity: .72;
}
.sideSupport .navIcon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--mp-gold-2);
}
.sideSupport .navIcon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sideSupport:not(:disabled):hover,
.sideSupport:not(:disabled):focus-visible {
  opacity: 1;
  border-color: rgba(216, 177, 90, .22);
  color: var(--mp-gold-1, #d8b15a);
  outline: none;
}
/* Beta-Feedback hebt sich vom (goldenen) Support-Knopf durch Teal ab. */
.sideFeedback:not(:disabled):hover,
.sideFeedback:not(:disabled):focus-visible {
  border-color: rgba(77, 208, 196, .30);
  color: var(--mp-teal-2, #4dd0c4);
}

/* Footer Codex — written-out label next to the utility icons */
.sideCodex {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mp-ink-dim);
  font: inherit;
  font-size: 11px;
  letter-spacing: .4px;
  text-align: left;
  cursor: pointer;
}
/* Codex & Support sind jetzt aktive Buttons (öffnen je ein Info-Modal) —
   ruhig, aber nicht ausgegraut. */
#navCodex, #navSupport { opacity: .9; }
.sideCodex .navIcon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--mp-gold-2);
}
.sideCodex .navIcon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sideCodex .sideCodexText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sideCodex:not(:disabled):hover,
.sideCodex:not(:disabled):focus-visible {
  border-color: rgba(216, 177, 90, .30);
  color: var(--mp-gold-1, #d8b15a);
  outline: none;
}

/* Collapsed rail: shrink the standalone items to icon-only tiles */
body.side-nav-collapsed .sideSupport {
  width: 38px;
  margin: 0 auto 10px;
  grid-template-columns: 18px;
  justify-content: center;
  justify-items: center;
  padding: 0;
  min-height: 38px;
}
body.side-nav-collapsed .sideSupport .sideSupportText,
body.side-nav-collapsed .sideCodex .sideCodexText {
  display: none;
}
body.side-nav-collapsed .sideCodex {
  width: 38px;
  margin: 0 auto;
  grid-template-columns: 18px;
  justify-content: center;
  justify-items: center;
  padding: 0;
  min-height: 38px;
}

/* Footer Logout — real icon button sitting with the utility symbols */
.sideUtilityRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 177, 90, .10);
}
.sideUtilityRow .sideUtility {
  flex: 1;
  padding: 0;
  border-top: 0;
}
.sideLogout {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mp-ink-dim);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.sideLogout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sideLogout:hover,
.sideLogout:focus-visible {
  border-color: rgba(200, 70, 70, .5);
  color: #e0786f;
  background: rgba(40, 14, 14, .4);
  outline: none;
}
/* Nachrichten als echtes Icon-Button in der Fußleiste (mit Ungelesen-Zähler). */
.sideUtilBtn {
  position: relative;
  width: 32px; height: 32px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent;
  color: var(--mp-ink-dim); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.sideUtilBtn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.sideUtilBtn:hover,
.sideUtilBtn:focus-visible {
  border-color: rgba(216, 177, 90, .3);
  color: var(--mp-gold-1, #d8b15a);
  outline: none;
}
.sideUtilBtn.is-current {
  color: var(--mp-teal-2, #4dd0c4);
  border-color: rgba(77, 208, 196, .4);
}
/* Sound-Stummschalter (Glocke): Bell <-> durchgestrichene Bell je nach Zustand. */
.sideMuteBtn .ic-bell-off { display: none; }
.sideMuteBtn.is-muted .ic-bell { display: none; }
.sideMuteBtn.is-muted .ic-bell-off { display: block; }
.sideMuteBtn.is-muted { color: var(--mp-ink-faint, #4a4537); }
.sideMuteBtn.is-muted:hover,
.sideMuteBtn.is-muted:focus-visible { color: var(--mp-gold-1, #d8b15a); }

/* Katzen-Ruhemodus-Schalter (neben der Glocke): wach = Katzenkopf,
   Ruhemodus = schlafender Kopf mit Zzz. */
.sideCatMuteBtn .ic-cat-sleep { display: none; }
.sideCatMuteBtn.is-muted .ic-cat { display: none; }
.sideCatMuteBtn.is-muted .ic-cat-sleep { display: block; }
.sideCatMuteBtn.is-muted { color: var(--mp-ink-faint, #4a4537); }
.sideCatMuteBtn.is-muted:hover,
.sideCatMuteBtn.is-muted:focus-visible { color: var(--mp-gold-1, #d8b15a); }
.sideUtilBadge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #e0584f; color: #fff;
  font-family: var(--mp-mono, monospace);
  font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg, #0b0e14);
}
.sideUtilBadge[hidden] { display: none; }
body.side-nav-collapsed .sideUtilityRow {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
}
body.side-nav-collapsed .sideUtilityRow .sideUtility {
  flex: none;
  border-top: 0;
  padding: 0;
}

/* Collapsed rail: drop the Servers-Online panel, and turn the (text-hidden)
   section labels into the slim section dividers the user wanted back. */
body.side-nav-collapsed .sideStatus {
  display: none !important;
}
body.side-nav-collapsed .sideNavLabel {
  display: block !important;
  width: 26px;
  height: 0;
  margin: 11px auto;
  padding: 0;
  border-top: 1px solid rgba(216, 177, 90, .22);
  font-size: 0 !important;
  letter-spacing: 0;
  color: transparent;
  overflow: hidden;
}

/* Collapsed rail: keep ONLY the user avatar from the account block as a compact
   profile entry (click = profile). Name, rank, membership and the login form stay
   hidden to save vertical space. */
body.side-nav-collapsed .sideAccount {
  display: grid !important;
  margin: 14px auto 0;
  padding: 0;
  justify-items: center;
}
/* Pull the first section divider up so the avatar-to-divider gap matches the
   spacing between sections (the collapsed nav otherwise had a big top offset). */
body.side-nav-collapsed .sideNavList {
  margin-top: 0;
  padding-top: 0;
}
body.side-nav-collapsed .sideUserName,
body.side-nav-collapsed .sideUser small,
body.side-nav-collapsed .sideMembership,
body.side-nav-collapsed #authPanel {
  display: none !important;
}
body.side-nav-collapsed .sideUser {
  width: 40px;
  min-height: 40px;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: 40px;
  justify-content: center;
  justify-items: center;
  border: 0;
  background: transparent;
}
body.side-nav-collapsed .sideUser .sideAvatar {
  grid-row: auto;
  width: 38px;
  height: 38px;
}

/* Ranked page sat at z-index:auto inside .modeScreen, so the animated
   .modeScreen::after mist (blur, z-index:0) painted over it like a veil.
   Lift the page content above the mist. */
.rankedPage {
  position: relative;
  z-index: 1;
}

/* ===========================================================
   OAuth login (Google + Discord) — primary login, magic link as fallback
   =========================================================== */
.authOauth {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.oauthBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(216, 177, 90, .22);
  background: rgba(11, 13, 18, .6);
  color: var(--mp-bone, #e8dec5);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .04s ease;
}
.oauthBtn:hover {
  border-color: rgba(216, 177, 90, .5);
  background: rgba(20, 23, 31, .82);
}
.oauthBtn:active { transform: translateY(1px); }
.oauthBtn:disabled { opacity: .6; cursor: default; }
.oauthIcon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.oauthDiscord { color: #c7d0ff; }
.oauthDiscord .oauthIcon { color: #5865F2; }
.authDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--mp-ink-dim);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.authDivider::before,
.authDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 177, 90, .18), transparent);
}

/* ===========================================================
   Sidebar "Einloggen" button + login popup modal
   =========================================================== */
.authOpenBtn {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid rgba(77, 208, 196, .35);
  background: linear-gradient(180deg, rgba(77, 208, 196, .14), rgba(77, 208, 196, .04));
  color: var(--mp-teal-1, #6ee7d8);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.authOpenBtn:hover,
.authOpenBtn:focus-visible {
  border-color: var(--mp-teal-1, #6ee7d8);
  background: linear-gradient(180deg, rgba(77, 208, 196, .22), rgba(77, 208, 196, .07));
  outline: none;
}

/* Login-Popup (Anmelde-Modal) — Design-Vorlage "Sign in Modal" 1:1 portiert.
   Aussenhuelle #authModal = Overlay (JS toggelt .show + [hidden]); Panel = .si. */
.authModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(7, 8, 11, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.authModal.show { display: grid; animation: authOverlayIn 240ms ease; }
@keyframes authOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.si {
  position: relative;
  width: 452px;
  max-width: 100%;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(77, 208, 196, .06), transparent 60%),
    linear-gradient(180deg, rgba(20, 23, 31, .97) 0%, rgba(9, 11, 15, .98) 100%);
  border: 1px solid rgba(216, 177, 90, .3);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(216, 177, 90, .08),
    inset 0 0 70px rgba(0, 0, 0, .4);
  animation: siIn 320ms cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes siIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.si::before, .si::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--mp-gold-2);
  pointer-events: none;
}
.si::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.si::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.si-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mp-teal-2) 30%, var(--mp-gold-1) 70%, transparent);
  opacity: .55;
}

/* Header */
.si-head { padding: 30px 32px 4px; position: relative; }
/* Magister Schnurr empfaengt am Eingang (profile-auth.js setzt ihn rein) */
.si-cat { position: absolute; right: 30px; bottom: -6px; color: var(--mp-gold-1, #d8b15a); pointer-events: none; }
.si-cat .coachCat { width: 74px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(216, 177, 90, .2)); }
@media (max-width: 540px) { .si-cat { display: none; } }
.si-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-teal-1);
  margin-bottom: 14px;
}
.si-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--mp-teal-1);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mp-teal-1);
  animation: siPulseGlow 1.9s ease-in-out infinite;
}
.si-eyebrow .diamond {
  width: 5px; height: 5px;
  background: var(--mp-gold-1);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--mp-gold-glow);
}
@keyframes siPulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.si-title {
  font-family: var(--mp-serif);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
  background: linear-gradient(180deg, #f5ebcf 0%, #e8c879 55%, #b88a2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.si-sub {
  font-family: var(--mp-serif-body);
  font-size: 18px;
  line-height: 1.45;
  color: var(--mp-ink);
  margin: 14px 0 0;
}
.si-sub strong { color: var(--mp-bone); font-weight: 600; }

.si-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 177, 90, .22);
  background: none;
  color: var(--mp-ink-dim);
  cursor: pointer;
  transition: all 160ms ease;
}
.si-close:hover {
  color: var(--mp-bone);
  border-color: var(--mp-gold-1);
  background: rgba(28, 22, 12, .6);
  box-shadow: 0 0 16px rgba(216, 177, 90, .18);
}

/* Body */
.si-body { padding: 24px 32px 6px; display: flex; flex-direction: column; gap: 11px; }

.si-provider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--mp-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  color: var(--mp-bone);
  background: rgba(13, 16, 22, .85);
  border: 1px solid rgba(216, 177, 90, .28);
  cursor: pointer;
  transition: all 180ms ease;
}
.si-provider::before, .si-provider::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid rgba(216, 177, 90, .35);
  opacity: 0;
  transition: opacity 180ms ease;
}
.si-provider::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.si-provider::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }
.si-provider:hover {
  border-color: var(--mp-gold-1);
  color: var(--mp-bone);
  background: rgba(22, 19, 12, .7);
  box-shadow: 0 0 22px rgba(216, 177, 90, .12);
}
.si-provider:hover::before, .si-provider:hover::after { opacity: 1; }
.si-provider .ico { width: 21px; height: 21px; flex-shrink: 0; display: grid; place-items: center; }
.si-provider.discord:hover { border-color: #8a90f5; box-shadow: 0 0 22px rgba(110, 117, 245, .18); }
.si-provider:disabled { opacity: .6; cursor: default; }

.si-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 7px 0 3px;
  color: var(--mp-ink-dim);
  font-size: 10px;
  letter-spacing: 2.6px;
  font-weight: 700;
  text-transform: uppercase;
}
.si-divider::before, .si-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 177, 90, .28));
}
.si-divider::after { background: linear-gradient(90deg, rgba(216, 177, 90, .28), transparent); }

.si-form { display: flex; flex-direction: column; gap: 11px; }
.si-field { position: relative; }
.si-input {
  width: 100%;
  font-family: var(--mp-sans);
  font-size: 14.5px;
  letter-spacing: .3px;
  color: var(--mp-bone);
  background: rgba(7, 8, 11, .6);
  border: 1px solid rgba(216, 177, 90, .4);
  padding: 15px 16px;
  transition: all 180ms ease;
  outline: none;
}
.si-input::placeholder { color: var(--mp-ink-faint); }
.si-input:focus {
  border-color: var(--mp-teal-2);
  background: rgba(9, 16, 18, .7);
  box-shadow: 0 0 0 1px rgba(77, 208, 196, .25), 0 0 22px rgba(77, 208, 196, .12);
}

.btn-magic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--mp-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0c0e13;
  padding: 16px 24px;
  background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 40%, #b08530 100%);
  border: 1px solid #f0d27a;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(216, 177, 90, .25),
    0 0 28px rgba(216, 177, 90, .22),
    inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: all 200ms ease;
}
.btn-magic:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(216, 177, 90, .4),
    0 6px 38px rgba(216, 177, 90, .42),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-magic:disabled { opacity: .65; cursor: default; transform: none; }
.btn-magic .corner { position: absolute; width: 5px; height: 5px; border: 1px solid #6a4f1a; }
.btn-magic .corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.btn-magic .corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.btn-magic .corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.btn-magic .corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; }
.btn-magic .spark { display: inline-block; transition: transform 220ms ease; }
.btn-magic:hover .spark { transform: rotate(18deg) scale(1.12); }

.si-hint {
  margin: 13px 0 0;
  font-family: var(--mp-serif-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--mp-ink-dim);
}
.si-hint strong { color: var(--mp-ink); font-weight: 600; }

/* Footer (Rechtshinweis) — funktionale [data-legal-overlay]-Buttons statt Dummy-Links */
.si-foot {
  margin: 18px 0 0;
  padding: 16px 32px 26px;
  border-top: 1px dashed rgba(216, 177, 90, .14);
}
.si-legal {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--mp-ink-faint);
  letter-spacing: .2px;
}
.si-legal b, .si-legal strong { color: var(--mp-ink-dim); font-weight: 700; }
.si-legal a, .si-legal .authLegalLink {
  color: var(--mp-teal-2);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(77, 208, 196, .3);
  transition: all 160ms ease;
}
.si-legal a:hover, .si-legal .authLegalLink:hover { color: var(--mp-teal-1); border-color: var(--mp-teal-1); }

@media (max-width: 480px) {
  .si-title { font-size: 32px; }
  .si-head { padding: 26px 22px 4px; }
  .si-body { padding: 20px 22px 6px; }
  .si-foot { padding: 16px 22px 22px; }
}

/* ===== Bestätigungsdialog (confirmDialog) ===== */
.confirmModal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 4, 8, .74);
  backdrop-filter: blur(4px);
}
.confirmModal.show { display: flex; }
.confirmModalPanel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(216, 177, 90, .22);
  background: linear-gradient(180deg, rgba(20, 24, 33, .97), rgba(12, 15, 21, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: confirmPop .14s ease-out;
}
.confirmModalPanel.is-danger { border-color: rgba(229, 87, 62, .4); }
/* Eckklammern im Seiten-Stil */
.confirmModalPanel::before,
.confirmModalPanel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(216, 177, 90, .55);
  pointer-events: none;
}
.confirmModalPanel.is-danger::before,
.confirmModalPanel.is-danger::after { border-color: rgba(229, 87, 62, .6); }
.confirmModalPanel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.confirmModalPanel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
@keyframes confirmPop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.confirmModalTitle {
  margin: 0 0 8px;
  color: var(--mp-bone, #e8dec5);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
}
.confirmModalMsg {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}
.confirmModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirmModalActions button {
  padding: 9px 18px;
  border: 1px solid rgba(120, 150, 160, .25);
  background: rgba(11, 13, 18, .6);
  color: var(--mp-bone, #e8dec5);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.confirmCancel:hover { border-color: rgba(120, 150, 160, .5); background: rgba(20, 28, 34, .6); }
.confirmAccept { border-color: rgba(216, 177, 90, .35); }
.confirmAccept:hover { border-color: rgba(216, 177, 90, .6); background: rgba(216, 177, 90, .1); }
.confirmAccept.is-danger { color: #ff9b8a; border-color: rgba(229, 87, 62, .4); }
.confirmAccept.is-danger:hover { background: rgba(229, 87, 62, .14); border-color: rgba(229, 87, 62, .6); }

/* ===== Info-Modals (Codex & Regeln, Support Us) ===== */
.infoModal {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(2, 4, 8, .72);
  backdrop-filter: blur(4px);
}
.infoModal.show { display: flex; }
.infoModalPanel {
  position: relative;
  width: 100%; max-width: 480px;
  max-height: min(86vh, 720px); overflow-y: auto;
  padding: 26px 26px 22px;
  border: 1px solid rgba(216, 177, 90, .22);
  background: linear-gradient(180deg, rgba(20, 24, 33, .98), rgba(12, 15, 21, .99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.infoModalClose {
  position: absolute; top: 8px; right: 12px;
  width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--mp-ink-dim); font-size: 24px; line-height: 1; cursor: pointer;
}
.infoModalClose:hover { color: var(--mp-bone, #e8dec5); }
.infoModalEyebrow {
  font-family: var(--mp-mono, monospace);
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--mp-teal-2, #4dd0c4);
}
.infoModalTitle {
  margin: 4px 0 16px;
  font-family: var(--mp-serif, 'Cinzel', serif);
  font-size: 21px; line-height: 1.2; color: var(--mp-bone, #e8dec5);
}
.infoModalBody { display: grid; gap: 14px; }
.codexSec { display: grid; gap: 5px; }
.codexSec h4 {
  margin: 0;
  font-family: var(--mp-mono, monospace);
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--mp-gold-1, #d8b15a);
}
.infoModalBody p, .infoModalBody li,
.info-body p, .info-body li {
  margin: 0;
  font-family: var(--mp-serif-body, serif);
  font-size: 14px; line-height: 1.55; color: rgba(232, 222, 197, .85);
}
.infoModalBody em, .info-body em { color: var(--mp-bone, #e8dec5); font-style: normal; font-weight: 600; }
.codexFactions, .supportList { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.codexFactions b, .supportList b { color: var(--fc, var(--mp-bone, #e8dec5)); }
.codexDot {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 1px;
  vertical-align: middle;
}
.codexDot--move { background: rgba(77, 208, 196, .8); }
.codexDot--cap { background: rgba(224, 88, 79, .85); }
.infoModalFoot {
  margin-top: 4px !important;
  padding-top: 12px; border-top: 1px solid rgba(216, 177, 90, .12);
  font-size: 12px !important; color: var(--mp-ink-dim, #847b65) !important;
}

/* ===== Info-Seiten (Codex & Regeln, Support Us) — 1:1-Port der Design-Vorlage.
   Markup: app/info-page.js -> #infoGrid (<div class="codex"> / <div class="support">).
   Header = globale .duell-*; Ambient-Glow vom seitenweiten mode-info (heroVignette),
   KEIN Block-Glow hier; Outer-Padding vom .infoPage-Wrapper (wie Puzzle/Play). ===== */
.codex, .support {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}
.codex { max-width: 1180px; }
.support { max-width: 1100px; }
.codex .duell-head, .support .duell-head { margin-bottom: 32px; }

/* ----- Codex: Sprungmarken ----- */
.codex .codex-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.codex .codex-toc a {
  font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700;
  color: var(--mp-ink); padding: 8px 14px; text-decoration: none;
  border: 1px solid rgba(216, 177, 90, 0.16); background: rgba(11, 13, 18, 0.5);
  transition: color 150ms ease, border-color 150ms ease; cursor: pointer;
}
.codex .codex-toc a:hover { color: var(--mp-gold-1); border-color: rgba(216, 177, 90, 0.4); }

/* ----- Codex: Regel-Karten ----- */
.codex .codex-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 36px; }
.codex .rule-card {
  position: relative; padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.65), rgba(11, 13, 18, 0.82));
  border: 1px solid rgba(216, 177, 90, 0.14);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
  scroll-margin-top: 96px;
}
.codex .rule-card::before, .codex .rule-card::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--mp-gold-3); transition: border-color 220ms;
}
.codex .rule-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.codex .rule-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.codex .rule-card:hover {
  border-color: rgba(77, 208, 196, 0.3); transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(26, 30, 40, 0.85), rgba(14, 17, 23, 0.92));
}
.codex .rule-card:hover::before, .codex .rule-card:hover::after { border-color: var(--mp-teal-2); }
.codex .rule-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.codex .rule-ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--mp-gold-1); border: 1px solid rgba(216, 177, 90, 0.28);
  transform: rotate(45deg); flex-shrink: 0;
}
.codex .rule-ico > * { transform: rotate(-45deg); }
.codex .rule-head-text { min-width: 0; }
.codex .rule-num { font-family: var(--mp-mono); font-size: 10px; letter-spacing: 2px; color: var(--mp-gold-2); margin-bottom: 4px; }
.codex .rule-title { font-family: var(--mp-serif); font-size: 21px; letter-spacing: 1px; color: var(--mp-bone); font-weight: 600; line-height: 1; }
.codex .rule-body { font-family: var(--mp-serif-body); font-size: 16.5px; line-height: 1.55; color: var(--mp-ink); }
.codex .rule-body b { color: var(--mp-bone); font-weight: 600; }
.codex .rule-legend { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.codex .legend-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.5px; color: var(--mp-ink); font-family: var(--mp-sans); }
.codex .legend-sq { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.codex .legend-sq.move { background: rgba(240, 210, 131, 0.35); box-shadow: inset 0 0 0 1px #e9c45f, 0 0 8px rgba(240,210,131,0.4); }
.codex .legend-sq.capture { background: rgba(194, 90, 74, 0.35); box-shadow: inset 0 0 0 1px var(--mp-danger), 0 0 8px rgba(194,90,74,0.4); }
.codex .legend-sq.effect { background: rgba(90, 154, 214, 0.35); box-shadow: inset 0 0 0 1px #5a9ad6, 0 0 8px rgba(90,154,214,0.4); }
.codex .rule-mana { display: flex; align-items: center; gap: 7px; margin-top: 16px; }
.codex .rule-mana .mana-pip { width: 26px; height: 8px; border-radius: 3px; background: rgba(216, 177, 90, 0.12); border: 1px solid rgba(77, 208, 196, 0.18); }
.codex .rule-mana .mana-pip.full { background: linear-gradient(180deg, #6ce4d8, #2b9088); border-color: rgba(108, 228, 216, 0.5); box-shadow: 0 0 6px rgba(77, 208, 196, 0.4); }
.codex .rule-mana .mana-label { font-family: var(--mp-mono); font-size: 11px; color: var(--mp-teal-1); margin-left: 4px; }

/* ----- Codex: Fraktionen ----- */
.codex .codex-faction-label {
  font-size: 10px; letter-spacing: 3px; color: var(--mp-ink-dim); text-transform: uppercase; font-weight: 700;
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px; scroll-margin-top: 96px;
}
.codex .codex-faction-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(216,177,90,0.16), transparent); }
.codex .codex-factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.codex .faction-codex {
  position: relative; padding: 24px 22px;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.6), rgba(11, 13, 18, 0.82));
  border: 1px solid rgba(216, 177, 90, 0.12); border-top: 2px solid var(--fc);
  transition: border-color 220ms ease, transform 220ms ease;
}
.codex .faction-codex:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fc) 40%, transparent); border-top-color: var(--fc); }
.codex .faction-codex .fc-emblem {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--fc);
  border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); transform: rotate(45deg); margin-bottom: 16px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fc) 16%, transparent), transparent 70%);
}
.codex .faction-codex .fc-emblem > * { transform: rotate(-45deg); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--fc) 60%, transparent)); }
.codex .faction-codex .fc-name { font-family: var(--mp-serif); font-size: 22px; letter-spacing: 1.5px; color: var(--fc); font-weight: 700; margin-bottom: 8px; }
.codex .faction-codex .fc-tags { font-family: var(--mp-mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mp-ink-dim); margin-bottom: 12px; }
.codex .faction-codex .fc-desc { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.5; color: var(--mp-ink); }
.codex .codex-note { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border: 1px dashed rgba(216, 177, 90, 0.22); background: rgba(11, 13, 18, 0.4); font-family: var(--mp-serif-body); font-size: 16px; color: var(--mp-ink-dim); }
.codex .codex-note .cn-ico { color: var(--mp-gold-2); flex-shrink: 0; display: grid; place-items: center; }
.codex .codex-note b { color: var(--mp-ink); font-weight: 600; }

/* Oeffentlicher Figuren-Codex: Galerie je Fraktion, Klick -> Dossier (piece-codex.js). */
.codex .codex-figures-intro {
  font-family: var(--mp-serif-body); font-size: 15px; line-height: 1.5;
  color: var(--mp-ink-dim); margin: -6px 0 22px;
}
.codex .codex-figures-intro b { color: var(--mp-ink); font-weight: 600; }
.codex .cxf-group { margin-bottom: 26px; }
.codex .cxf-group-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-family: var(--mp-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fc); font-weight: 700;
}
.codex .cxf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 8px color-mix(in srgb, var(--fc) 70%, transparent); }
.codex .cxf-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px;
}
.codex .cxf-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px 12px; cursor: pointer; text-align: center;
  container-type: inline-size;
  --rc: var(--fc);   /* Fallback; je Seltenheit überschrieben (siehe rarity-*) */
  /* Seltenheits-Glow ueber die GANZE Kachel (laeuft sanft aus, kein harter Box-Rand). */
  background:
    radial-gradient(118% 88% at 50% 34%, color-mix(in srgb, var(--rc) 13%, transparent) 0%, transparent 68%),
    linear-gradient(180deg, rgba(20, 23, 31, 0.55), rgba(11, 13, 18, 0.8));
  border: 1px solid rgba(216, 177, 90, 0.1); border-top: 2px solid color-mix(in srgb, var(--rc) 72%, transparent);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
/* Oberer Rahmen + Akzente = SELTENHEIT (gewöhnlich/selten/episch/legendär). */
.codex .cxf-tile.rarity-common { --rc: #b6c0cf; }
.codex .cxf-tile.rarity-rare { --rc: #6ee7d8; }
.codex .cxf-tile.rarity-epic { --rc: #b87ce8; }
.codex .cxf-tile.rarity-legendary { --rc: #f0d283; }
.codex .cxf-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--rc) 45%, transparent); border-top-color: var(--rc);
  box-shadow: 0 12px 26px -16px color-mix(in srgb, var(--rc) 80%, transparent);
}
.codex .cxf-art {
  width: 76px; height: 76px; display: grid; place-items: center;
  /* Kein eigener Glow hier mehr — der Glow liegt auf der ganzen Kachel (.cxf-tile),
     damit er nicht an der Box-Kante hart aufhoert. */
}
.codex .cxf-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.codex .cxf-glyph { font-size: 40px; line-height: 1; }
.codex .cxf-rank {
  position: absolute; top: 8px; right: 9px; font-size: 12px; color: var(--rc); opacity: 0.85;
}
.codex .cxf-name {
  font-family: var(--mp-serif); color: var(--mp-ink); font-weight: 600;
  /* Auto-Fit: skaliert mit der Kachelbreite, lange Namen laufen nicht mehr ueber. */
  font-size: clamp(9.5px, 9cqi, 14px);
  letter-spacing: 0.2px;
  line-height: 1.12;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .codex .cxf-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
  .codex .cxf-art { width: 60px; height: 60px; }
}

/* ----- Support: Coffee-Hero ----- */
.support .coffee {
  position: relative; text-align: center; padding: 48px 40px 44px; margin-bottom: 18px;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(216, 177, 90, 0.16), transparent 65%), linear-gradient(180deg, rgba(28, 23, 13, 0.7), rgba(11, 12, 16, 0.85));
  border: 1px solid rgba(216, 177, 90, 0.3); overflow: hidden;
}
.support .coffee::before, .support .coffee::after { content: ""; position: absolute; width: 20px; height: 20px; border: 1px solid var(--mp-gold-2); }
.support .coffee::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.support .coffee::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.support .coffee-emblem { position: relative; width: 92px; height: 92px; margin: 0 auto 24px; display: grid; place-items: center; }
.support .ce-ring { position: absolute; inset: 0; border: 1px solid var(--mp-gold-3); transform: rotate(45deg); background: radial-gradient(circle at 50% 38%, rgba(216,177,90,0.18), rgba(8,9,13,0.6)); box-shadow: 0 0 28px rgba(216, 177, 90, 0.25); }
.support .ce-ring.inner { inset: 10px; border-color: rgba(216, 177, 90, 0.4); background: none; box-shadow: none; animation: ringRotate 28s linear infinite; }
.support .ce-ico { position: relative; color: var(--mp-gold-1); filter: drop-shadow(0 0 10px var(--mp-gold-glow)); }
.support .coffee-steam { position: absolute; top: 18px; left: 50%; width: 2px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, rgba(216,177,90,0.5), transparent); animation: steam 2.6s ease-in-out infinite; }
.support .coffee-steam.s2 { margin-left: -7px; animation-delay: 0.5s; }
.support .coffee-steam.s3 { margin-left: 5px; animation-delay: 1s; }
.support .coffee-title { font-family: var(--mp-serif); font-size: 34px; letter-spacing: 1.5px; color: var(--mp-bone); font-weight: 700; margin: 0 0 14px; }
.support .coffee-desc { font-family: var(--mp-serif-body); font-size: 18px; line-height: 1.5; color: var(--mp-ink); max-width: 460px; margin: 0 auto 28px; }
.support .coffee-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-family: var(--mp-sans); font-weight: 700; font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #0c0e13; background: linear-gradient(180deg, #f3d88a 0%, #d8b15a 45%, #ad8230 100%); border: 1px solid #f0d27a; box-shadow: 0 0 26px rgba(216, 177, 90, 0.28), inset 0 1px 0 rgba(255,255,255,0.4); cursor: pointer; }
.support .coffee-cta .cc-badge { font-size: 8.5px; letter-spacing: 1.5px; padding: 3px 7px; background: rgba(12, 14, 19, 0.35); border: 1px solid rgba(12, 14, 19, 0.4); border-radius: 2px; }
.support .coffee-tiers { display: flex; justify-content: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.support .coffee-tier { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 18px; border: 1px solid rgba(216, 177, 90, 0.16); background: rgba(11, 13, 18, 0.45); }
.support .coffee-tier .ct-amt { font-family: var(--mp-mono); font-size: 14px; color: var(--mp-gold-1); font-weight: 500; }
.support .coffee-tier .ct-name { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink-dim); }

/* ----- Support: Mithelfen ----- */
.support .help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.support .help-card { position: relative; padding: 24px 22px; background: linear-gradient(180deg, rgba(20, 23, 31, 0.6), rgba(11, 13, 18, 0.82)); border: 1px solid rgba(216, 177, 90, 0.12); transition: border-color 220ms ease, transform 220ms ease, background 220ms ease; display: flex; flex-direction: column; cursor: pointer; width: 100%; text-align: left; font: inherit; }
.support .help-card:hover { border-color: rgba(77, 208, 196, 0.3); transform: translateY(-3px); background: linear-gradient(180deg, rgba(26, 30, 40, 0.85), rgba(14, 17, 23, 0.92)); }
.support .help-card .hc-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mp-teal-1); border: 1px solid rgba(77, 208, 196, 0.28); transform: rotate(45deg); margin-bottom: 18px; }
.support .help-card .hc-ico > * { transform: rotate(-45deg); }
.support .help-card .hc-title { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; color: var(--mp-gold-1); margin-bottom: 10px; }
.support .help-card .hc-desc { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.5; color: var(--mp-ink); margin-bottom: 16px; }
.support .help-card .hc-action { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink-dim); transition: color 160ms; }
.support .help-card:hover .hc-action { color: var(--mp-teal-1); }
.support .help-card .hc-action .arrow { display: inline-flex; transition: transform 160ms; }
.support .help-card:hover .hc-action .arrow { transform: translateX(4px); }
.support .support-note { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border: 1px dashed rgba(216, 177, 90, 0.22); background: rgba(11, 13, 18, 0.4); font-family: var(--mp-serif-body); font-size: 16px; color: var(--mp-ink-dim); }
.support .support-note .sn-ico { color: var(--mp-gold-1); flex-shrink: 0; display: grid; place-items: center; }
.support .support-note b { color: var(--mp-ink); font-weight: 600; }

@keyframes ringRotate { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
@keyframes steam { 0%, 100% { opacity: 0; transform: translateY(3px); } 50% { opacity: .5; transform: translateY(-8px); } }

@media (max-width: 860px) {
  .codex .codex-rules { grid-template-columns: 1fr; }
  .codex .codex-factions { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .support .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .support .coffee { padding: 36px 22px; }
}

/* ============================================================
   MITGLIEDSCHAFT (mode-info, eigene Vollbildseite) — 1:1-Port.
   Seite unter .mbr gescoped; Checkout-Popup unter .co-overlay
   (haengt an document.body, daher nicht unter .mbr). Tokens -> --mp-*.
   Kein Block-Glow (Ambient-Glow von der mode-info heroVignette).
   ============================================================ */
.mbr {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  color: var(--mp-bone);
  font-family: var(--mp-sans);
}

/* Hero (zentriert) */
.mbr .mbr-hero { text-align: center; max-width: 860px; margin: 0 auto 14px; }
.mbr .mbr-hero .duell-eyebrow { justify-content: center; }
.mbr .mbr-hero .duell-title { font-size: clamp(40px, 5.6vw, 72px); }
.mbr .mbr-hero .duell-sub { margin: 0 auto; }
.mbr .mbr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.mbr .mbr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink); border: 1px solid rgba(216, 177, 90, 0.18); background: rgba(11, 13, 18, 0.55); }
.mbr .mbr-chip .ic { color: var(--mp-teal-2); display: inline-flex; }

/* Tiers */
.mbr .mbr-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 46px auto 0; align-items: stretch; }
.mbr .tier { position: relative; display: flex; flex-direction: column; padding: 30px 30px 28px; background: linear-gradient(180deg, rgba(20, 23, 31, 0.72), rgba(11, 13, 18, 0.9)); border: 1px solid rgba(216, 177, 90, 0.16); }
.mbr .tier::before, .mbr .tier::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--mp-gold-3); }
.mbr .tier::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.mbr .tier::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.mbr .tier.featured { border-color: var(--mp-gold-1); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(216, 177, 90, 0.12), transparent 65%), linear-gradient(180deg, rgba(28, 24, 14, 0.85), rgba(13, 12, 9, 0.92)); box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.2), 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(216, 177, 90, 0.08); }
.mbr .tier.featured::before, .mbr .tier.featured::after { border-color: var(--mp-gold-1); width: 20px; height: 20px; }
.mbr .tier-ribbon { position: absolute; top: -1px; right: 24px; padding: 6px 12px 7px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #0c0e13; background: linear-gradient(180deg, #f0d27a, #c89a3e); }
.mbr .tier-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mbr .tier-emblem { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--mp-gold-3); transform: rotate(45deg); color: var(--mp-gold-1); background: linear-gradient(135deg, #1a1f2a, #0d1015); }
.mbr .tier.featured .tier-emblem { border-color: var(--mp-gold-1); box-shadow: 0 0 14px var(--mp-gold-glow); }
.mbr .tier-emblem > * { transform: rotate(-45deg); }
.mbr .tier-name { font-family: var(--mp-serif); font-size: 24px; letter-spacing: 1.5px; color: var(--mp-bone); font-weight: 700; line-height: 1; }
.mbr .tier-kicker { font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--mp-gold-2); font-weight: 700; margin-top: 6px; }
.mbr .tier.featured .tier-kicker { color: var(--mp-gold-1); }
.mbr .tier-price { display: flex; align-items: baseline; gap: 7px; margin: 6px 0 4px; }
.mbr .tier-price .cur { font-family: var(--mp-serif); font-size: 22px; color: var(--mp-bone); }
.mbr .tier-price .amt { font-family: var(--mp-serif); font-size: 52px; line-height: 0.9; color: var(--mp-gold-1); font-weight: 700; }
.mbr .tier.featured .tier-price .amt { background: linear-gradient(180deg, #f5ebcf, #e8c879 55%, #b88a2f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mbr .tier-price .per { font-size: 12px; letter-spacing: 1px; color: var(--mp-ink-dim); text-transform: uppercase; font-weight: 700; }
/* Betrag-Switch: du entscheidest, wie viel du gibst — selbe Perks, nur der Preis aendert sich. */
.mbr .tier-switch { display: inline-flex; align-self: flex-start; margin: 4px 0 10px; padding: 3px; gap: 3px; border: 1px solid rgba(216, 177, 90, 0.22); background: rgba(7, 8, 11, 0.5); }
.mbr .tier-switch .tsw { padding: 6px 15px; font-family: var(--mp-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.5px; line-height: 1; color: var(--mp-ink-dim); background: none; border: none; cursor: pointer; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.mbr .tier-switch .tsw .tsw-cur { font-size: 11px; margin-right: 1px; opacity: 0.85; }
.mbr .tier-switch .tsw:hover { color: var(--mp-bone); }
.mbr .tier-switch .tsw.on { color: #0c0e13; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
.mbr .tier-tagline { font-family: var(--mp-serif-body); font-size: 15.5px; line-height: 1.45; color: var(--mp-ink); margin: 8px 0 20px; font-style: italic; }
.mbr .tier-feats { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid rgba(216, 177, 90, 0.12); display: flex; flex-direction: column; gap: 13px; flex: 1; }
.mbr .tier-feats li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--mp-ink); }
.mbr .tier-feats li .fi { color: var(--mp-teal-2); flex-shrink: 0; margin-top: 1px; display: inline-flex; }
.mbr .tier.featured .tier-feats li .fi { color: var(--mp-gold-1); }
.mbr .tier-feats li b { color: var(--mp-bone); font-weight: 600; }
.mbr .tier-feats .feat-group { font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mp-ink-dim); font-weight: 700; margin-top: 4px; }
.mbr .tier-cta { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; border: 1px solid rgba(216, 177, 90, 0.4); background: rgba(18, 21, 28, 0.7); color: var(--mp-bone); cursor: pointer; transition: all 180ms ease; }
.mbr .tier-cta:hover { border-color: var(--mp-gold-1); color: var(--mp-gold-1); box-shadow: 0 0 20px rgba(216, 177, 90, 0.15); }
.mbr .tier.featured .tier-cta { color: #0c0e13; border-color: #f0d27a; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%); box-shadow: 0 0 30px rgba(216, 177, 90, 0.25), inset 0 1px 0 rgba(255,255,255,0.4); }
.mbr .tier.featured .tier-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 40px rgba(216, 177, 90, 0.45), inset 0 1px 0 rgba(255,255,255,0.5); color: #0c0e13; }
.mbr .tier-cta svg { display: inline-flex; }
.mbr .tier-note { text-align: center; font-size: 10px; letter-spacing: 1px; color: var(--mp-ink-faint); margin-top: 12px; }

/* Why */
.mbr .mbr-why { margin: 60px auto 0; max-width: 1080px; }
.mbr .mbr-why-head { text-align: center; margin-bottom: 30px; }
.mbr .mbr-why-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mp-teal-2); font-weight: 700; margin-bottom: 12px; }
.mbr .mbr-why-title { font-family: var(--mp-serif); font-size: 30px; letter-spacing: 1px; color: var(--mp-bone); font-weight: 600; margin: 0; }
.mbr .mbr-why-sub { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.5; color: var(--mp-ink); margin: 12px auto 0; max-width: 560px; }
.mbr .mbr-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mbr .why { position: relative; padding: 24px 22px; background: linear-gradient(180deg, rgba(18, 21, 28, 0.6), rgba(11, 13, 18, 0.82)); border: 1px solid rgba(216, 177, 90, 0.12); transition: border-color 200ms ease, transform 200ms ease; }
.mbr .why:hover { border-color: rgba(77, 208, 196, 0.28); transform: translateY(-2px); }
.mbr .why .why-ic { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(216, 177, 90, 0.25); color: var(--mp-gold-1); margin-bottom: 16px; }
.mbr .why h4 { font-family: var(--mp-serif); font-size: 18px; letter-spacing: 0.6px; color: var(--mp-bone); margin: 0 0 8px; font-weight: 600; }
.mbr .why p { font-size: 13.5px; line-height: 1.5; color: var(--mp-ink); margin: 0; }

/* Honest banner */
.mbr .mbr-honest { position: relative; margin: 44px auto 0; max-width: 920px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; background: rgba(35, 155, 149, 0.05); border: 1px solid rgba(77, 208, 196, 0.2); }
.mbr .mbr-honest .mh-ic { color: var(--mp-teal-1); flex-shrink: 0; display: grid; place-items: center; }
.mbr .mbr-honest .mh-text { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.5; color: var(--mp-ink); }
.mbr .mbr-honest .mh-text b { color: var(--mp-bone); font-weight: 600; }
.mbr .mbr-honest a { color: var(--mp-teal-1); border-bottom: 1px solid rgba(110,231,216,0.4); cursor: pointer; }

/* Support-Seite: Hinweis auf Mitgliedschaft */
.support .support-member { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 30px; background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(216,177,90,0.08), transparent 60%), linear-gradient(180deg, rgba(20, 23, 31, 0.6), rgba(11, 13, 18, 0.82)); border: 1px solid rgba(216, 177, 90, 0.22); }
.support .support-member .sm-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: var(--mp-gold-1); border: 1px solid rgba(216, 177, 90, 0.3); }
.support .support-member .sm-text { flex: 1; font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.45; color: var(--mp-ink); }
.support .support-member .sm-text b { color: var(--mp-bone); font-weight: 600; }
.support .support-member .sm-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; font-family: var(--mp-sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #0c0e13; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%); border: 1px solid #f0d27a; cursor: pointer; transition: transform 160ms, box-shadow 160ms; }
.support .support-member .sm-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(216,177,90,0.4); }
.support .support-member .sm-cta .arrow { display: inline-flex; }

/* ===== Checkout-Popup (Membership) — haengt an document.body, daher global ===== */
.co-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(5, 6, 9, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; padding: 28px; animation: coFade 200ms ease; }
@keyframes coFade { from { opacity: 0; } to { opacity: 1; } }
.co { position: relative; width: min(560px, 96vw); max-height: calc(100vh - 56px); overflow-y: auto; background: linear-gradient(180deg, rgba(16,19,26,0.97), rgba(9,10,14,0.99)); border: 1px solid rgba(216, 177, 90, 0.3); padding: 34px 36px 28px; font-family: var(--mp-sans); }
.co::before, .co::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--mp-gold-2); }
.co::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.co::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.co-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--mp-ink-dim); border: 1px solid rgba(216,177,90,0.2); background: transparent; cursor: pointer; transition: color 160ms, border-color 160ms; }
.co-close:hover { color: var(--mp-bone); border-color: var(--mp-gold-1); }
.co-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mp-teal-2); font-weight: 700; margin-bottom: 10px; }
.co-title { font-family: var(--mp-serif); font-size: 30px; letter-spacing: 1px; color: var(--mp-bone); margin: 0 0 22px; font-weight: 700; }
.co-summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; margin-bottom: 22px; background: rgba(216, 177, 90, 0.05); border: 1px solid rgba(216, 177, 90, 0.2); }
.co-summary .cs-l { display: flex; align-items: center; gap: 12px; }
.co-summary .cs-emblem { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--mp-gold-3); transform: rotate(45deg); color: var(--mp-gold-1); }
.co-summary .cs-emblem > * { transform: rotate(-45deg); }
.co-summary .cs-name { font-family: var(--mp-serif); font-size: 18px; color: var(--mp-bone); font-weight: 600; }
.co-summary .cs-kicker { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mp-gold-2); font-weight: 700; margin-top: 3px; }
.co-summary .cs-price { text-align: right; }
.co-summary .cs-price .a { font-family: var(--mp-serif); font-size: 28px; color: var(--mp-gold-1); font-weight: 700; }
.co-summary .cs-price .p { font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mp-ink-dim); font-weight: 700; }
.co-label { font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--mp-ink-dim); font-weight: 700; margin: 0 0 10px; }
.co-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.co-pay button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; font-family: var(--mp-sans); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink); border: 1px solid rgba(216, 177, 90, 0.18); background: rgba(7,8,11,0.5); cursor: pointer; transition: all 150ms; }
.co-pay button.on { color: var(--mp-bone); border-color: var(--mp-teal-2); background: rgba(35,155,149,0.08); box-shadow: inset 0 0 0 1px rgba(77,208,196,0.2); }
.co-field { margin-bottom: 16px; }
.co-field input { width: 100%; padding: 13px 14px; background: rgba(7,8,11,0.6); border: 1px solid rgba(216,177,90,0.18); color: var(--mp-bone); font-family: var(--mp-serif-body); font-size: 15px; outline: none; transition: border-color 160ms; }
.co-field input::placeholder { color: var(--mp-ink-faint); font-style: italic; }
.co-field input:focus { border-color: rgba(77,208,196,0.45); }
.co-submit { width: 100%; padding: 15px; font-family: var(--mp-sans); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: #0c0e13; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%); border: 1px solid #f0d27a; cursor: pointer; transition: transform 160ms, box-shadow 160ms; margin-top: 4px; }
.co-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(216,177,90,0.4); }
.co-demo { text-align: center; font-size: 10px; letter-spacing: 0.5px; color: var(--mp-ink-faint); margin-top: 14px; }
.co-success { text-align: center; padding: 12px 0 6px; }
.co-success .cx-ring { width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--mp-gold-2); color: var(--mp-teal-1); box-shadow: 0 0 26px rgba(216,177,90,0.2); }
.co-success .cx-ring > * { transform: rotate(-45deg); }
.co-success h3 { font-family: var(--mp-serif); font-size: 30px; letter-spacing: 1.5px; color: var(--mp-bone); margin: 0 0 10px; font-weight: 700; }
.co-success p { font-family: var(--mp-serif-body); font-size: 16px; line-height: 1.5; color: var(--mp-ink); margin: 0 auto 24px; max-width: 380px; }
.co-success .cx-done { display: inline-flex; padding: 13px 30px; font-family: var(--mp-sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--mp-bone); border: 1px solid rgba(216,177,90,0.35); background: rgba(18,21,28,0.6); cursor: pointer; transition: color 160ms, border-color 160ms; }
.co-success .cx-done:hover { border-color: var(--mp-gold-1); color: var(--mp-gold-1); }

/* Membership responsive */
@media (max-width: 1100px) { .mbr .mbr-why-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mbr .mbr-tiers { grid-template-columns: 1fr; }
  .co-pay { grid-template-columns: 1fr; }
  .support .support-member { flex-wrap: wrap; }
}

/* ===== Matchmaking-Overlay ("Suche Gegner", aus der Design-Vorlage) ===== */

.mmOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 8, 11, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: mmOverlayIn 220ms ease;
}
.mmOverlay.show { display: grid; }
@keyframes mmOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.mmPanel {
  position: relative;
  text-align: center;
  width: min(520px, 100%);
  padding: 48px 56px;
  background: var(--mp-panel-2, rgba(12, 14, 19, .92));
  border: 1px solid rgba(216, 177, 90, .3);
}
.mmPanel::before, .mmPanel::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--mp-gold-2, #c89a3e);
}
.mmPanel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.mmPanel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.mmClose {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--mp-ink-dim, #847b65);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease;
}
.mmClose:hover { color: var(--mp-bone, #e8dec5); }

.mmEyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--mp-teal-1, #6ee7d8);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.mmTitle {
  font-family: var(--mp-serif, "Cinzel", Georgia, serif);
  font-size: 40px;
  color: var(--mp-bone, #e8dec5);
  letter-spacing: 5px;
  margin: 0 0 8px;
  font-weight: 700;
}
.mmSub {
  font-family: var(--mp-serif-body, "Cormorant Garamond", Georgia, serif);
  color: var(--mp-parchment, #ece2c8);
  font-size: 16px;
  font-style: italic;
  margin: 0 0 30px;
}

.mmRing {
  width: 110px; height: 110px;
  margin: 0 auto 28px;
  border: 1px solid var(--mp-gold-3, #8a6a25);
  position: relative;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
}
.mmRing::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--mp-gold-2, #c89a3e);
  animation: mmSpin 4s linear infinite;
}
.mmRing::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid transparent;
  border-top-color: var(--mp-teal-1, #6ee7d8);
  animation: mmSpin 1.4s linear infinite;
}
@keyframes mmSpin { to { transform: rotate(360deg); } }
.mmGlyph {
  font-family: var(--mp-serif, "Cinzel", Georgia, serif);
  font-size: 42px;
  color: var(--mp-gold-1, #d8b15a);
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 12px var(--mp-gold-glow, rgba(216, 177, 90, .35)));
}
/* Magister Schnurr beschwoert den Gegner (matchmaking.js tauscht den Glyph) —
   der Ring ist 45deg gedreht, die Katze dreht zurueck */
.mmCat {
  display: grid;
  place-items: center;
  transform: rotate(-45deg);
  color: var(--mp-gold-1, #d8b15a);
}
.mmCat .coachCat {
  width: 64px;
  filter: drop-shadow(0 0 12px var(--mp-gold-glow, rgba(216, 177, 90, .35)));
}

.mmRows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
  padding: 16px 0;
  border-top: 1px solid rgba(216, 177, 90, .15);
  border-bottom: 1px solid rgba(216, 177, 90, .15);
}
.mmRow .k {
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--mp-ink-dim, #847b65);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.mmRow .v {
  font-family: var(--mp-mono, ui-monospace, monospace);
  color: var(--mp-gold-1, #d8b15a);
  font-size: 14px;
}
.mmRow .v.teal { color: var(--mp-teal-1, #6ee7d8); }

.mmCancel {
  font-family: var(--mp-sans, system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-bone, #e8dec5);
  background: rgba(216, 177, 90, .06);
  border: 1px solid rgba(216, 177, 90, .3);
  padding: 12px 28px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.mmCancel:hover {
  background: rgba(216, 177, 90, .14);
  border-color: rgba(216, 177, 90, .5);
}

@media (max-width: 560px) {
  .mmPanel { padding: 38px 24px; }
  .mmTitle { font-size: 32px; }
}

/* =====================================================================
   TRAINING — Akademie (Lernpfad) + On-Board Coach Bubble
   Reuses the vault aesthetic: panel-less header, sharp content boxes with
   L-bracket corners, smooth glows, faction tone identity, teal = active.
   ===================================================================== */

.lessonsPage { width: 100%; }
.lessonsGrid { width: 100%; }
/* =====================================================================
   Training / Akademie — 1:1-Port der Claude-Design-Vorlage.
   Markup rendert app/lessons.js in #lessonsGrid als
   <div class="academy ac-root">. Selektoren unter .ac-root gescoped;
   Titel/Eyebrow/Sub nutzen die globalen .duell-title/.duell-eyebrow/.duell-sub.
   Outer-Padding kommt vom .lessonsPage-Wrapper (wie Puzzle/Play).
   ===================================================================== */
.ac-root {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
/* Kein eigener Glow auf dem zentrierten .ac-root-Block — der saesse mittig auf der
   Seite (zentriert) statt am Rand und braechte eine harte Kante. Der Ambient-Glow
   kommt vom seitenweiten body.mode-lessons .modeScreen (wie Play/Puzzle). */
.ac-root > * { position: relative; z-index: 1; }

/* Header: Titelblock + Fortschritts-Medaillon */
.ac-root .academy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
/* Keine max-width — sonst clippt der breite .duell-title (background-clip:text). */
.ac-root .ah-left { min-width: 0; }
.ac-root .academy-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background:
    radial-gradient(ellipse 90% 100% at 100% 0%, rgba(216, 177, 90, 0.1), transparent 70%),
    rgba(11, 13, 18, 0.6);
  border: 1px solid rgba(216, 177, 90, 0.22);
  flex-shrink: 0;
}
.ac-root .ap-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ac-root .ap-ring svg { transform: rotate(-90deg); display: block; }
.ac-root .ap-num {
  position: absolute;
  font-family: var(--mp-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--mp-gold-1);
}
.ac-root .ap-meta { display: flex; flex-direction: column; gap: 3px; }
.ac-root .ap-label {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
}
.ac-root .ap-state {
  font-family: var(--mp-serif);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--mp-bone);
  font-weight: 600;
}

/* Anmelde-Hinweis (Gäste) */
.ac-root .academy-login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 11px 16px;
  font: inherit;
  font-size: 13px;
  color: var(--mp-bone);
  background: rgba(216, 177, 90, 0.06);
  border: 1px solid rgba(216, 177, 90, 0.28);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.ac-root .academy-login:hover { background: rgba(216, 177, 90, 0.12); border-color: rgba(216, 177, 90, 0.5); }

/* Lektionspfad */
.ac-root .academy-path { position: relative; }
.ac-root .academy-path::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 38px;
  bottom: 38px;
  width: 2px;
  background: linear-gradient(180deg, var(--mp-gold-2), rgba(216, 177, 90, 0.25));
  z-index: 0;
}
.ac-root .lesson {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.ac-root .lesson:last-child { margin-bottom: 0; }
.ac-root .lesson-node {
  display: flex;
  justify-content: center;
  padding-top: 26px;
  position: relative;
  z-index: 1;
}
.ac-root .lesson-node .node {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--mp-serif);
  font-size: 13px;
  font-weight: 700;
  background: radial-gradient(circle at 40% 35%, #f0d27a, #c89a3e);
  color: #0c0e13;
  box-shadow: 0 0 0 4px var(--mp-bg-0), 0 0 14px rgba(216, 177, 90, 0.4);
}
.ac-root .lesson-node .node.locked {
  background: radial-gradient(circle at 40% 35%, #2a2f3a, #14171f);
  color: var(--mp-ink-dim);
  box-shadow: 0 0 0 4px var(--mp-bg-0), inset 0 0 0 1px rgba(216, 177, 90, 0.2);
}

/* Karte */
.ac-root .lesson-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 18px 24px 18px 18px;
  background: linear-gradient(100deg, rgba(20, 23, 31, 0.7), rgba(11, 13, 18, 0.82) 70%);
  border: 1px solid rgba(216, 177, 90, 0.14);
  transition: all 220ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ac-root .lesson-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--mp-gold-2), transparent);
  opacity: 0;
  transition: opacity 220ms;
}
.ac-root .lesson-card:hover {
  border-color: rgba(77, 208, 196, 0.34);
  transform: translateX(3px);
  background: linear-gradient(100deg, rgba(26, 30, 40, 0.85), rgba(14, 17, 23, 0.92) 70%);
}
.ac-root .lesson-card:hover::after { opacity: 1; }

/* Art-Kachel */
.ac-root .lesson-art {
  position: relative;
  width: 92px; height: 92px;
  border: 1px solid rgba(216, 177, 90, 0.25);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #06080b;
}
.ac-root .lesson-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ac-root .lesson-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,9,13,0.55) 100%);
}
.ac-root .lesson-art .la-glyph {
  position: relative;
  z-index: 1;
  color: var(--mp-gold-1);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}
.ac-root .lesson-art.art-basics {
  background: repeating-conic-gradient(from 0deg at 50% 50%, #1d2330 0deg 90deg, #141925 90deg 180deg);
  background-size: 46px 46px;
}
.ac-root .lesson-art.art-basics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(216,177,90,0.16), transparent 70%);
}
.ac-root .lesson-art.art-mana {
  background: radial-gradient(circle at 50% 42%, rgba(77,208,196,0.4), rgba(16,30,32,0.6) 60%, #0b1416 100%);
}
.ac-root .lesson-art.art-mana .la-glyph { color: var(--mp-teal-1); filter: drop-shadow(0 0 8px rgba(77,208,196,0.6)); }

/* Meta */
.ac-root .lesson-meta { min-width: 0; }
.ac-root .lm-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-gold-2);
  margin-bottom: 8px;
}
.ac-root .lm-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mp-teal-1);
}
.ac-root .lm-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mp-teal-1);
  box-shadow: 0 0 6px var(--mp-teal-1);
}
.ac-root .lm-status.is-open { color: var(--mp-ink-dim); }
.ac-root .lm-status.is-open::before { display: none; }
.ac-root .lm-title {
  font-family: var(--mp-serif);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--mp-bone);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.ac-root .lm-desc {
  font-family: var(--mp-serif-body);
  font-size: 16px;
  color: var(--mp-ink);
  line-height: 1.4;
  margin-bottom: 12px;
}
.ac-root .lm-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
}
.ac-root .lm-dots { display: inline-flex; gap: 4px; }
.ac-root .lm-dot {
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: rgba(216, 177, 90, 0.18);
  border: 1px solid rgba(216, 177, 90, 0.3);
}
.ac-root .lm-dot.full {
  background: linear-gradient(180deg, #f0d27a, #c89a3e);
  border-color: #f0d27a;
  box-shadow: 0 0 6px rgba(216, 177, 90, 0.4);
}

/* Aktion */
.ac-root .lesson-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-teal-1);
  border: 1px solid rgba(77, 208, 196, 0.3);
  background: rgba(35, 155, 149, 0.06);
  white-space: nowrap;
  transition: all 160ms ease;
}
.ac-root .lesson-card:hover .lesson-action {
  border-color: var(--mp-teal-1);
  background: rgba(35, 155, 149, 0.14);
}
.ac-root .lesson-action .arrow { display: inline-flex; transition: transform 160ms; }
.ac-root .lesson-card:hover .lesson-action .arrow { transform: translateX(4px); }

/* Fuß-Strip */
.ac-root .academy-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding: 22px;
  border: 1px dashed rgba(216, 177, 90, 0.22);
  background: rgba(11, 13, 18, 0.4);
  text-align: center;
  flex-wrap: wrap;
}
.ac-root .an-text {
  font-family: var(--mp-serif-body);
  font-size: 17px;
  color: var(--mp-ink);
}
.ac-root .an-text b { color: var(--mp-bone); font-weight: 600; }
.ac-root .an-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--mp-sans);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0c0e13;
  background: linear-gradient(180deg, #f3d88a 0%, #d8b15a 45%, #ad8230 100%);
  border: 1px solid #f0d27a;
  box-shadow: 0 0 24px rgba(216, 177, 90, 0.22), inset 0 1px 0 rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 180ms ease;
}
.ac-root .an-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(216, 177, 90, 0.4), inset 0 1px 0 rgba(255,255,255,0.5); }
.ac-root .an-cta .arrow { display: inline-flex; transition: transform 160ms; }
.ac-root .an-cta:hover .arrow { transform: translateX(4px); }

@media (max-width: 1180px) {
  .ac-root .academy-head { flex-direction: column; gap: 22px; }
}
@media (max-width: 680px) {
  .ac-root .lesson { grid-template-columns: 40px 1fr; gap: 12px; }
  .ac-root .academy-path::before { left: 19px; }
  .ac-root .lesson-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .ac-root .lesson-art { width: 100%; height: 120px; }
  .ac-root .lesson-action { justify-content: center; }
}

/* =====================================================================
   Akademie-Coach: die rechte Brett-Spalte (#tutorialRail, grid-area
   enemy) stapelt im Tutorial die Gegner-Leiste (Profil/Mana + Aktion,
   per JS hereingezogen — render/tutorial-overlay.js), das Maskottchen-
   Panel ("Magier-Katze") und die Live-Figurenkarte. Das Brett bleibt
   komplett frei; Pfeil + START/ZIEL markieren das Wo auf dem Brett, die
   Katze erklaert (Typewriter-Text, Mund klappt beim Sprechen).
   ===================================================================== */
#tutorialRail {
  grid-area: enemy;
  display: none;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  max-height: calc(var(--board-size) + 56px);
  overflow-y: auto;
  scrollbar-color: rgba(216, 177, 90, .22) transparent;
  scrollbar-width: thin;
}
body.tutorial-active #tutorialRail:not([hidden]) { display: flex; }
/* Die hereingezogene Gegner-Leiste fuellt die Spaltenbreite und verliert
   ihren eigenen Hoehen-/Scroll-Anspruch (kaeme sonst aus main-06). */
body.tutorial-active #tutorialRail > #effectBarEnemy {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  overflow-y: visible;
}
/* Friedhof + Zughistorie wuerden die Spalte sprengen — Fokus auf
   Mana/Aktion des Gegners, Katze und Live-Karte. */
body.tutorial-active #tutorialRail .effectGroup-graveyard,
body.tutorial-active #tutorialRail .effectRailFooter { display: none; }

#tutorialCoachPanel {
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Live-Figurenkarte unter der Katze — die .lcxDock-Styles der Effekt-
   Leiste (main-12.css) gelten 1:1, wie im Puzzle-Slot. */
#tutorialLiveCard { width: 100%; min-width: 0; flex: 0 0 auto; }

.coachPanel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 13px 15px;
  color: var(--mp-bone);
  border: 1px solid color-mix(in srgb, var(--accent, #d8b15a) 45%, rgba(216, 177, 90, .3));
  background: linear-gradient(180deg, rgba(12, 16, 22, .92), rgba(7, 9, 13, .95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--accent, #d8b15a) 14%, transparent);
  animation: coachPop .2s ease;
}
.coachPanel-card.tone-gold { --accent: #d8b15a; }
.coachPanel-card.tone-teal { --accent: #45cfc3; }
.coachPanel-card.tone-moss { --accent: #5cd49a; }
.coachPanel-card.is-error { animation: coachShake .42s ease; }

.coachPanel-head { display: flex; align-items: center; gap: 8px; }
.coachPanel-progress {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mp-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent, #d8b15a) 72%, var(--mp-ink-dim));
}
.coachPanel-x {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 177, 90, .25);
  background: rgba(5, 8, 12, .6);
  color: var(--mp-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.coachPanel-x:hover { color: var(--mp-bone); border-color: color-mix(in srgb, var(--accent, #d8b15a) 50%, transparent); }

/* --- Maskottchen --- */
.coachPanel-stage {
  display: grid;
  place-items: center;
  padding-top: 2px;
  color: color-mix(in srgb, var(--accent, #d8b15a) 82%, var(--mp-bone));
}
.coachCat {
  width: min(150px, 62%);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px color-mix(in srgb, var(--accent, #d8b15a) 24%, transparent));
  animation: coachCatIdle 4.6s ease-in-out infinite;
}
.coachCat-star { stroke: var(--mp-teal-1, #6ee7d8); }
.coachCat-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: coachCatBlink 4.2s ease-in-out infinite;
}
.coachCat-mouthOpen { opacity: 0; }
.coachCat-mouthHappy { opacity: 0; }
.coachCat-mouthSad { opacity: 0; }
.coachCat-sparkles { opacity: 0; stroke: var(--mp-teal-1, #6ee7d8); }
/* Zustands-Klassen auf dem UMGEBENDEN Container (Panel-Stage, Akademie-Gruss,
   Welcome-Modal) — bewusst generisch, damit jede Einbaustelle sie nutzen kann. */
.is-talking .coachCat { animation: coachCatTalk .34s ease-in-out infinite; }
.is-talking .coachCat-mouthClosed { animation: coachMouthA .22s steps(1) infinite; }
.is-talking .coachCat-mouthOpen { animation: coachMouthB .22s steps(1) infinite; }
.is-alarmed .coachCat { animation: coachShake .45s ease; }
.is-celebrating .coachCat { animation: coachCatCheer .75s ease-in-out infinite; }
/* Mikro-Regungen (startMascotIdle in render/mascot.js) */
.is-happy .coachCat-mouthClosed { opacity: 0; }
.is-happy .coachCat-mouthHappy { opacity: 1; }
.is-happy:not(.is-talking) .coachCat-eyes { animation: coachCatBlink 2.4s ease-in-out infinite; }
.is-winking .coachCat-eyeL {
  transform-box: fill-box;
  transform-origin: center;
  animation: coachCatWink .6s ease;
}
.is-earTwitch .coachCat-earR {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: coachCatEarTwitch .5s ease;
}
.is-tilting .coachCat { animation: coachCatTilt 1.25s ease; }
/* Traurig (Niederlage): Ohren haengen, Mundwinkel unten, kein Wippen */
.is-sad .coachCat { animation: none; transform: translateY(2px); }
.is-sad .coachCat-mouthClosed { opacity: 0; }
.is-sad .coachCat-mouthSad { opacity: 1; }
.is-sad .coachCat-earL {
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: rotate(-13deg) translateY(2px);
}
.is-sad .coachCat-earR {
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: rotate(13deg) translateY(2px);
}
/* Beschwoert (Gegnersuche): schwebt, Augen zu, Funkeln */
.is-casting .coachCat { animation: coachCatFloat 2.8s ease-in-out infinite; }
.is-casting .coachCat-eyes { animation: none; transform: scaleY(.16); }
.is-celebrating .coachCat-sparkles,
.is-casting .coachCat-sparkles { opacity: 1; animation: coachSparkleTwinkle 1.1s ease-in-out infinite; }

@keyframes coachCatIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes coachCatTalk {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-2px) rotate(-1.4deg); }
  70% { transform: translateY(-1px) rotate(1.2deg); }
}
@keyframes coachCatBlink {
  0%, 91%, 98%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(.12); }
}
@keyframes coachMouthA {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes coachMouthB {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@keyframes coachCatCheer {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes coachCatWink {
  0%, 100% { transform: scaleY(1); }
  35%, 65% { transform: scaleY(.08); }
}
@keyframes coachCatEarTwitch {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-11deg); }
  60% { transform: rotate(5deg); }
}
@keyframes coachCatTilt {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-4.5deg) translateY(-1px); }
}
@keyframes coachCatFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes coachSparkleTwinkle {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}

/* Wiederverwendbare "Katze + Sprechblase"-Zeile (render/mascot.js
   mascotLineHtml, aktuell Akademie-Lernpfad): Katze links mit Namen darunter,
   daneben eine ECHTE Sprechblase — rund, mit Schwaenzchen, das auf sie zeigt.
   Groesse via --mascot-size. */
.mascotLine {
  display: inline-flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 100%;
  margin: 16px 0 22px;
  color: var(--mp-gold-1, #d8b15a);
}
.mascotLine-cat {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.mascotLine-cat .coachCat {
  display: block;
  width: var(--mascot-size, 76px);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px rgba(216, 177, 90, .18));
}
.mascotLine-name {
  font-family: var(--mp-serif);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--mp-gold-1, #d8b15a);
}
.mascotLine-heart { color: #f0a6c6; font-size: 11px; }
.mascotLine-bubble {
  position: relative;
  align-self: flex-start;
  margin-top: 4px;
  min-width: 220px;
  max-width: 540px;
  padding: 12px 17px;
  border: 1px solid rgba(216, 177, 90, .38);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: linear-gradient(180deg, rgba(12, 16, 22, .92), rgba(7, 9, 13, .95));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4), 0 0 16px rgba(216, 177, 90, .07);
  transition: opacity .35s ease, visibility .35s ease;
}
/* Schwaenzchen: zeigt von der Blase nach links auf Suetlac */
.mascotLine-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  bottom: 13px;
  border: 12px solid transparent;
  border-left: 0;
  border-right-color: rgba(216, 177, 90, .38);
  border-top-width: 3px;
  border-bottom-width: 13px;
}
.mascotLine-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 14.5px;
  border: 10.5px solid transparent;
  border-left: 0;
  border-right-color: rgba(8, 11, 15, .98);
  border-top-width: 2.5px;
  border-bottom-width: 11.5px;
}
.mascotLine-text {
  display: block;
  min-height: 1.5em;
  font-family: var(--mp-serif-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(240, 232, 210, .96);
}
@media (max-width: 700px) {
  .mascotLine { gap: 9px; }
  .mascotLine-cat .coachCat { width: calc(var(--mascot-size, 76px) * .75); }
  .mascotLine-bubble { min-width: 0; }
}
/* ── Ecken-Begleiterin (render/mascot.js mascotCompanionHtml): Suetlac sitzt
   fixed unten links neben der Sidebar — Startseite UND Inhaltsseiten (Ranked,
   Collection, Community, Codex/Support). Die Sprechblase schwebt ueber ihr
   (echte Blase: rund + Schwaenzchen auf ihren Kopf), der Name steht klein
   unter ihr. Lebt im jeweiligen Seiten-Root -> weg, sobald die Seite zu ist. */
.mascotCompanion {
  position: fixed;
  left: calc(var(--side-nav-width, 280px) + 30px);
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--mp-gold-1, #d8b15a);
  pointer-events: none;
  user-select: none;
  will-change: transform;
  animation: coachPop .5s ease;
}
/* Beim Greifen (installCompanionDrag): Faust-Cursor, ueber alles heben */
.mascotCompanion.is-dragging { z-index: 90; }
.mascotCompanion.is-dragging .coachCat { cursor: grabbing; }
/* Wand-Aufprall: Squash entlang der Treffer-Achse (wallImpact) */
.mascotCompanion.bonk-x .coachCat { animation: catBonkX .5s cubic-bezier(.34, 1.4, .44, 1); }
.mascotCompanion.bonk-y .coachCat { animation: catBonkY .5s cubic-bezier(.34, 1.4, .44, 1); }
@keyframes catBonkX {
  0% { transform: scale(.68, 1.22); }
  45% { transform: scale(1.14, .9); }
  100% { transform: scale(1, 1); }
}
@keyframes catBonkY {
  0% { transform: scale(1.22, .68); }
  45% { transform: scale(.9, 1.14); }
  100% { transform: scale(1, 1); }
}
/* Schwindel nach Herumwirbeln (goDizzy): Torkeln + benommene Schlitzaugen */
.is-dizzy .coachCat { animation: coachCatDizzy 2s ease-in-out; }
.is-dizzy:not(.is-talking) .coachCat-eyes { animation: none; transform: scaleY(.3); }
@keyframes coachCatDizzy {
  0% { transform: rotate(0deg); }
  14% { transform: rotate(8deg) translateX(2px); }
  32% { transform: rotate(-7deg) translateX(-2px); }
  52% { transform: rotate(5deg) translateX(1px); }
  72% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* Aufprall-Sternchen (spawnStars, fixed auf <body>) */
.mascotStar {
  position: fixed;
  z-index: 95;
  width: 14px;
  height: 14px;
  color: #f3d795;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(216, 177, 90, .6));
  animation: mascotStarBurst .7s cubic-bezier(.2, .7, .4, 1) forwards;
}
.mascotStar svg { display: block; width: 100%; height: 100%; }
@keyframes mascotStarBurst {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx, 30px), var(--sy, -30px)) scale(1) rotate(var(--sr, 90deg)); }
}
.mascotCompanion-bubble {
  position: relative;
  max-width: 320px;
  margin-bottom: 13px;
  padding: 11px 15px;
  border: 1px solid rgba(216, 177, 90, .38);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: rgba(6, 9, 13, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 18px rgba(216, 177, 90, .08);
  font-family: var(--mp-serif-body);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(240, 232, 210, .96);
  transition: opacity .35s ease, visibility .35s ease;
}
/* Sprechblasen-Schwaenzchen: zeigt hinunter auf Suetlacs Kopf */
.mascotCompanion-bubble::before {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -12px;
  border: 12px solid transparent;
  border-bottom: 0;
  border-top-color: rgba(216, 177, 90, .38);
  border-left-width: 4px;
  border-right-width: 12px;
}
.mascotCompanion-bubble::after {
  content: "";
  position: absolute;
  left: 31.5px;
  bottom: -10px;
  border: 10.5px solid transparent;
  border-bottom: 0;
  border-top-color: rgba(9, 12, 16, .97);
  border-left-width: 3.5px;
  border-right-width: 10.5px;
}
.mascotCompanion-greet {
  margin-bottom: 4px;
  font-family: var(--mp-serif);
  font-size: 14px;
  letter-spacing: .4px;
  color: var(--mp-gold-1, #d8b15a);
}
/* Schlaeft sie (Inaktivitaet oder Ruhemodus), verschwindet die Blase —
   eine schlafende Katze redet nicht. Aufwachen blendet sie sanft zurueck. */
.mascotCompanion:has(.is-sleeping) .mascotCompanion-bubble,
body.cat-muted .mascotCompanion-bubble,
.mascotLine:has(.is-sleeping) .mascotLine-bubble,
body.cat-muted .mascotLine-bubble {
  opacity: 0;
  visibility: hidden;
}
/* Tipp-Text tippt sich ein — Mindesthoehe, damit die Blase nicht springt */
.mascotCompanion-tip { display: block; min-height: 2.9em; }
/* Katze + Name als zentrierte Saeule: der Name sitzt IMMER mittig unter der
   Katze, egal wie lang er ist (fit-content teilt die Mittelachse). */
.mascotCompanion-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin-left: 12px;
}
.mascotCompanion-cat { display: block; }
.mascotCompanion-cat .coachCat {
  display: block;
  width: 96px;
  pointer-events: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(216, 177, 90, .2));
}
.mascotCompanion-name {
  margin-top: 1px;
  text-align: center;
  white-space: nowrap;
  font-family: var(--mp-serif);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--mp-gold-1, #d8b15a);
}
@media (max-width: 1100px), (max-height: 640px) {
  .mascotCompanion { display: none; }
}

/* ── Maus-Interaktion: Streicheln + Klick (render/mascot.js) ── */
svg.coachCat { pointer-events: auto; cursor: grab; }
.is-petted .coachCat { animation: coachCatPurrWiggle 1.1s ease-in-out infinite; }
.is-petted .coachCat-mouthClosed { opacity: 0; }
.is-petted .coachCat-mouthHappy { opacity: 1; }
/* Selige Schnurr-Augen (fast zu) — ausser sie spricht gerade */
.is-petted:not(.is-talking) .coachCat-eyes { animation: none; transform: scaleY(.24); }
.is-delighted .coachCat { animation: coachCatDelight .9s cubic-bezier(.3, .7, .3, 1); }
.is-delighted .coachCat-sparkles { opacity: 1; animation: coachSparkleTwinkle .45s ease-in-out infinite; }
@keyframes coachCatPurrWiggle {
  0%, 100% { transform: rotate(-1.3deg) scale(1.02); }
  50% { transform: rotate(1.3deg) scale(1.05); }
}
@keyframes coachCatDelight {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-13px) rotate(-6deg) scale(1.07); }
  55% { transform: translateY(0) rotate(4deg); }
  75% { transform: translateY(-5px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* ── Schlaf bei Inaktivitaet (render/mascot.js setMascotAsleep) ──
   Drei versetzte z steigen als DURCHGEHENDER Strom auf (negative Delays):
   es ist immer mindestens ein z sichtbar, kein sichtbarer Neustart. */
.coachCat-zzz {
  font-family: var(--mp-serif, Georgia, serif);
  font-style: italic;
}
.coachCat-zzz .zz { opacity: 0; }
.is-sleeping .coachCat { animation: coachCatSleep 3.6s ease-in-out infinite; }
.is-sleeping .coachCat-eyes { animation: none; transform: scaleY(.1); }
.is-sleeping .coachCat-zzz .zz { animation: coachZzzFloat 3.3s linear infinite; }
.is-sleeping .coachCat-zzz .zz2 { animation-delay: -1.1s; }
.is-sleeping .coachCat-zzz .zz3 { animation-delay: -2.2s; }
@keyframes coachCatSleep {
  0%, 100% { transform: translateY(1px) scale(1); }
  50% { transform: translateY(2px) scale(1.025); }
}
@keyframes coachZzzFloat {
  0% { opacity: 0; transform: translate(-2px, 5px); }
  25% { opacity: .85; }
  60% { opacity: .85; }
  100% { opacity: 0; transform: translate(4px, -11px); }
}

/* Klick-Spruch der Katze (fixed auf <body>, render/mascot.js showQuip) */
.mascotQuip {
  position: fixed;
  z-index: 1600;
  max-width: 260px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 177, 90, .35);
  background: rgba(5, 8, 12, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mp-serif-body);
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(236, 227, 203, .94);
  pointer-events: none;
  animation: mascotQuipIn .22s ease, mascotQuipOut .3s ease var(--quip-hold, 2.2s) forwards;
}
@keyframes mascotQuipIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mascotQuipOut {
  to { opacity: 0; transform: translateY(-4px); }
}

/* Katzen-Ruhemodus (body.cat-muted): Suetlac schlaeft ueberall, egal was die
   Container-Zustaende sagen — !important schlaegt bewusst alle Animationen. */
body.cat-muted .coachCat { animation: coachCatSleep 3.6s ease-in-out infinite !important; }
body.cat-muted .coachCat-eyes { animation: none !important; transform: scaleY(.1) !important; }
body.cat-muted .coachCat-zzz .zz { animation: coachZzzFloat 3.3s linear infinite !important; }
body.cat-muted .coachCat-zzz .zz2 { animation-delay: -1.1s !important; }
body.cat-muted .coachCat-zzz .zz3 { animation-delay: -2.2s !important; }
body.cat-muted .coachCat-mouthOpen,
body.cat-muted .coachCat-mouthHappy,
body.cat-muted .coachCat-mouthSad { opacity: 0 !important; }
body.cat-muted .coachCat-mouthClosed { opacity: 1 !important; }
body.cat-muted .coachCat-sparkles { opacity: 0 !important; animation: none !important; }
body.cat-muted svg.coachCat { cursor: default; }

/* Verbindungs-Banner: besorgte Suetlac neben der Meldung */
.connectionBanner .cb-cat { display: inline-flex; margin-right: 10px; vertical-align: middle; color: var(--mp-gold-1, #d8b15a); }
.connectionBanner .cb-cat .coachCat { width: 34px; }
.connectionBanner .cb-cat .coachCat path,
.connectionBanner .cb-cat .coachCat ellipse { stroke-width: 4.5; }
.connectionBanner .cb-cat .coachCat .coachCat-sparkles { display: none; }
.connectionBanner .cb-text { vertical-align: middle; }

/* Lade-Zustand: Suetlac beschwoert die Daten (render/mascot.js mascotLoadingHtml) */
.mascotLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 16px;
  color: var(--mp-gold-1, #d8b15a);
}
.mascotLoading-cat .coachCat {
  width: 92px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(216, 177, 90, .2));
}
.mascotLoading-text {
  font-family: var(--mp-serif-body);
  font-size: 15.5px;
  color: rgba(232, 222, 197, .75);
}

/* Aufsteigende Herzchen (fixed auf <body>, render/mascot.js spawnHearts) */
.mascotHeart {
  position: fixed;
  z-index: 1600;
  width: 16px;
  height: 16px;
  color: #f0a6c6;
  pointer-events: none;
  opacity: 0;
  animation: mascotHeartFloat 1.2s ease-out forwards;
}
.mascotHeart svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(240, 166, 198, .6));
}
@keyframes mascotHeartFloat {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -48px) scale(1.05); }
}

.coachPanel-name {
  text-align: center;
  font-family: var(--mp-serif);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--mp-bone);
}
.coachPanel-role {
  display: block;
  margin-top: 2px;
  font-family: var(--mp-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mp-ink-dim);
}

/* --- Sprechblase im Panel (Tail zeigt hoch zur Katze) --- */
.coachPanel-speech {
  position: relative;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--accent, #d8b15a) 35%, transparent);
  background: rgba(5, 8, 12, .62);
}
.coachPanel-tail {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(5, 8, 12, .95);
  border: 1px solid color-mix(in srgb, var(--accent, #d8b15a) 35%, transparent);
  border-right: 0;
  border-bottom: 0;
  transform: translateX(-50%) rotate(45deg);
}
.coachPanel-task {
  font-family: var(--mp-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.34;
  min-height: 1.34em;
  color: var(--mp-bone);
}
.coachPanel-copy {
  margin-top: 10px;
  padding-top: 9px;
  font-family: var(--mp-serif-body);
  font-size: 17px;
  line-height: 1.52;
  color: rgba(236, 227, 203, .92);
  /* feine Trennlinie zwischen Aufgabe und Erklaerung */
  background: linear-gradient(90deg, rgba(216, 177, 90, .38), transparent 70%) top left / 100% 1px no-repeat;
}
/* Farb-Akzente in der Katzen-Sprache (decorateSpeech): die Figur, um die es
   geht, gold; Brettfelder teal-mono (teal = Aufmerksamkeit). */
.coach-hl-piece { color: var(--mp-gold-1, #d8b15a); font-weight: 700; }
.coach-hl-square {
  font-family: var(--mp-mono);
  font-size: .85em;
  font-weight: 700;
  letter-spacing: .6px;
  color: var(--mp-teal-1, #6ee7d8);
  text-transform: uppercase;
}
.coachPanel-msg {
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.38;
  border-left: 2px solid #e26a6a;
  background: rgba(176, 48, 80, .16);
  color: #ffd6d6;
}
.coachPanel-msg.success { border-left-color: #7bbf9a; background: rgba(90, 192, 140, .14); color: #dff8e8; }
.coachPanel-card.is-complete .coachPanel-task { text-align: center; font-size: 16px; }
.coachPanel-card.is-complete .coachPanel-copy { text-align: center; }

@keyframes coachPop { from { opacity: 0; } to { opacity: 1; } }
@keyframes coachShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.coach-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid color-mix(in srgb, var(--accent, #d8b15a) 70%, transparent);
  opacity: .7;
  pointer-events: none;
  z-index: 2;
}
.coach-corner.tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.coach-corner.tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; }
.coach-corner.bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; }
.coach-corner.br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }

.coach-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.coach-btn {
  pointer-events: auto;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #d8b15a) 45%, transparent);
  background: rgba(8, 12, 18, .7);
  color: var(--mp-bone);
  font-family: var(--mp-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}
.coach-btn:hover { border-color: color-mix(in srgb, var(--accent, #d8b15a) 70%, transparent); }
.coach-btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #d8b15a) 88%, #fff 6%), color-mix(in srgb, var(--accent, #d8b15a) 72%, #000 8%));
  color: #0c0e13;
  border-color: transparent;
}

/* Lektion-Abschluss = zentrales Pop-up ueber dem Brett (renderTutorialDoneModal).
   Es nutzt jetzt 1:1 die geteilte Puzzle-Siegkarte (.pzcWin/.pzcCard in main-11),
   damit der Abschluss dieselbe Feier ist wie ein geloestes Puzzle. Hier bleibt nur
   die Stapel-Ordnung des Layers ueber dem Brett. */
#tutorialCelebrateLayer { z-index: 40; }

/* "Effektleiste" pointer hint inside the coach panel during an ability step */
.coach-rail-hint {
  margin-top: 8px;
  font-family: var(--mp-mono);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mp-teal-1, #6ee7d8);
}

/* The ability the tutorial wants you to click pulses teal (teal = attention) */
.effectChip.tutorial-wants-this {
  border-color: var(--mp-teal-2, #4dd0c4) !important;
  animation: tutorialWantPulse 1.15s ease-in-out infinite;
}
@keyframes tutorialWantPulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--mp-teal-2, #4dd0c4), 0 0 9px rgba(77, 208, 196, .4); }
  50%      { box-shadow: 0 0 0 2px var(--mp-teal-1, #6ee7d8), 0 0 22px rgba(77, 208, 196, .7); }
}

/* Animated "click here" arrow(s) — guided Academy steps AND the normal-game
   "which piece casts this effect?" pick (see render/tutorial-pointer.js). A pooled
   body-level layer holds N arrows; each is fixed-positioned by viewport coords,
   rotates to face its target (--tp-angle), and bobs toward it. */
.tutPointerLayer {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}
.tutPointer {
  position: fixed;
  left: 0;
  top: 0;
  width: 56px;
  height: 32px;
  pointer-events: none;
  color: var(--mp-teal-1, #6ee7d8);
  transform: rotate(var(--tp-angle, 0rad));
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(77, 208, 196, .45));
  will-change: left, top, transform;
}
.tutPointer[hidden] { display: none; }
.tutPointer-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  /* softened so it layers with the parent .tutPointer 4px halo, not a double-bloom */
  filter: drop-shadow(0 0 2.5px rgba(110, 231, 216, .4));
  animation: tutPointerBob 1.45s cubic-bezier(.45, 0, .35, 1) infinite;
}
.tutPointer-svg .tpSpark {
  transform-box: fill-box;
  transform-origin: center;
  animation: tpSparkShimmer 1.45s ease-in-out infinite;
}
@keyframes tutPointerBob {
  0%, 100% { transform: translateX(-0.5px); opacity: .9; }
  50%      { transform: translateX(2.5px);  opacity: 1; }
}
/* the trailing comet spark breathes, gently out of phase with the bob */
@keyframes tpSparkShimmer {
  0%, 100% { opacity: .28; transform: scale(.85); }
  50%      { opacity: .58; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .tutPointer-svg { animation: none; transform: translateX(1.5px); }
  .tutPointer-svg .tpSpark { animation: none; opacity: .5; transform: none; }
}

/* Collapsed effect-group / graveyard header: a clean dot instead of the count */
.effectGroupHeader b.effectGroupDot {
  min-width: 6px;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--group-tone, var(--rift-gold-bright, #d8b15a)) 70%, transparent);
  font-size: 0;
}

/* ===================================================================== */
/* PUZZLES — Hub page, in-board solving HUD, dopamine celebration.        */
/* Self-contained block (top level): page show/hide handled by the        */
/* mode-puzzle lists above. Design: free-floating headers, sharp corner-  */
/* bracketed boxes, teal = active / gold = reward, smooth glows.          */
/* ===================================================================== */

.puzzlePage { width: 100%; }
.puzzleGrid { width: 100%; }

.pz-root {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  gap: clamp(20px, 3vh, 30px);
  align-content: start;
  color: var(--mp-parchment, #e8e2d0);
}
/* Kein eigener Glow auf dem zentrierten .pz-root-Block — der erzeugte eine harte
   Kante an der Container-Kante (zentriert -> Kante sitzt mitten auf der Seite, nicht
   am Rand). Der Ambient-Glow kommt vom seitenweiten body.mode-puzzle .modeScreen
   (teal oben-rechts + gold unten-links, weich von den Seitenecken). Wie bei Play. */
.pz-root > * { position: relative; z-index: 1; }
.pz-root .duell-head { margin-bottom: 6px; }
.pz-root .pz-section-label { margin-top: 14px; }

/* === Hero panel: static board preview + meters + solve CTA + stats === */
.pz-root .pz-hero {
  position: relative;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(77, 208, 196, .22);
  background: linear-gradient(180deg, rgba(13, 16, 22, .6), rgba(8, 9, 13, .85));
}
.pz-root .pz-hero::before, .pz-root .pz-hero::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--mp-teal-2);
}
.pz-root .pz-hero::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pz-root .pz-hero::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* --- board preview column (our own pieces, non-interactive) --- */
.pz-root .pz-board-col { display: flex; flex-direction: column; min-width: 0; }
.pz-root .pz-board-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; }
/* Mini-Vorschau spiegelt das echte Spielbrett (#boardWrap > #board > .sq) 1:1 wider:
   gold-gerahmtes Panel, geschmolzener Goldrahmen, texturierte Felder, Gold-Koordinaten. */
.pz-root .pzb-stage {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8px;
  border: 1px solid rgba(200, 155, 60, .56); border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(240, 210, 131, .17), transparent 24% 76%, rgba(10, 200, 185, .13)),
    linear-gradient(180deg, #1b1820, #0b0f15 68%, #050607);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.72),
    0 0 26px rgba(10, 200, 185, .11),
    inset 0 0 0 2px rgba(120, 90, 40, .45),
    inset 0 0 24px rgba(0,0,0,.86);
}
.pz-root .pzb-frame {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center;
  padding: 4px; border: 2px solid var(--rift-gold); border-radius: 7px; overflow: hidden;
  background: var(--mp-board-frame);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.86),
    0 0 22px rgba(10, 200, 185, .22),
    inset 0 0 0 1px rgba(240, 210, 131, .22),
    inset 0 0 28px rgba(0,0,0,.70);
}
.pz-root .pzb-frame::before {
  content: ""; position: absolute; inset: 4px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(240,210,131,.22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.42), inset 0 0 32px rgba(0,0,0,.46);
}
.pz-root .pzb-frame::after {
  content: ""; position: absolute; inset: 4px; z-index: 4; pointer-events: none; opacity: .22; mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(10,200,185,.45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(10,200,185,.45) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 0 15%, rgba(240,210,131,.35) 16% 17%, transparent 18% 100%);
}
.pz-root .pzb-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 1px; width: 100%; height: 100%; }
.pz-root .pzb-tile {
  position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--mp-sq-dark);
}
.pz-root .pzb-tile.light { background: var(--mp-sq-light); }
.pz-root .pzb-tile::before {
  content: ""; position: absolute; inset: 9%; border: 1px solid rgba(240,210,131,.11);
  opacity: .7; pointer-events: none; z-index: 0;
}
.pz-root .pzb-tile:nth-child(1), .pz-root .pzb-tile:nth-child(8),
.pz-root .pzb-tile:nth-child(57), .pz-root .pzb-tile:nth-child(64) { box-shadow: inset 0 0 0 1px rgba(240,210,131,.18); }
.pz-root .pzb-tile.target { box-shadow: inset 0 0 0 1px rgba(77, 208, 196, .5); }
.pz-root .pzb-coord {
  position: absolute; z-index: 5; pointer-events: none; font-weight: 800; line-height: 1;
  font-size: clamp(6px, 0.85vw, 11px);
  color: color-mix(in srgb, var(--rift-gold-bright) 72%, rgba(255,255,255,.38));
  opacity: .62; text-shadow: 0 1px 2px rgba(0,0,0,.72), 0 0 5px rgba(240,210,131,.22);
}
.pz-root .pzb-rank { top: 3px; left: 3px; }
.pz-root .pzb-file { bottom: 2px; right: 3px; }
.pz-root .pzb-target-ring {
  position: absolute; inset: 16%; border-radius: 50%;
  border: 1.5px dashed rgba(77, 208, 196, .6); box-shadow: 0 0 12px rgba(77, 208, 196, .3);
  animation: pzbTarget 2.4s ease-in-out infinite;
}
@keyframes pzbTarget { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.pz-root .pzb-piece { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.pz-root .pzb-piece img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }
.pz-root .pzb-glyph { font-size: clamp(12px, 2.6vw, 22px); }

.pz-root .pz-board-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  background: rgba(11, 13, 18, .6); border: 1px solid rgba(216, 177, 90, .14);
}
.pz-root .bc-theme { font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: var(--mp-gold-2); margin-bottom: 4px; }
.pz-root .bc-task { font-family: var(--mp-serif); font-size: 16px; letter-spacing: .5px; color: var(--mp-bone); font-weight: 600; }
.pz-root .pz-turn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--mp-bone);
  padding: 7px 12px; border: 1px solid rgba(216, 177, 90, .3); background: rgba(7, 8, 11, .5);
}
.pz-root .pz-turn .tt-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(180deg, #f4ecd6, #cbbf9a);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 8px rgba(244, 236, 214, .4);
}

