@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Marcellus&display=swap');

:root {
  --hb-bg: #07040a;
  --hb-ink: #ede3cc;
  --hb-muted: #b89a78;
  --hb-line: #6a4a28;
  --hb-gold: #c4783a;
  --hb-gold-bright: #f0d5a0;
  --hb-teal: #4ecdc4;
  --hb-panel: rgba(10, 8, 12, .78);
  --hb-stone: #14100e;
  --hb-danger: #e85a2a;
  --hb-font: 'Cormorant Garamond', Georgia, serif;
  --hb-display: 'Marcellus', 'Cinzel', serif;
  --hb-ui: 'Cinzel', Georgia, serif;
  --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-common.png');
  --hb-hub: url('/activity/tcg/echobound/assets/valdorn-hub.jpg');
  --hb-face: linear-gradient(180deg, rgba(28, 18, 16, .92), rgba(10, 7, 8, .94));
  --hb-face-deep: linear-gradient(180deg, rgba(16, 12, 14, .72), rgba(8, 6, 8, .86));
  --hb-edge: #8a5a32;
  --hb-inset: inset 0 1px 0 rgba(240, 213, 160, .16), inset 0 0 0 1px #1a100c;
  --mood: #c4783a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: #070504;
  color: var(--hb-ink);
  font-family: var(--hb-font);
}
#eb-app { min-height: 100dvh; }
#eb-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: #120c0a;
  border: 1px solid var(--hb-edge);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  color: var(--hb-gold-bright);
  padding: 12px 26px; z-index: 9999; font-family: var(--hb-ui); letter-spacing: .08em;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
#eb-toast.show { transform: translateX(-50%) translateY(0); }

.hb-shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* ===== Kopfleiste (nur Unterseiten) ===== */
.hb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px 16px;
  background: linear-gradient(180deg, rgba(10,8,10,.88), rgba(8,6,8,.55));
  border-bottom: 1px solid rgba(138, 90, 50, .45);
  position: relative;
  z-index: 5;
}
.hb-wordmark {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--hb-gold-bright);
  font-family: var(--hb-display); letter-spacing: .28em; font-size: 1.05rem;
  cursor: pointer; padding: 0;
}
.hb-wordmark-hex {
  width: 18px; height: 20px;
  background: var(--hb-gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 10px rgba(196,120,58,.6);
}
.hb-wordmark:hover { color: #fff6d8; }
.hb-crown-mini { display: flex; gap: 7px; align-items: center; }
.hb-facet-gem {
  width: 10px; height: 10px; transform: rotate(45deg);
  background: var(--t, var(--hb-gold));
  box-shadow: 0 0 8px var(--t, var(--hb-gold));
  opacity: .85;
}
.hb-top a, .hb-link { color: var(--hb-gold-bright); text-decoration: none; font-family: var(--hb-ui); font-size: .72rem; letter-spacing: .08em; }
.hb-top a:hover { color: #fff6d8; }
.hb-account { display: flex; align-items: center; gap: 14px; font-size: .72rem; color: var(--hb-muted); font-family: var(--hb-ui); letter-spacing: .06em; }

/* ===== Hub: der Thronkreis — Kinoscreen ===== */

.hb-hub, .hb-gate {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #06040a;
  padding: 12px 16px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hb-gate {
  background:
    radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--mood) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(6,4,8,.15), rgba(6,4,8,.55) 78%, #06040a),
    #0c0906 var(--hb-hub) center/cover no-repeat;
}
.hb-hub { padding: 0; justify-content: stretch; }

.hb-hub-cinema {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #06040a;
}
.hb-hub-plate, .hb-hub-rift, .hb-hub-vision, .hb-hub-grade, .hb-hub-vignette {
  position: absolute; inset: 0;
}
.hb-hub-plate {
  background: #0c0906 var(--hb-hub) center 42%/cover no-repeat;
}
.hb-hub-rift { width: 100%; height: 100%; }
.hb-hub-vision {
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity .7s ease, background .7s ease;
  background: radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--mood) 48%, transparent), transparent 62%);
}
.hb-hub.mood .hb-hub-vision { opacity: 1; }
.hb-hub[data-vision="glut"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 72%, rgba(255,70,10,.42), transparent 58%);
}
.hb-hub[data-vision="flut"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 36%, rgba(56,189,248,.34), transparent 60%);
}
.hb-hub[data-vision="wurzel"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 70%, rgba(34,197,94,.34), transparent 58%);
}
.hb-hub[data-vision="stein"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 50%, rgba(148,163,184,.28), transparent 56%);
}
.hb-hub[data-vision="volt"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 40%, rgba(251,191,36,.36), transparent 56%);
}
.hb-hub[data-vision="schleier"] .hb-hub-vision {
  background: radial-gradient(ellipse at 50% 45%, rgba(167,139,250,.36), transparent 58%);
}
.hb-hub-grade {
  background:
    radial-gradient(ellipse at 50% 38%, transparent 16%, rgba(4,2,10,.42) 100%),
    linear-gradient(180deg, rgba(8,6,12,.38), transparent 28%, transparent 48%, rgba(6,4,8,.78));
}
.hb-hub.mood .hb-hub-grade {
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--mood) 14%, transparent) 8%, rgba(4,2,10,.4) 100%),
    linear-gradient(180deg, rgba(8,6,12,.28), transparent 32%, transparent 50%, rgba(6,4,8,.74));
}
.hb-hub-vignette {
  background:
    radial-gradient(ellipse at 50% 34%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.52) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42), transparent 20%, transparent 58%, rgba(0,0,0,.78));
}
.hb-hub-rays {
  position: absolute; inset: -30%; pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% 12%, transparent 0 5%, rgba(255,220,140,.14) 8%, transparent 13%,
      transparent 38%, rgba(62,224,216,.08) 42%, transparent 48%,
      transparent 70%, rgba(255,200,80,.1) 74%, transparent 80%);
  animation: hb-hub-rays 36s linear infinite;
  mask-image: radial-gradient(ellipse at 50% 8%, #000 0 40%, transparent 72%);
}
@keyframes hb-hub-rays { to { transform: rotate(360deg); } }

.hb-letterbox {
  position: absolute; left: 0; right: 0; height: 42px;
  background: #020105;
  z-index: 8;
  pointer-events: none;
  box-shadow: 0 0 40px 18px #020105;
  animation: hb-letterbox-in 1.6s ease both;
}
.hb-letterbox-top { top: 0; }
.hb-letterbox-bot { bottom: 0; box-shadow: 0 0 40px 18px #020105; }
@keyframes hb-letterbox-in {
  from { height: 28vh; }
  to { height: 42px; }
}

.hb-hub-frame { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.hb-hub-frame .c {
  position: absolute; width: 78px; height: 78px;
  border: 1px solid rgba(240, 213, 160, .38);
}
.hb-hub-frame .c::after {
  content: ""; position: absolute;
  width: 10px; height: 10px;
  background: var(--hb-gold);
  box-shadow: 0 0 10px var(--hb-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.hb-hub-frame .tl { top: 54px; left: 18px; border-right: 0; border-bottom: 0; }
.hb-hub-frame .tl::after { top: -5px; left: -5px; }
.hb-hub-frame .tr { top: 54px; right: 18px; border-left: 0; border-bottom: 0; }
.hb-hub-frame .tr::after { top: -5px; right: -5px; }
.hb-hub-frame .bl { bottom: 54px; left: 18px; border-right: 0; border-top: 0; }
.hb-hub-frame .bl::after { bottom: -5px; left: -5px; }
.hb-hub-frame .br { bottom: 54px; right: 18px; border-left: 0; border-top: 0; }
.hb-hub-frame .br::after { bottom: -5px; right: -5px; }

.hb-hub-stage {
  position: relative; z-index: 3;
  width: min(860px, 90vw);
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 78px 0 28px;
}
.hb-hub-brand {
  text-align: center;
  pointer-events: none;
  animation: hb-core-in 1.15s ease both;
}
.hb-hub-brand h1 {
  font-family: var(--hb-display);
  font-size: clamp(3.8rem, 11vw, 7.4rem);
  margin: 0 0 8px;
  letter-spacing: .42em;
  padding-left: .42em;
  background: linear-gradient(180deg, #fff8e4 6%, #f0d5a0 36%, #c4783a 78%, #8a3a18);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #140806) drop-shadow(0 0 42px rgba(196,120,58,.6));
  animation: hb-title-glow 6s ease-in-out infinite;
}
.hb-hub-brand .hb-whisper {
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  font-size: 1.22rem;
}

.hb-ways {
  width: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.hb-ways-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hb-ways-lesser {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hb-way {
  --t: var(--hb-gold);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border: 1px solid rgba(240, 213, 160, .34);
  background: rgba(8, 6, 8, .62);
  color: var(--hb-ink);
  font-family: var(--hb-ui);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  animation: hb-throne-in .75s cubic-bezier(.2,.8,.2,1) both;
}
.hb-way.hero { min-height: 148px; }
.hb-way.lesser {
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 11px;
  background: rgba(8, 6, 10, .7);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.hb-ways-hero .hb-way:nth-child(1) { animation-delay: .12s; }
.hb-ways-hero .hb-way:nth-child(2) { animation-delay: .2s; }
.hb-ways-lesser .hb-way:nth-child(1) { animation-delay: .28s; }
.hb-ways-lesser .hb-way:nth-child(2) { animation-delay: .34s; }
.hb-ways-lesser .hb-way:nth-child(3) { animation-delay: .4s; }
.hb-ways-lesser .hb-way:nth-child(4) { animation-delay: .46s; }
.hb-way-art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: saturate(1.05);
}
.hb-way-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,4,8,.2) 8%, rgba(6,4,8,.55) 48%, rgba(6,4,8,.94) 100%);
}
.hb-way-icon {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; color: var(--t);
  filter: drop-shadow(0 0 8px var(--t));
  z-index: 1;
}
.hb-way.lesser .hb-way-icon {
  position: static;
  width: 18px; height: 18px;
  margin: 0 auto 4px;
}
.hb-way-icon .hb-throne-svg { width: 100%; height: 100%; }
.hb-way-copy {
  position: relative; z-index: 1;
  padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.hb-way.lesser .hb-way-copy {
  padding: 0;
  align-items: center;
  text-align: center;
}
.hb-way-copy em {
  font-style: normal; font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: color-mix(in srgb, var(--t) 80%, #fff);
}
.hb-way-copy strong {
  font-size: 1.36rem; letter-spacing: .16em;
  color: #fff6d8;
  text-shadow: 0 2px 12px #000;
}
.hb-way.lesser .hb-way-copy strong {
  font-size: .92rem;
  letter-spacing: .14em;
}
.hb-way.lesser .hb-way-copy small { display: none; }
.hb-way-copy small {
  font-size: .8rem; letter-spacing: .04em;
  color: #e8dcc4; opacity: .88;
  font-family: var(--hb-font);
}
.hb-way:hover, .hb-way:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--t) 74%, #f0d5a0);
  box-shadow: 0 0 0 1px var(--t), 0 14px 32px rgba(0,0,0,.48), 0 0 24px color-mix(in srgb, var(--t) 36%, transparent);
  z-index: 2;
}
.hb-way.hero:hover .hb-way-art, .hb-way.hero:focus-visible .hb-way-art {
  filter: saturate(1.18) brightness(1.08);
}
.hb-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hb-embers i {
  position: absolute; bottom: -8%; width: 5px; height: 5px; border-radius: 50%;
  background: #ffd27a; box-shadow: 0 0 10px #ffb428, 0 0 20px #e23b22;
  animation: hb-ember 9s linear infinite;
  opacity: .75;
}
.hb-embers i:nth-child(1) { left: 6%; animation-duration: 8s; animation-delay: -1s; }
.hb-embers i:nth-child(2) { left: 16%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: -3s; }
.hb-embers i:nth-child(3) { left: 28%; animation-duration: 7s; animation-delay: -2s; }
.hb-embers i:nth-child(4) { left: 39%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: -5s; }
.hb-embers i:nth-child(5) { left: 51%; animation-duration: 9s; animation-delay: -4s; }
.hb-embers i:nth-child(6) { left: 62%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: -6s; }
.hb-embers i:nth-child(7) { left: 73%; animation-duration: 8.5s; animation-delay: -2.5s; }
.hb-embers i:nth-child(8) { left: 81%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: -7s; }
.hb-embers i:nth-child(9) { left: 89%; animation-duration: 9.5s; animation-delay: -1.5s; }
.hb-embers i:nth-child(10) { left: 95%; width: 5px; height: 5px; animation-duration: 10.5s; animation-delay: -8s; }
.hb-embers i:nth-child(11) { left: 9%; animation-duration: 10s; animation-delay: -4.5s; }
.hb-embers i:nth-child(12) { left: 22%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -9s; }
.hb-embers i:nth-child(13) { left: 47%; animation-duration: 9s; animation-delay: -6s; }
.hb-embers i:nth-child(14) { left: 68%; animation-duration: 11s; animation-delay: -3s; }
@keyframes hb-ember {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-110vh) scale(.35); opacity: 0; }
}
.hb-dust { position: absolute; inset: 0; pointer-events: none; }
.hb-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff6d0; opacity: .35;
  animation: hb-dust 14s linear infinite;
}
.hb-dust i:nth-child(1) { left: 18%; top: 70%; animation-duration: 16s; }
.hb-dust i:nth-child(2) { left: 44%; top: 80%; animation-duration: 12s; animation-delay: -4s; }
.hb-dust i:nth-child(3) { left: 62%; top: 75%; animation-duration: 18s; animation-delay: -7s; }
.hb-dust i:nth-child(4) { left: 78%; top: 68%; animation-duration: 13s; animation-delay: -2s; }
.hb-dust i:nth-child(5) { left: 30%; top: 85%; animation-duration: 15s; animation-delay: -9s; }
.hb-dust i:nth-child(6) { left: 8%; top: 62%; animation-duration: 17s; animation-delay: -5s; }
.hb-dust i:nth-child(7) { left: 55%; top: 90%; animation-duration: 14s; animation-delay: -11s; }
.hb-dust i:nth-child(8) { left: 88%; top: 74%; animation-duration: 19s; animation-delay: -8s; }
@keyframes hb-dust {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: .4; }
  100% { transform: translateY(-50vh); opacity: 0; }
}

.hb-orbit {
  --sz: min(94vmin, 900px);
  width: var(--sz); height: var(--sz);
  position: relative; z-index: 2;
  flex: 0 0 auto;
}
.hb-orbit-ring, .hb-orbit-ring-inner {
  position: absolute; inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(196, 120, 58, .42);
  box-shadow: inset 0 0 50px rgba(0,0,0,.4), 0 0 50px rgba(196,120,58,.12);
  pointer-events: none;
}
.hb-orbit-ring {
  animation: hb-orbit-spin 80s linear infinite;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 7deg, rgba(196,120,58,.16) 7deg 8deg);
  -webkit-mask-image: radial-gradient(circle, transparent 68%, #000 70%, #000 99%, transparent 100%);
  mask-image: radial-gradient(circle, transparent 68%, #000 70%, #000 99%, transparent 100%);
}
.hb-orbit-ring-inner {
  inset: 20%;
  border-color: rgba(78, 205, 196, .22);
  animation: hb-orbit-spin 110s linear infinite reverse;
}
.hb-orbit-runes {
  position: absolute; inset: 4%;
  pointer-events: none;
  animation: hb-orbit-spin 140s linear infinite;
  fill: rgba(240, 213, 160, .55);
  font-size: 4.2px;
  letter-spacing: 1.4px;
}
@keyframes hb-orbit-spin { to { transform: rotate(360deg); } }

.hb-orbit-core {
  position: absolute; inset: 28%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(6,4,10,.62) 36%, transparent 72%);
  animation: hb-core-in 1.15s ease both;
}
.hb-hub-seal {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(196,120,58,.45));
}
.hb-hub-seal .hb-facet-gem { width: 11px; height: 11px; }
.hb-orbit-core h1 {
  font-family: var(--hb-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  margin: 0 0 8px;
  letter-spacing: .32em;
  padding-left: .32em;
  background: linear-gradient(180deg, #fff6d8 8%, #f0d5a0 38%, #c4783a 78%, #8a3a18);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #1a0c08) drop-shadow(0 0 28px rgba(196,120,58,.55));
  animation: hb-title-glow 4.5s ease-in-out infinite;
}
.hb-hub-rule {
  display: block; width: min(220px, 55%); height: 1px;
  margin: 4px auto 12px;
  background: linear-gradient(90deg, transparent, #f0d5a0, transparent);
  box-shadow: 0 0 12px rgba(240,213,160,.45);
}
.hb-kicker {
  letter-spacing: .36em; text-transform: uppercase;
  font-size: .68rem; color: var(--hb-gold-bright);
  font-family: var(--hb-ui); margin: 0 0 8px;
  opacity: .82;
}
.hb-whisper {
  margin: 0; max-width: 320px;
  color: #f3e6c8; font-size: 1.12rem; line-height: 1.5;
  font-style: italic;
  transition: opacity .22s ease, transform .22s ease;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.hb-whisper.is-swap { opacity: 0; transform: translateY(8px); }
@keyframes hb-core-in {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hb-title-glow {
  0%, 100% { filter: drop-shadow(0 4px 0 #1a0c08) drop-shadow(0 0 22px rgba(196,120,58,.4)); }
  50% { filter: drop-shadow(0 4px 0 #1a0c08) drop-shadow(0 0 38px rgba(255,200,90,.7)); }
}

.hb-throne {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute;
  width: 148px;
  left: calc(50% + cos(var(--a)) * 40% - 74px);
  top: calc(50% + sin(var(--a)) * 40% - 70px);
  background: none; border: 0; padding: 0;
  cursor: pointer; z-index: 3;
  color: var(--hb-ink);
  font-family: var(--hb-ui);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .22s ease;
  animation: hb-throne-in .85s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * .12s + .35s);
}
@keyframes hb-throne-in {
  from { opacity: 0; transform: scale(.55) translateY(12px); }
  to { opacity: 1; transform: scale(1); }
}
.hb-throne-ring {
  position: absolute; top: -18px; left: 50%; width: 126px; height: 126px;
  margin-left: -63px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--t) 55%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--t) 25%, transparent);
  animation: hb-orbit-spin 16s linear infinite;
  pointer-events: none;
}
.hb-throne-hex {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 118px; height: 110px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--t) 34%, #1a100c), #0a0808 72%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 28px color-mix(in srgb, var(--t) 42%, transparent);
  overflow: hidden;
}
.hb-throne-portrait {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: saturate(1.15) contrast(1.08);
}
.hb-throne-hex::after {
  content: ""; position: absolute; inset: 6px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  border: 1px solid color-mix(in srgb, var(--t) 60%, transparent);
  pointer-events: none;
  z-index: 2;
}
.hb-throne-film {
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: .85;
}
.t-glut .hb-throne-film {
  background:
    radial-gradient(circle at 50% 120%, #ff6a1a 0 28%, transparent 58%),
    repeating-linear-gradient(180deg, #3a0800 0 5px, #7a1800 5px 10px);
  animation: hb-film-rise 2.6s linear infinite;
}
.t-flut .hb-throne-film {
  background: repeating-linear-gradient(115deg, #07344c, #1a6a8a 14px, #0c4a68 28px);
  animation: hb-film-wave 3.6s ease-in-out infinite;
}
.t-wurzel .hb-throne-film {
  background:
    radial-gradient(circle at 50% 100%, #14532d, transparent 55%),
    repeating-linear-gradient(160deg, #052e16 0 8px, #166534 8px 11px);
  animation: hb-film-rise 5s linear infinite;
}
.t-stein .hb-throne-film {
  background:
    radial-gradient(circle at 40% 30%, #cbd5e1 0 8%, transparent 22%),
    linear-gradient(160deg, #1e293b, #0f172a 60%, #334155);
  animation: hb-film-wave 7s ease-in-out infinite;
}
.t-volt .hb-throne-film {
  background: linear-gradient(180deg, #3f2f00, #0a0800);
}
.t-volt .hb-throne-film::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(120deg, transparent 40%, #ffe27a 50%, transparent 60%);
  animation: hb-film-flash 2.5s steps(1) infinite;
  opacity: 0;
}
.t-schleier .hb-throne-film {
  background:
    radial-gradient(circle at 50% 40%, #a78bfa, transparent 50%),
    repeating-radial-gradient(circle at 50% 50%, #2e1065 0 6px, #4c1d95 6px 12px);
  animation: hb-film-wave 4.4s ease-in-out infinite;
}
@keyframes hb-film-rise { to { transform: translateY(-18%); } }
@keyframes hb-film-wave {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-8%) scale(1.08); }
}
@keyframes hb-film-flash {
  0%, 86%, 100% { opacity: 0; }
  88%, 93% { opacity: .9; }
}
.hb-throne-core {
  position: relative; z-index: 1;
  width: 118px; height: 88px;
  display: grid; place-items: center;
  color: #fff6d8;
  filter: drop-shadow(0 0 8px var(--t));
}
.hb-throne-svg { width: 36px; height: 36px; fill: currentColor; }
.hb-throne strong {
  position: relative; z-index: 1;
  font-size: 1.02rem; letter-spacing: .14em;
  color: var(--hb-gold-bright); margin-top: 8px;
  text-shadow: 0 2px 10px #000;
}
.hb-throne em {
  position: relative; z-index: 1;
  font-style: normal; font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: color-mix(in srgb, var(--t) 85%, #fff);
  opacity: .88;
}
.hb-throne:hover, .hb-throne:focus-visible {
  transform: scale(1.16);
  outline: none;
  z-index: 4;
}
.hb-throne:hover .hb-throne-hex, .hb-throne:focus-visible .hb-throne-hex {
  box-shadow: 0 0 42px var(--t), 0 0 14px #fff6;
}
.hb-throne:hover .hb-throne-ring, .hb-throne:focus-visible .hb-throne-ring {
  border-style: solid;
  box-shadow: 0 0 24px var(--t);
}

.hb-hub-foot {
  position: relative; z-index: 9;
  width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
  margin-top: 2px;
  padding: 10px 22px;
  font-family: var(--hb-ui); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hb-gold-bright);
  background: rgba(8, 6, 10, .55);
  border: 1px solid rgba(196, 120, 58, .35);
  box-shadow: 0 0 24px rgba(0,0,0,.45), inset 0 0 18px rgba(196,120,58,.08);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.hb-hub-foot a { color: #fff6d8; text-decoration: none; }

.hb-btn {
  font-family: var(--hb-ui); color: var(--hb-ink); cursor: pointer;
  background: rgba(16, 12, 12, .7);
  border: 1px solid var(--hb-edge);
  padding: 10px 16px; text-align: center;
  letter-spacing: .06em;
  position: relative;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
}
.hb-btn:hover {
  border-color: var(--hb-gold-bright);
  color: var(--hb-gold-bright);
  box-shadow: 0 0 18px rgba(196,120,58,.35);
}
.hb-btn-primary { color: var(--hb-gold-bright); }
.hb-btn-accent {
  background: color-mix(in srgb, var(--hb-gold) 22%, #120c0a);
  color: #fff6d8; font-weight: 700;
  border-color: var(--hb-gold);
}
.hb-btn-ghost {
  background: transparent;
  clip-path: none;
  padding: 6px 10px;
}
.hb-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }

.hb-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: var(--hb-muted);
  font-family: var(--hb-ui); letter-spacing: .16em; font-size: .68rem;
  text-transform: uppercase; cursor: pointer; padding: 8px 0;
}
.hb-back i {
  width: 10px; height: 10px;
  border-left: 2px solid var(--hb-gold); border-bottom: 2px solid var(--hb-gold);
  transform: rotate(45deg);
}
.hb-back:hover { color: var(--hb-gold-bright); }

.hb-enter {
  margin-top: 18px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--hb-gold-bright); font-family: var(--hb-display);
  letter-spacing: .18em; font-size: 1.15rem;
}
.hb-enter span {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--hb-gold);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  background: rgba(196,120,58,.18);
  box-shadow: 0 0 24px rgba(196,120,58,.25);
}
.hb-enter:hover span { background: rgba(196,120,58,.32); box-shadow: 0 0 32px rgba(196,120,58,.45); }
.hb-enter:disabled { opacity: .35; cursor: not-allowed; }

.hb-gate-orbit {
  --sz: min(86vmin, 560px);
  width: var(--sz); height: var(--sz);
  position: relative; z-index: 2;
}
.hb-gate-seat {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute;
  width: 22px; height: 24px;
  left: calc(50% + cos(var(--a)) * 44% - 11px);
  top: calc(50% + sin(var(--a)) * 44% - 12px);
  background: rgba(196,120,58,.35);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 12px rgba(196,120,58,.4);
}
.hb-gate-core {
  position: absolute; inset: 18%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,8,10,.55) 40%, transparent 72%);
}
.hb-gate-core h2 {
  font-family: var(--hb-display); font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 10px; letter-spacing: .12em; color: var(--hb-gold-bright);
}
.hb-gate-core p { margin: 4px 0; color: #e8dcc4; font-size: 1.1rem; }
.hb-gate-status.ok { color: var(--hb-teal); }
.hb-gate-status.bad { color: #f87171; }
.hb-gate .hb-back { position: relative; z-index: 3; margin-top: 10px; }

@media (max-width: 860px) {
  .hb-ways-lesser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-way.hero { min-height: 132px; }
}
@media (max-width: 720px) {
  .hb-hub-stage { padding: 58px 0 22px; width: min(94vw, 860px); }
  .hb-letterbox { height: 22px; }
  .hb-hub-frame { display: none; }
  .hb-hub-brand h1 { letter-spacing: .18em; padding-left: .18em; }
  .hb-ways-hero { grid-template-columns: 1fr; }
  .hb-way.hero { min-height: 118px; }
  .hb-way-copy strong { font-size: 1.12rem; }
  .hb-whisper { max-width: 92%; }
}

/* ===== Seiten ===== */
.hb-page {
  padding: 20px 28px 80px; max-width: 1480px; margin: 0 auto;
  width: 100%;
}
.hb-shell:not(.combat-on):not(.hub-on) {
  background:
    linear-gradient(180deg, rgba(6,4,10,.78), rgba(6,4,10,.9)),
    #0c0906 var(--hb-hub) center/cover fixed no-repeat;
}
.hb-page-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 10px 0 22px;
  border-bottom: 1px solid rgba(138, 90, 50, .35);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hb-page-titles h2 {
  margin: 0; font-family: var(--hb-display); color: var(--hb-gold-bright);
  letter-spacing: .14em; font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.hb-slab { position: relative; }
.hb-lead { font-size: 1.15rem; color: #e8dcc4; max-width: 640px; }
.hb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hb-head h2 {
  margin: 0; font-family: var(--hb-display); color: var(--hb-gold-bright);
  letter-spacing: .07em;
}

.hb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hb-filters button, .hb-head .hb-btn { padding: 8px 14px; font-size: .72rem; min-height: 0; }
.hb-filters button.on {
  border-color: var(--hb-gold); color: var(--hb-gold-bright);
  background: color-mix(in srgb, var(--hb-gold) 24%, #120c0a);
}

.hb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 24px;
  padding: 16px 8px 36px;
}

/* ===== Karten ===== */
.hb-card {
  position: relative; aspect-ratio: 3/4;
  background: transparent;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.65));
  container-type: inline-size;
}
.hb-card-skin {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #050308;
}
.hb-frame {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--hb-frame) center / 100% 100% no-repeat;
}
.hb-art {
  position: absolute;
  top: 11%; left: 10%; right: 10%; height: 51%;
  background-size: cover; background-position: center top;
  z-index: 1;
  box-shadow: inset 0 0 24px rgba(0,0,0,.45);
}
.hb-vignette {
  position: absolute;
  top: 11%; left: 10%; right: 10%; height: 51%;
  z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(8,5,4,.55) 78%, #080604 100%),
    radial-gradient(ellipse at 50% 30%, transparent 50%, rgba(0,0,0,.28) 100%);
}
.hb-card-aura,
.hb-card-rays,
.hb-sparkles { display: none; }

.hb-card:hover {
  z-index: 4;
}
.hb-card.selected {
  z-index: 6;
}
.hb-card.selected .hb-card-skin {
  box-shadow: inset 0 0 0 2px rgba(240, 213, 160, .7);
}

.hb-sparkles { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.hb-sparkles i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff6d0; box-shadow: 0 0 8px #ffe9a0, 0 0 14px var(--hb-teal);
  opacity: 0;
}
.hb-sparkles i:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.hb-sparkles i:nth-child(2) { top: 22%; right: 16%; animation-delay: .2s; }
.hb-sparkles i:nth-child(3) { top: 48%; left: 10%; animation-delay: .4s; }
.hb-sparkles i:nth-child(4) { top: 40%; right: 12%; animation-delay: .55s; }
.hb-sparkles i:nth-child(5) { bottom: 28%; left: 22%; animation-delay: .7s; }
.hb-sparkles i:nth-child(6) { bottom: 18%; right: 20%; animation-delay: .9s; }

.hb-card.inplay,
.hb-card.compact.inplay { width: min(28vw, 132px); cursor: inherit; }
.hb-card.inplay .hb-name { font-size: .68rem; }
.hb-card.inplay .hb-art { top: 10%; height: 46%; }
.hb-card.inplay .hb-nameplate, .hb-card.inplay .hb-field { top: 58%; }
.hb-card.inplay .hb-nameplate { padding: 3px 4px; }
.hb-card.inplay .hb-meta { display: none; }
.hb-card.inplay .hb-desc { display: none; }
.hb-card.inplay .hb-card-stats { bottom: 30%; right: 8%; }
.hb-card.inplay .hb-atk, .hb-card.inplay .hb-hp { min-width: 20px; padding: 1px 5px; font-size: .68rem; }
.hb-skill {
  margin: 0; font-size: .58rem; letter-spacing: .06em;
  color: #ffe9a0; font-family: var(--hb-ui); text-transform: uppercase;
}

.hb-card.compact { width: 168px; }
.hb-cost {
  position: absolute; top: 8.2%; left: 11.75%; z-index: 6;
  width: 10.5%; aspect-ratio: 1; height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #b8860b 55%, #3a2808);
  border: 1.5px solid #fff1b0;
  color: #1a1004;
  display: grid; place-items: center;
  font-weight: 900; font-size: 8.2cqi; font-family: var(--hb-ui);
  line-height: 1;
  box-shadow: 0 0 5px rgba(212,175,55,.45);
}
.hb-epic:not(.stage-2):not(.stage-3) .hb-cost { top: 8.6%; left: 12.6%; width: 11%; }
.hb-legendary:not(.stage-2):not(.stage-3) .hb-cost { top: 9%; left: 13.4%; width: 11.2%; }
.hb-card.stage-2 .hb-cost { top: 10.7%; left: 12.7%; width: 11.6%; }
.hb-card.stage-3 .hb-cost { top: 10%; left: 13.2%; width: 11.2%; }
.hb-type-gem {
  position: absolute; top: 9%; right: 10%; z-index: 6;
  width: 16px; height: 16px; transform: rotate(45deg);
  background: var(--t);
  border: 1px solid #fff8;
  box-shadow: 0 0 12px var(--t), 0 0 4px #fff;
}
.hb-stage-row {
  position: absolute; top: 20.8%; left: 10.2%; z-index: 6;
  display: flex; align-items: center; gap: 6px;
}
.hb-stage {
  font-family: var(--hb-ui); font-size: .62rem; color: var(--hb-gold-bright);
  background: #1a1008; border: 1px solid var(--hb-gold); padding: 1px 5px;
}
.hb-field {
  position: absolute;
  left: 8%; right: 8%; bottom: 5%; top: 64.5%;
  z-index: 3;
  pointer-events: none;
  background: #070504;
}
.hb-nameplate {
  position: absolute; left: 16%; right: 16%; bottom: 15%; top: 69%; z-index: 5;
  padding: 1px 0 0;
  background: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hb-name {
  margin: 0 0 1px; font-size: .82rem; font-family: var(--hb-ui);
  color: var(--hb-gold-bright); text-shadow: 0 1px 2px #000;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.hb-card.compact .hb-name { font-size: .82rem; }
.hb-card.compact .hb-art { top: 11%; height: 50%; }
.hb-card.compact .hb-nameplate, .hb-card.compact .hb-field { top: 62%; }
.hb-card.compact .hb-nameplate { padding: 4px; }
.hb-card.compact .hb-meta, .hb-card.compact .hb-desc { display: none; }
.hb-card.compact:not(.inplay) .hb-stage-row { display: none; }
.hb-meta, .hb-desc { margin: 0; font-size: .58rem; color: #e6d3a0; }
.hb-meta {
  font-family: var(--hb-ui); letter-spacing: .03em; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 0 0 auto;
}
.hb-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.25;
  flex: 1 1 auto; min-height: 0;
}

.hb-card-stats { position: absolute; right: 12%; bottom: 42%; z-index: 6; display: flex; gap: 5px; }
.hb-card.compact .hb-card-stats { bottom: 34%; right: 10%; }
.hb-atk, .hb-hp {
  min-width: 28px; padding: 3px 8px; font-size: .85rem; font-weight: 700; font-family: var(--hb-ui);
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.hb-atk { background: linear-gradient(#8a2018, #3a0c08); border: 1px solid #ff6b55; color: #ffd4cc; }
.hb-hp { background: linear-gradient(#246028, #0c2010); border: 1px solid #6fd06a; color: #d8ffd4; }

.hb-rarity-gem { display: none; }
.hb-rare:not(.stage-2):not(.stage-3) { --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-rare.png'); }
.hb-epic:not(.stage-2):not(.stage-3) { --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-epic.png'); }
.hb-legendary:not(.stage-2):not(.stage-3) { --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-legendary.png'); }
.hb-card.stage-2 { --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-evo-2.png'); }
.hb-card.stage-3 { --hb-frame: url('/activity/tcg/echobound/assets/cards/frame-evo-3.png'); }
.hb-evo-rim {
  position: absolute; inset: 3%; z-index: 8; pointer-events: none;
  opacity: 0;
}
.hb-card.stage-2 .hb-evo-rim {
  opacity: 1;
  inset: 2.4%;
  border: 2px solid rgba(240, 213, 160, .7);
  box-shadow: 0 0 18px rgba(212,175,55,.4), inset 0 0 14px rgba(255,220,140,.12);
}
.hb-card.stage-3 .hb-evo-rim {
  opacity: 1;
  inset: 1.6%;
  border: 3px solid #f0d5a0;
  box-shadow: 0 0 28px rgba(255,190,50,.55), inset 0 0 18px rgba(255,180,40,.18);
}
.hb-legendary:not(.selected) {
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.65));
}
.hb-fusion { filter: drop-shadow(0 0 10px rgba(255,120,40,.35)) drop-shadow(0 12px 16px rgba(0,0,0,.65)); }
.hb-ritual { filter: drop-shadow(0 0 12px rgba(160,80,255,.4)) drop-shadow(0 12px 16px rgba(0,0,0,.65)); }

@keyframes hb-shine { to { transform: translateX(130%); } }
@keyframes hb-selected-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px #fff6d0) drop-shadow(0 0 22px color-mix(in srgb, var(--t) 70%, #d4af37)) drop-shadow(0 0 36px rgba(62,224,216,.4)) drop-shadow(0 26px 28px rgba(0,0,0,.75)); }
  50% { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 32px color-mix(in srgb, var(--t) 80%, #ffe9a0)) drop-shadow(0 0 52px rgba(62,224,216,.65)) drop-shadow(0 26px 28px rgba(0,0,0,.75)); }
}
@keyframes hb-legendary-idle {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,180,40,.3)) drop-shadow(0 12px 16px rgba(0,0,0,.65)); }
  50% { filter: drop-shadow(0 0 20px rgba(255,180,40,.65)) drop-shadow(0 12px 16px rgba(0,0,0,.65)); }
}
@keyframes hb-pulse-border {
  0%, 100% { box-shadow: inset 0 1px 0 #fff2, 0 0 10px rgba(212,175,55,.25); }
  50% { box-shadow: inset 0 1px 0 #fff2, 0 0 24px rgba(255,220,120,.6); }
}
@keyframes hb-rays { to { transform: rotate(360deg); } }
@keyframes hb-spark {
  0%, 100% { opacity: 0; transform: scale(.4); }
  40% { opacity: 1; transform: scale(1.2); }
  70% { opacity: .2; transform: scale(.7); }
}

/* ===== Kampf: Arena ===== */
.ff-battle .ff-field,
.ff-stage {
  position: relative;
  min-height: min(58vh, 560px);
  padding: 8px 8px 12px;
  perspective: 1400px;
}
.ff-rift {
  position: absolute; left: 18%; right: 18%; top: 46%; height: 28px;
  background: radial-gradient(ellipse, rgba(255, 180, 80, .45), rgba(226, 59, 34, .08) 70%, transparent);
  filter: blur(6px);
  pointer-events: none;
}
.ff-pos { position: absolute; }
.ff-pos.theirs.s2 { top: 2%; left: 10%; transform: scale(.78); }
.ff-pos.theirs.s3 { top: 2%; right: 10%; transform: scale(.78); }
.ff-pos.theirs.s0 { top: 20%; left: 24%; transform: scale(.9); }
.ff-pos.theirs.s1 { top: 20%; right: 24%; transform: scale(.9); }
.ff-pos.mine.s0 { bottom: 22%; left: 20%; transform: scale(1.08); z-index: 2; }
.ff-pos.mine.s1 { bottom: 22%; right: 20%; transform: scale(1.08); z-index: 2; }
.ff-pos.mine.s2 { bottom: 8%; left: 4%; transform: scale(.88); }
.ff-pos.mine.s3 { bottom: 8%; right: 4%; transform: scale(.88); }
.ff-slot.empty {
  width: min(28vw, 132px);
  aspect-ratio: 3/4;
  border: 1px dashed rgba(196,120,58,.35);
  background: rgba(8,6,10,.35);
  display: grid; place-items: center;
  color: var(--hb-muted);
  font-family: var(--hb-ui);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ff-card {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
}
.ff-card .hb-card { pointer-events: none; }
.ff-card .hb-card:hover,
.ff-card .hb-card.selected { transform: none; animation: none; }
.ff-card.acting .hb-card {
  filter: drop-shadow(0 0 10px #ffe9a0) drop-shadow(0 0 22px rgba(255,220,120,.5));
}
.ff-card.guard .hb-card { filter: drop-shadow(0 0 10px #94a3b8); }
.ff-card.pick { cursor: pointer; }
.ff-card.pick .hb-card { outline: 2px dashed #4ecdc4; }
.ff-card.offered .hb-card { outline: 2px dashed #e85a2a; }
.ff-card.evolve .hb-card,
.ff-card.evo-ready .hb-card { outline: 2px solid #4ade80; box-shadow: 0 0 18px rgba(74, 222, 128, .45); }
.ff-mp {
  position: absolute; left: 10%; top: 6%; z-index: 8;
  display: flex; gap: 3px;
}
.ff-mp i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #1a2030; border: 1px solid #3a5080;
}
.ff-mp i.on { background: #60a5fa; box-shadow: 0 0 6px #3b82f6; }
.ff-xp {
  position: absolute; left: 10%; right: 10%; bottom: 0;
  height: 3px; background: #1a1408; z-index: 8;
}
.ff-xp i { display: block; height: 100%; background: #eab308; }
.ff-xp.ready i { background: #4ade80; }
.ff-card.pick:hover .hb-card { outline-color: #fff6d0; }
.ff-card .pk-hp {
  position: absolute; left: 10%; right: 10%; bottom: 4%;
  height: 6px; z-index: 8;
}
.ff-pop {
  position: absolute; right: 6px; top: 8%;
  font-family: var(--hb-display); color: #ffb0a0; font-size: 1.15rem;
  text-shadow: 0 2px 8px #000;
  animation: ff-pop 700ms ease-out;
  pointer-events: none;
  z-index: 9;
}
@keyframes ff-pop {
  0% { transform: translateY(8px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-16px); opacity: 0; }
}
.ff-champ {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  min-width: min(42vw, 260px);
  padding: 8px 12px 10px;
  text-align: left;
  background: linear-gradient(180deg, rgba(18, 12, 10, .88), rgba(8, 6, 8, .78));
  border: 1px solid rgba(232, 197, 106, .4);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,246,208,.12);
  color: var(--hb-ink); font-family: var(--hb-ui);
  cursor: default;
}
.ff-champ-mark {
  grid-row: 1 / 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #c4783a 55%, #3a1808);
  box-shadow: 0 0 12px rgba(232, 197, 106, .5);
  align-self: center;
}
.ff-champ.theirs {
  border-color: rgba(232, 90, 42, .5);
}
.ff-champ.theirs .ff-champ-mark {
  background: radial-gradient(circle at 35% 30%, #ffd0c0, #e85a2a 55%, #3a0c08);
}
.ff-champ-meta { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ff-champ-meta strong { letter-spacing: .08em; font-size: .82rem; }
.ff-champ-meta small { color: var(--hb-muted); font-size: .68rem; }
.ff-champ .pk-hp { grid-column: 2; height: 8px; }
.ff-champ.pick { cursor: pointer; outline: 2px dashed #4ecdc4; }
.ff-champ:disabled { opacity: 1; }
.ff-champ-row { padding: 0 16px 6px; display: flex; justify-content: flex-start; }
.ff-queue {
  flex: 1;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--hb-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hb-hand.dim { opacity: .4; pointer-events: none; }

.hb-combat.pk-battle {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background:
    linear-gradient(180deg, rgba(6,4,10,.25) 0%, rgba(6,4,10,.15) 40%, rgba(8,6,12,.72) 100%),
    #0c0906 url('/activity/tcg/echobound/assets/valdorn-board.jpg') center/cover no-repeat;
}
.pk-top {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  font-family: var(--hb-ui); color: var(--hb-gold-bright); letter-spacing: .08em;
}
.pk-balls { display: flex; gap: 6px; }
.pk-balls i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #6a4a28; background: #1a1210;
}
.pk-balls i.on { background: radial-gradient(circle at 35% 30%, #fff, #c4783a); border-color: #e8c56a; }
.pk-balls i.front { box-shadow: 0 0 8px #4ecdc4; }
.pk-balls i.down { background: #3a2018; opacity: .4; }
.pk-field {
  position: relative;
  display: grid; grid-template-rows: 1fr 1fr;
  min-height: 280px; padding: 8px 20px 12px;
}
.pk-side { display: flex; align-items: flex-end; gap: 16px; }
.pk-side.theirs { justify-content: flex-end; align-items: flex-start; }
.pk-side.mine { justify-content: flex-start; }
.pk-sprite {
  width: min(38vw, 220px); height: min(38vw, 220px);
  background-size: cover; background-position: center top;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.55));
  border-radius: 16px;
}
.pk-sprite.theirs { transform: scaleX(-1); }
.pk-sprite.empty { opacity: .2; background: rgba(255,255,255,.06); }
.pk-hud {
  min-width: min(46vw, 280px);
  padding: 10px 14px 12px;
  background: rgba(10, 8, 10, .72);
  border: 1px solid rgba(196,120,58,.4);
  font-family: var(--hb-ui); color: var(--hb-ink);
}
.pk-hud.empty { opacity: .55; }
.pk-hud-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pk-hud-top strong { letter-spacing: .06em; }
.pk-hud-top em { font-style: normal; font-size: .72rem; letter-spacing: .14em; }
.pk-hp { height: 10px; background: #1a1010; border: 1px solid #3a2020; }
.pk-hp i { display: block; height: 100%; background: #4ade80; }
.pk-hp.mid i { background: #eab308; }
.pk-hp.low i { background: #ef4444; }
.pk-fx {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: var(--hb-display); color: #fff6d0;
  text-shadow: 0 2px 16px #000, 0 0 24px #e85a2a; letter-spacing: .1em;
  pointer-events: none; z-index: 6; font-size: 1.35rem;
  animation: ff-fx 900ms ease-out;
}
.pk-fx.fx-block { color: #93c5fd; }
.pk-fx.fx-skill { color: #c4b5fd; }
.pk-fx.fx-evo { color: #86efac; font-size: 1.5rem; }
.pk-fx.fx-miss, .pk-fx.fx-backfire { color: #fca5a5; }
@keyframes ff-fx {
  0% { transform: translate(-50%, -40%) scale(.8); opacity: 0; }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}
.pk-act.evo { border-color: #4ade80; color: #bbf7d0; }
.hb-evo-pips {
  display: flex; align-items: center; gap: 3px;
}
.hb-evo-pips i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3a3020; border: 1px solid #8a6a30;
}
.hb-evo-pips i.on { background: #f3d57a; box-shadow: 0 0 6px #f3d57a; }
.hb-card.stage-2 .hb-art { filter: saturate(1.15) brightness(1.06); }
.hb-card.stage-3 .hb-art { filter: saturate(1.22) contrast(1.06) brightness(1.08); }
.hb-card.stage-2 {
  filter: drop-shadow(0 0 16px rgba(255, 200, 80, .55)) drop-shadow(0 12px 16px rgba(0,0,0,.65));
}
.hb-card.stage-3 {
  filter: drop-shadow(0 0 24px rgba(255, 190, 50, .8)) drop-shadow(0 0 40px rgba(255, 140, 20, .38)) drop-shadow(0 12px 16px rgba(0,0,0,.65));
}
.hb-card.stage-2 .hb-frame, .hb-card.stage-3 .hb-frame { filter: none; }
.hb-card.stage-3 .hb-name { color: #fff6d8; text-shadow: 0 0 12px #f3d57a, 0 1px 2px #000; }
.hb-token.stage-2 .hb-token-frame {
  border-color: #f0d5a0;
  box-shadow: inset 0 0 0 2px #1a1208, inset 0 0 0 5px #c9a24a, 0 0 16px rgba(240,213,160,.45);
}
.hb-token.stage-3 .hb-token-frame {
  border-width: 4px;
  border-color: #ffe9a0;
  box-shadow: inset 0 0 0 2px #2a1808, inset 0 0 0 6px #e8b84a, 0 0 22px rgba(255,200,80,.6);
}
.ff-card.fx-attack .hb-card { animation: ff-lunge .45s ease-out; }
.ff-card.fx-evo { z-index: 6; }
.ff-card.fx-evo .hb-card { animation: ff-evolve 1.45s ease-out; }
.ff-card.fx-skill .hb-card { animation: ff-lunge .4s ease-out; }
@keyframes ff-lunge {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-12px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes ff-evolve {
  0% { transform: scale(.72) rotate(-6deg); filter: brightness(3) saturate(0.2); }
  35% { transform: scale(1.22) rotate(3deg); filter: brightness(1.8) saturate(1.6); }
  100% { transform: scale(1); filter: none; }
}
.ff-evo-burst {
  position: absolute; inset: 8% 6%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle, rgba(255, 230, 140, .45), transparent 62%),
    conic-gradient(from 0deg, transparent, rgba(255,200,80,.25), transparent 30%);
  pointer-events: none; z-index: 7;
  text-align: center; color: #fff6d0;
  font-family: var(--hb-display);
  animation: ff-evo-burst 1.6s ease-out;
}
.ff-evo-burst em { display: block; letter-spacing: .32em; font-size: .78rem; color: #fde68a; text-transform: uppercase; }
.ff-evo-burst b { font-size: 1.55rem; text-shadow: 0 0 22px #f59e0b, 0 4px 0 #1a0c08; }
@keyframes ff-evo-burst {
  0% { opacity: 0; transform: scale(.7); }
  20% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.15); }
}
.ff-think {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 8; display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: rgba(8, 6, 10, .82);
  border: 1px solid rgba(196, 120, 58, .45);
  color: #e8dcc4; font-family: var(--hb-ui); letter-spacing: .1em;
}
.ff-think i {
  width: 7px; height: 7px; border-radius: 50%; background: #f3d57a;
  animation: ff-think 1s ease-in-out infinite;
}
.ff-think i:nth-child(2) { animation-delay: .15s; }
.ff-think i:nth-child(3) { animation-delay: .3s; }
@keyframes ff-think {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.pk-cmd {
  background: linear-gradient(180deg, rgba(12, 8, 10, .55), rgba(8, 6, 10, .9));
  border-top: 1px solid rgba(232, 197, 106, .28);
}
.pk-cmd {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px 12px; padding: 10px 16px;
  background: rgba(8,6,10,.82);
  border-top: 1px solid rgba(196,120,58,.35);
}
.pk-msg {
  grid-column: 1 / -1;
  min-height: 2.6em; color: #e8dcc4; font-size: 1.05rem;
}
.pk-menu { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-act {
  font-family: var(--hb-ui); letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px; cursor: pointer;
  background: rgba(16,12,12,.8); color: var(--hb-ink);
  border: 1px solid var(--hb-edge);
}
.pk-act.fight { border-color: #e85a2a; color: #ffd0c0; }
.pk-act:disabled { opacity: .35; cursor: not-allowed; }
.pk-echo { display: flex; align-items: center; gap: 4px; }
.pk-party {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px;
}
.pk-mate {
  flex: 0 0 92px; padding: 6px;
  background: rgba(12,10,12,.7); border: 1px solid #4a3020;
  color: var(--hb-ink); cursor: pointer; text-align: left;
  font-family: var(--hb-ui);
}
.pk-mate.front { border-color: #4ecdc4; box-shadow: 0 0 10px rgba(78,205,196,.35); }
.pk-mate.down { opacity: .35; cursor: default; }
.pk-mate.offered { outline: 2px dashed #e85a2a; }
.pk-mate.evolve { outline: 2px solid #4ade80; }
.pk-mate-art { display: block; height: 48px; background-size: cover; background-position: center; }
.pk-mate b { display: block; font-size: .68rem; margin-top: 4px; }
.pk-empty { color: var(--hb-muted); font-size: .85rem; padding: 8px; }
.hb-combat { min-height: 100dvh; }
.hb-heroframe {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px;
  background: transparent;
  border: 0;
  font-family: var(--hb-ui);
}
.hb-heroframe.theirs { border-bottom: 1px solid rgba(232, 90, 42, .4); }
.hb-heroframe.mine { border-top: 1px solid rgba(196, 120, 58, .45); }
.hb-giveup {
  margin-left: auto;
  background: none; border: 0; color: var(--hb-muted);
  font-family: var(--hb-ui); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer;
}
.hb-giveup:hover { color: #f87171; }
.hb-heroframe .hb-champion-art {
  position: relative; width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 50%; border: 2px solid var(--hb-gold);
  background-size: cover; background-position: center;
  box-shadow: 0 0 14px rgba(212,175,55,.4);
}
.hb-heroframe.theirs .hb-champion-art { border-color: var(--hb-danger); }
.hb-heroframe strong { display: block; color: var(--hb-gold-bright); font-size: 1.05rem; }
.hb-heroframe small { color: var(--hb-muted); font-size: .72rem; }
.hb-hpbar {
  position: relative; width: min(280px, 40vw); height: 14px; margin: 4px 0;
  background: #1a0c0c; border: 1px solid #8a2018; overflow: hidden;
}
.hb-hpbar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #8a2018, #e23b22);
  box-shadow: 0 0 10px #e23b22;
}
.hb-hpbar em {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .62rem; color: #fff6d0; font-style: normal; text-shadow: 0 1px 2px #000;
}
.hb-arena-row { display: grid; grid-template-columns: 88px 1fr; min-height: 0; }
@media (max-width: 720px) { .hb-arena-row { grid-template-columns: 1fr; } .hb-vault { display: none; } }
.hb-vault {
  padding: 10px 8px;
  background: transparent;
  border-right: 1px solid rgba(138, 90, 50, .35);
  font-family: var(--hb-ui); color: var(--hb-gold-bright);
}
.hb-vault h3 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hb-vault-grid { display: grid; gap: 6px; }
.hb-extra-mini {
  height: 36px; display: grid; place-items: center;
  border: 2px solid var(--hb-gold); background: #1a1008;
  font-weight: 900;
}
.hb-extra-mini.hb-ritual { border-color: #b56bff; color: #e0c0ff; box-shadow: 0 0 10px rgba(160,80,255,.4); }
.hb-extra-mini.hb-fusion, .hb-extra-mini.hb-binding { border-color: #ff8a40; color: #ffd0a0; box-shadow: 0 0 10px rgba(255,120,40,.35); }
.hb-rite {
  text-align: center; padding: 7px 12px;
  font-family: var(--hb-display); letter-spacing: .2em;
  color: var(--hb-gold-bright); text-transform: uppercase;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.28), transparent);
  text-shadow: 0 0 12px #f3d57a;
}
.hb-rite.tribute { color: #ffb0a0; background: linear-gradient(90deg, transparent, rgba(226,59,34,.35), transparent); }
.hb-rite.evolve { color: #b8ffb0; background: linear-gradient(90deg, transparent, rgba(80,180,80,.3), transparent); }
.hb-rite.fusion { color: #ffd0a0; background: linear-gradient(90deg, transparent, rgba(255,120,40,.32), transparent); }
.hb-rite.ritual { color: #e0c0ff; background: linear-gradient(90deg, transparent, rgba(160,80,255,.32), transparent); }
.hb-token.offered .hb-token-skin { outline: 2px dashed #ff6b55; box-shadow: 0 0 16px #e23b22; }
.hb-token.evolve .hb-token-skin { outline: 2px solid #6fd06a; box-shadow: 0 0 18px #4ade80; animation: hb-token-pick 1.2s ease-in-out infinite; }
.hb-token-stage {
  position: absolute; top: 4px; left: 4px; z-index: 4;
  font-size: .58rem; font-family: var(--hb-ui); color: #ffe9a0;
  background: #1a1008; border: 1px solid var(--hb-gold); padding: 0 3px;
}
.hb-tribute-mark {
  position: absolute; top: 22%; right: 10%; z-index: 6;
  font-size: .68rem; font-family: var(--hb-ui); color: #ffb0a0;
  background: #2a0c0c; border: 1px solid #e23b22; padding: 1px 4px;
  box-shadow: 0 0 8px rgba(226,59,34,.5);
}
.hb-arena {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 12px 4px;
}
.hb-circle {
  --sz: min(58vh, 520px);
  position: relative;
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  border: 1px solid rgba(196, 120, 58, .45);
  background:
    radial-gradient(circle at 50% 50%, rgba(10,7,10,.15) 28%, rgba(14,10,12,.62) 32%, rgba(14,10,12,.62) 40%, transparent 42%);
  box-shadow: 0 0 40px rgba(0,0,0,.35);
}
.hb-circle-heart {
  position: absolute; inset: 34%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
  font-family: var(--hb-ui); color: var(--hb-muted); letter-spacing: .12em;
}
.hb-circle-heart small { font-size: .62rem; text-transform: uppercase; }
.hb-slot.orbit { outline: 2px solid var(--hb-teal); animation: hb-legal 1s ease-in-out infinite; }
.hb-heroframe.atk { box-shadow: inset 0 0 0 1px #f87171, 0 0 22px rgba(232,90,42,.35); }
.hb-slot {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute;
  width: 28%;
  aspect-ratio: 3/4;
  left: calc(50% + cos(var(--a)) * 40% - 14%);
  top: calc(50% + sin(var(--a)) * 40% - 18%);
  padding: 0;
  border: 2px solid #6a5020;
  background: rgba(16, 10, 6, .55);
  cursor: pointer;
  z-index: 2;
  overflow: visible;
}
.hb-slot.legal { outline: 2px solid var(--hb-gold-bright); animation: hb-legal 1s ease-in-out infinite; }
.hb-slot.atk { outline: 2px solid var(--hb-danger); animation: hb-atkcell .7s ease-in-out infinite; }
.hb-slot.crowned { box-shadow: 0 0 16px rgba(212,175,55,.55); }
.hb-champion {
  position: absolute; inset: 32%;
  border-radius: 50%;
  border: 3px solid var(--hb-gold);
  background: #120c08;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 6px; z-index: 1; cursor: pointer;
  box-shadow: 0 0 24px rgba(212,175,55,.3), inset 0 0 18px rgba(0,0,0,.45);
  font-family: var(--hb-ui); color: var(--hb-gold-bright);
}
.hb-champion.theirs { border-color: var(--hb-danger); box-shadow: 0 0 24px rgba(226,59,34,.28); }
.hb-champion.atk { outline: 3px solid #fff6d0; animation: hb-token-pick 1.1s ease-in-out infinite; }
.hb-champion-art {
  position: absolute; inset: 6px; border-radius: 50%;
  background-size: cover; background-position: center;
  opacity: .85;
}
.hb-champion strong, .hb-champion b, .hb-champion small { position: relative; z-index: 1; text-shadow: 0 1px 4px #000; }
.hb-champion strong { font-size: .72rem; }
.hb-champion b { font-size: 1.5rem; line-height: 1; }
.hb-champion small { font-size: .58rem; letter-spacing: .06em; color: #f0dfb0; }
.hb-crown {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  padding: 4px 0;
}
.hb-facet {
  width: 16px; height: 16px; transform: rotate(45deg);
  border: 2px solid var(--hb-gold);
  background: #1a1008;
  box-shadow: inset 0 0 6px #000;
}
.hb-facet.mine { background: radial-gradient(circle, #ffe9a0, #d4af37); box-shadow: 0 0 12px #f3d57a; }
.hb-facet.theirs { background: radial-gradient(circle, #ff8a70, #e23b22); box-shadow: 0 0 12px #e23b22; }
.hb-hint {
  text-align: center; margin: 0; padding: 4px 16px 0;
  font-family: var(--hb-ui); font-size: .82rem; color: var(--hb-gold-bright);
  text-shadow: 0 0 10px rgba(212,175,55,.35);
}
.hb-arena-bar { flex-wrap: wrap; }
.hb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(#3a2814, #100c08);
  border-top: 3px solid var(--hb-gold);
  font-family: var(--hb-ui); font-size: .95rem;
  box-shadow: inset 0 1px 0 #f3d57a55, 0 -6px 18px rgba(0,0,0,.3);
}
.hb-echo { display: flex; gap: 5px; }
.hb-pip {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--hb-gold); background: #1a1008;
  box-shadow: inset 0 0 4px #000;
}
.hb-pip.on {
  background: radial-gradient(circle at 35% 30%, #fff6d0, #d4af37);
  box-shadow: 0 0 12px #f3d57a;
}
.hb-board-wrap { display: grid; place-items: center; padding: 8px 12px; min-height: 0; }
.hb-board {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: min(96vw, 1180px);
  height: min(52vh, 700px);
  gap: 8px;
  padding: 14px;
  border: 5px solid var(--hb-gold);
  background: rgba(10,8,5,.55);
  box-shadow: 0 0 40px rgba(212,175,55,.28), inset 0 0 28px rgba(0,0,0,.45), 0 0 0 1px #5a3e14;
  position: relative;
}
.hb-cell {
  border: 2px solid #6a5020;
  background:
    linear-gradient(180deg, rgba(40,28,12,.35), rgba(12,8,5,.55));
  position: relative; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, outline-color .15s;
  overflow: visible;
}
.hb-cell:hover { transform: scale(1.03); box-shadow: 0 0 18px rgba(212,175,55,.4); z-index: 2; }
.hb-cell.own { box-shadow: inset 0 0 0 1px rgba(212,175,55,.45); }
.hb-cell.legal {
  outline: 2px solid var(--hb-gold-bright);
  animation: hb-legal 1s ease-in-out infinite;
}
.hb-cell.atk {
  outline: 2px solid var(--hb-danger);
  animation: hb-atkcell 0.7s ease-in-out infinite;
}
@keyframes hb-legal { 50% { box-shadow: 0 0 22px rgba(243,213,122,.85); } }
@keyframes hb-atkcell { 50% { box-shadow: 0 0 22px rgba(226,59,34,.85); } }
.hb-cell.nebel { background: rgba(148,163,184,.22); }
.hb-cell.sturm { background: rgba(56,189,248,.16); }
.hb-cell.duerre { background: rgba(194,59,34,.2); }
.hb-cell.stille { background: rgba(120,80,180,.2); }

.hb-core {
  height: 100%; display: grid; place-items: center; align-content: center;
  color: var(--hb-gold-bright);
  font-family: var(--hb-ui);
  position: relative;
  background: radial-gradient(circle, rgba(212,175,55,.28), transparent 72%);
}
.hb-core i {
  position: absolute; inset: 12%;
  border: 2px solid var(--hb-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(212,175,55,.45), inset 0 0 16px rgba(212,175,55,.2);
  animation: hb-core-idle 2.6s ease-in-out infinite;
}
.hb-core.theirs i { border-color: var(--hb-danger); box-shadow: 0 0 18px rgba(226,59,34,.45); }
.hb-core strong { position: relative; z-index: 1; font-size: 1.6rem; text-shadow: 0 0 12px #f3d57a; }
.hb-core small { position: relative; z-index: 1; letter-spacing: .18em; text-transform: uppercase; font-size: .62rem; }
@keyframes hb-core-idle {
  50% { box-shadow: 0 0 28px rgba(212,175,55,.7), inset 0 0 22px rgba(212,175,55,.35); }
}

/* Platzierte Diener — Mini-Karten */
.hb-token {
  position: absolute; inset: 4px;
  cursor: pointer;
  transform-origin: center bottom;
  animation: hb-token-idle 3.4s ease-in-out infinite;
  z-index: 1;
}
.hb-token-aura {
  position: absolute; inset: -18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--t) 55%, #f3d57a) 0%, transparent 70%);
  opacity: .45; filter: blur(6px); pointer-events: none;
}
.hb-token-skin {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #080604;
  box-shadow: 0 8px 16px rgba(0,0,0,.55);
}
.hb-token-art {
  position: absolute; inset: 0 0 22%;
  background-size: cover; background-position: center top;
}
.hb-token-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(8,5,4,.75) 78%, #080604 100%);
}
.hb-token-frame {
  position: absolute; inset: 0; pointer-events: none;
  border: 4px solid #c9a24a;
  box-shadow:
    inset 0 0 0 2px #1a1008,
    inset 0 0 0 5px #8a6230,
    inset 0 0 0 7px #e8c56a,
    inset 0 0 18px rgba(0,0,0,.45),
    0 0 10px rgba(212,175,55,.28);
  background:
    linear-gradient(180deg, rgba(243,213,122,.2), transparent 16%, transparent 84%, rgba(8,5,4,.4));
}
.hb-token.mine .hb-token-skin { outline: 2px solid var(--hb-gold); }
.hb-token.theirs .hb-token-skin { outline: 2px solid var(--hb-danger); }
.hb-token.theirs .hb-token-frame { filter: hue-rotate(-20deg) saturate(1.2); }
.hb-token-name {
  position: absolute; left: 4px; right: 4px; bottom: 26%;
  text-align: center; font-family: var(--hb-ui); font-size: .72rem;
  color: var(--hb-gold-bright); text-shadow: 0 1px 3px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hb-token-atk, .hb-token-hp {
  position: absolute; bottom: 6px; z-index: 3;
  min-width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--hb-ui); font-weight: 900; font-size: .85rem;
  border-radius: 50%;
}
.hb-token-atk {
  left: 6px;
  background: radial-gradient(circle at 35% 30%, #ff8a70, #8a2018 60%, #3a0c08);
  border: 2px solid #ffb4a0; color: #fff;
  box-shadow: 0 0 10px rgba(226,59,34,.55);
}
.hb-token-hp {
  right: 6px;
  background: radial-gradient(circle at 35% 30%, #8dff88, #246028 60%, #0c2010);
  border: 2px solid #b8ffb0; color: #fff;
  box-shadow: 0 0 10px rgba(80,200,80,.5);
}
.hb-token.picked {
  transform: translateY(-10px) scale(1.12);
  z-index: 6;
  animation: hb-token-pick 1.15s ease-in-out infinite;
}
.hb-token.picked .hb-token-aura { opacity: 1; }
.hb-token.picked .hb-token-skin {
  outline: 2px solid #fff6d0;
  box-shadow: 0 0 22px #f3d57a, 0 0 14px var(--hb-teal);
}
@keyframes hb-token-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes hb-token-pick {
  0%, 100% { filter: drop-shadow(0 0 8px #f3d57a); transform: translateY(-10px) scale(1.12); }
  50% { filter: drop-shadow(0 0 18px #ffe9a0) drop-shadow(0 0 10px var(--hb-teal)); transform: translateY(-14px) scale(1.16); }
}

.hb-hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  height: 132px;
  padding: 0 12px 6px;
  margin-top: -18px;
  overflow: visible;
  background: linear-gradient(180deg, transparent, rgba(8,6,10,.55));
  perspective: 900px;
  z-index: 8;
}
.hb-hand-slot {
  flex: 0 0 120px;
  margin-left: -36px;
  transform: translateY(18px) rotate(var(--fan, 0deg));
  transform-origin: 50% 110%;
  transition: transform .18s ease, z-index 0s;
  z-index: calc(2 + var(--i, 0));
  cursor: pointer;
}
.hb-hand-slot:first-child { margin-left: 0; }
.hb-hand-slot .hb-card { width: 120px; pointer-events: none; }
.hb-hand-slot:hover,
.hb-hand-slot:focus-within {
  transform: translateY(-72px) scale(1.18) rotate(0deg);
  z-index: 30;
}
.hb-hand-slot .hb-card.selected,
.hb-hand-slot:has(.selected) {
  transform: translateY(-56px) scale(1.12) rotate(0deg);
  z-index: 28;
}
.hb-hand-slot.evo-only { cursor: help; }
.hb-card.locked { filter: none; }
.hb-card.locked .hb-art { filter: grayscale(.22) brightness(.78); }
.hb-card-lock {
  position: absolute;
  left: 11%; right: 11%;
  top: auto;
  bottom: 34.5%;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  font-family: var(--hb-ui);
  font-size: .5rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1a1004;
  padding: 4px 14px 5px;
  background:
    linear-gradient(180deg, #fff1c4 0%, #e0b44a 38%, #a06c1c 100%);
  box-shadow: inset 0 1px 0 rgba(255,244,200,.7), 0 2px 0 #3a2208, 0 4px 10px rgba(0,0,0,.45);
  clip-path: polygon(0 50%, 5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%);
}
.hb-card.compact .hb-card-lock {
  bottom: 36%;
  font-size: .42rem;
  letter-spacing: .08em;
  padding: 3px 8px 4px;
}

.hb-inspect {
  position: fixed;
  z-index: 40;
  display: flex; gap: 14px; align-items: stretch;
  padding: 12px;
  background: rgba(8, 6, 10, .94);
  border: 1px solid rgba(240, 213, 160, .45);
  box-shadow: 0 16px 40px rgba(0,0,0,.65), 0 0 24px rgba(196,120,58,.2);
  pointer-events: none;
  max-width: 92vw;
}
.hb-inspect[hidden] { display: none; }
.hb-inspect .hb-card { width: 168px; flex: 0 0 168px; }
.hb-inspect-facts {
  min-width: 180px; max-width: 240px;
  color: #f3e6c8; font-size: .92rem; line-height: 1.4;
}
.hb-inspect-facts p { margin: 0 0 8px; }
.hb-inspect-facts .who { font-family: var(--hb-ui); color: var(--hb-gold-bright); letter-spacing: .04em; }
.hb-inspect-facts .skill em { color: #ffe9a0; font-style: normal; letter-spacing: .06em; }
.hb-inspect-facts .next { color: #86efac; }
.hb-inspect-facts .lock { color: #fbbf24; font-family: var(--hb-ui); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.hb-log {
  max-height: 76px; overflow: auto; font-size: .72rem; color: var(--hb-muted);
  padding: 0 14px 10px; background: #100c08;
}
.hb-win {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); display: grid; place-items: center; z-index: 20;
}
.hb-win-card {
  background: rgba(10, 8, 10, .92);
  border: 1px solid var(--hb-gold);
  box-shadow: 0 0 50px rgba(196,120,58,.35);
  padding: 40px 52px; text-align: center;
  font-family: var(--hb-display); color: var(--hb-gold-bright);
}

.hb-builder { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 860px) { .hb-builder { grid-template-columns: 1fr; } }
.hb-deck-side {
  background: rgba(12, 10, 12, .55);
  border: 1px solid var(--hb-edge);
  padding: 14px;
  font-family: var(--hb-ui);
}
.hb-deck-side ol { margin: 0; padding-left: 18px; font-size: .78rem; max-height: 420px; overflow: auto; font-family: var(--hb-font); }
.hb-deck-side li { cursor: pointer; padding: 3px 0; }
.hb-deck-side li:hover { color: var(--hb-gold-bright); text-shadow: 0 0 8px rgba(212,175,55,.4); }

.hb-rules { line-height: 1.7; color: #f0dfb0; max-width: 740px; }
.hb-rules h3 { font-family: var(--hb-display); color: var(--hb-gold-bright); text-shadow: 0 0 10px rgba(212,175,55,.25); }
.hb-rules table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.hb-rules td, .hb-rules th { border-bottom: 1px solid var(--hb-line); padding: 6px 8px; text-align: left; }

.hb-form { display: grid; gap: 8px; max-width: 380px; }
.hb-form input, .hb-input {
  background: #140e08; border: 2px solid var(--hb-line); color: inherit;
  padding: 9px 10px; font-family: var(--hb-font);
}
.hb-form input:focus, .hb-input:focus { outline: none; border-color: var(--hb-gold-bright); box-shadow: 0 0 12px rgba(212,175,55,.35); }

.eb-header { display: none; }

/* ===== Grimoire: Entwicklungslinien ===== */
.hb-line {
  margin: 0 0 36px;
  padding: 16px 16px 8px;
  border: 1px solid rgba(196, 120, 58, .28);
  background: linear-gradient(180deg, rgba(16, 10, 8, .55), rgba(8, 6, 8, .35));
}
.hb-line header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
  font-family: var(--hb-ui);
}
.hb-line header strong {
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--hb-gold-bright); font-size: .95rem;
}
.hb-line header small { color: var(--hb-muted); letter-spacing: .08em; }
.hb-line-cards {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px 10px;
}
.hb-line-cards .hb-card { width: min(240px, 100%); }
.hb-line-arrow {
  align-self: center;
  color: #f0d5a0;
  font-size: 1.4rem;
  text-shadow: 0 0 12px rgba(240, 213, 160, .45);
  padding: 0 4px;
}
.hb-grid.look .hb-card { cursor: zoom-in; }

/* ===== Thronhalle ===== */
.vd-hall {
  position: relative;
  flex: 1;
  min-height: 100dvh;
  overflow: hidden;
  outline: none;
  background: #050308;
  color: var(--hb-ink);
  display: grid;
  place-items: center;
}
.vd-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  width: min(100%, calc(100dvh * 3 / 2));
  max-height: 100dvh;
}
.vd-room {
  position: absolute; inset: 0;
  background: #050308 url('/activity/tcg/echobound/assets/px/hall-map.jpg') center / 100% 100% no-repeat;
}
.vd-actor {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -92%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.vd-npc { pointer-events: auto; cursor: pointer; }
.vd-hall:has(.vd-talk:not([hidden])) .vd-door { opacity: 0; }
.vd-npc em {
  margin-top: 4px;
  font-style: normal;
  font-family: var(--hb-ui);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff6d8;
  text-shadow: 0 2px 8px #000;
  background: rgba(8,6,10,.55);
  padding: 2px 7px;
  border: 1px solid rgba(240,213,160,.3);
}
.vd-px {
  --col: 0;
  --row: 0;
  --cell: clamp(52px, 7.5vmin, 80px);
  position: relative;
  width: var(--cell); height: var(--cell);
  background-repeat: no-repeat;
  background-size: calc(var(--cell) * 4) calc(var(--cell) * 4);
  background-position: calc(var(--col) * var(--cell) * -1) calc(var(--row) * var(--cell) * -1);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 10px 8px rgba(0,0,0,.62));
}
.vd-px::after {
  content: "";
  position: absolute; left: 28%; right: 28%; bottom: 6%;
  height: 9%;
  background: rgba(0,0,0,.4);
  border-radius: 50%;
  z-index: -1;
}
.vd-px.hero { background-image: url('/activity/tcg/echobound/assets/px/hero.png'); }
.vd-px.guard { background-image: url('/activity/tcg/echobound/assets/px/guard.png'); }
.vd-px.sage { background-image: url('/activity/tcg/echobound/assets/px/sage.png'); }
.vd-prompt {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -120%);
  z-index: 40;
  font-family: var(--hb-ui); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff6d8;
  background: rgba(8,6,10,.78);
  border: 1px solid rgba(240,213,160,.45);
  padding: 6px 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  white-space: nowrap;
}
.vd-hud {
  position: absolute; left: 16px; right: 16px; top: 16px;
  z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--hb-ui); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hb-gold-bright);
  pointer-events: none;
}
.vd-hud button { pointer-events: auto; }
.vd-pad {
  position: absolute; right: 16px; bottom: 18px; z-index: 30;
  display: none; grid-template-columns: 44px 44px 44px; gap: 6px;
}
.vd-pad b { grid-column: 2; }
.vd-pad button {
  width: 44px; height: 44px;
  background: rgba(10,8,10,.7);
  border: 1px solid rgba(240,213,160,.4);
  color: #fff6d8; font-family: var(--hb-ui);
}
.vd-act {
  position: absolute; left: 16px; bottom: 22px; z-index: 30;
  display: none;
}
.vd-talk {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: min(640px, 92vw);
  z-index: 50;
  padding: 18px 20px 16px;
  background: rgba(8, 6, 10, .92);
  border: 1px solid rgba(240, 213, 160, .5);
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 24px rgba(196,120,58,.18);
}
.vd-talk[hidden] { display: none; }
.vd-talk-name {
  margin: 0 0 8px;
  font-family: var(--hb-ui); letter-spacing: .18em; text-transform: uppercase;
  color: var(--hb-gold-bright); font-size: .72rem;
}
.vd-talk-text {
  margin: 0 0 14px;
  font-size: 1.18rem; line-height: 1.5; color: #f3e6c8;
}
.vd-talk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) {
  .vd-pad, .vd-act { display: grid; }
  .vd-act { display: block; }
  .vd-hud span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-card, .hb-btn, .hb-throne, .hb-cell, .hb-token, .hb-embers i, .hb-hub-rays, .hb-orbit-ring, .hb-dust i,
  .hb-hub-plate, .hb-throne-film, .hb-throne-ring, .hb-orbit-runes, .hb-orbit-core, .hb-letterbox, .hb-way, .hb-way-art,
  .vd-px { transition: none; animation: none; }
  .hb-card:hover, .hb-card.selected, .hb-hand .hb-card:hover, .hb-hand .hb-card.selected, .hb-token.picked, .hb-throne:hover, .hb-way:hover, .hb-hand-slot:hover { transform: none; }
}
