/* =====================================================
   Duel Links Germany Meta – Stylesheet
   DLG Blue Theme: Mitternachtsblau + Cyan + Blau
   ===================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:           #05080f;
  --bg2:          #080d18;
  --bg3:          #0c1220;
  --surface:      #101828;
  --surface2:     #152033;
  --border:       #1a2e4a;
  --border2:      #20385a;

  --accent:       #1a7fd4;
  --accent-hover: #2090e8;
  --accent-glow:  rgba(26,127,212,.18);

  --cyan:         #00c8f0;
  --cyan2:        #00a8cc;
  --cyan-glow:    rgba(0,200,240,.12);

  --tier-s:  #00c8f0;
  --tier-a:  #1a7fd4;
  --tier-b:  #5a9fff;
  --tier-c:  #4ecb8b;
  --tier-d:  #a07fff;

  --red:    #e05555;
  --green:  #4ecb8b;
  --gold:   #e8c84a;

  --text:   #d8e8f8;
  --text2:  #6a8aaa;
  --text3:  #344a62;

  --radius: 8px;
}

html { background: var(--bg); color: var(--text); font-family: 'Exo 2', sans-serif; font-size: 15px; }
body { min-height: 100vh; overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }

/* ── NAV ──────────────────────────────────────────── */
nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; height: 58px; gap: 1.5rem;
}
.logo {
  font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; gap: .3rem;
}
.logo-dlg  { color: var(--cyan); }
.logo-meta { color: var(--accent); }
.logo-de   { color: var(--text3); font-size: 1rem; }

.nav-links { display: flex; gap: 0; flex: 1; }
.nav-link {
  padding: .4rem .9rem; font-size: .82rem; font-weight: 600;
  color: var(--text2); cursor: pointer; letter-spacing: .5px;
  text-transform: uppercase; border-radius: 4px;
  transition: color .15s, background .15s; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover  { color: var(--cyan); background: var(--cyan-glow); }
.nav-link.active { color: var(--cyan); background: var(--cyan-glow); border-bottom-color: var(--cyan); }
.nav-badge {
  background: var(--accent); color: #fff;
  font-size: .6rem; padding: 1px 5px; border-radius: 8px;
  margin-left: 4px; vertical-align: 1px;
}

/* ── LAYOUT ───────────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

.page-header  { margin-bottom: 1.5rem; }
.page-title   { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--cyan); }
.page-sub     { color: var(--text2); font-size: .82rem; margin-top: .2rem; }
.section-title {
  font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--bg3) 0%, #0a1428 100%);
  border: 1px solid var(--border); border-top: 3px solid var(--cyan);
  border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,240,.1), transparent 70%);
}
.hero h1       { font-family: 'Rajdhani', sans-serif; font-size: 2.1rem; font-weight: 700; letter-spacing: 1px; }
.hero h1 .hl   { color: var(--cyan); }
.hero p        { color: var(--text2); margin-top: .4rem; font-size: .9rem; }
.hero-stats    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat-card     { background: rgba(10,20,40,.6); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-num      { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--cyan); }
.stat-label    { font-size: .75rem; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── HOME GRID ────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }

/* ── NEWS ─────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: .75rem; }
.news-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid transparent; border-radius: var(--radius);
  padding: 1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.news-card:hover { border-left-color: var(--cyan); background: var(--surface2); }
.news-tag {
  display: inline-block; font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 4px; margin-bottom: .4rem;
}
.tag-update  { background: var(--accent-glow); color: #6ab8ff; }
.tag-news    { background: rgba(78,203,139,.12); color: #5ed99b; }
.tag-event   { background: var(--cyan-glow); color: var(--cyan); }
.tag-banlist { background: rgba(224,85,85,.12); color: #ff7a7a; }
.news-title  { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.news-date   { font-size: .75rem; color: var(--text3); }

/* ── SIDEBAR ──────────────────────────────────────── */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.update-item  {
  padding: .55rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
}
.update-item:last-child { border-bottom: none; padding-bottom: 0; }
.update-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-new  { background: var(--green); }
.dot-soon { background: var(--cyan); }
.dot-end  { background: var(--red); }
.update-text  { font-size: .82rem; flex: 1; }
.update-when  { font-size: .72rem; color: var(--text3); }

/* Top Decks */
.top-deck-row { display: flex; align-items: center; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.top-deck-row:last-child { border-bottom: none; }
.tier-badge   { font-family: 'Rajdhani', sans-serif; font-size: .85rem; font-weight: 700; width: 20px; }
.tier-s-txt, .tier-0-txt { color: var(--tier-s); }
.tier-a-txt, .tier-1-txt { color: var(--tier-a); }
.tier-b-txt, .tier-2-txt { color: var(--tier-b); }
.tier-c-txt, .tier-3-txt { color: var(--tier-c); }
.tier-d-txt              { color: var(--tier-d); }
.top-deck-name { flex: 1; font-size: .83rem; font-weight: 600; }
.delta-up   { font-size: .7rem; color: var(--green); }
.delta-down { font-size: .7rem; color: #ff7a7a; }
.delta-same { font-size: .7rem; color: var(--text3); }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); padding: .45rem 1rem; border-radius: 6px;
  cursor: pointer; font-family: 'Exo 2', sans-serif; font-size: .82rem; font-weight: 600;
  transition: all .15s;
}
.btn:hover   { border-color: var(--cyan); color: var(--cyan); }
.btn.active  { background: var(--cyan-glow); border-color: var(--cyan2); color: var(--cyan); }
.divider     { border-left: 1px solid var(--border); margin: 0 .25rem; }

/* ── TIER LIST ────────────────────────────────────── */
.tier-controls { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.tier-row      { display: flex; align-items: stretch; margin-bottom: .75rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.tier-label    {
  width: 60px; display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 700; flex-shrink: 0;
}
.tier-s-bg, .tier-0-bg { background: rgba(0,200,240,.18);    color: var(--tier-s); }
.tier-a-bg, .tier-1-bg { background: rgba(26,127,212,.2);    color: var(--tier-a); }
.tier-b-bg, .tier-2-bg { background: rgba(90,159,255,.15);   color: var(--tier-b); }
.tier-c-bg, .tier-3-bg { background: rgba(78,203,139,.13);   color: var(--tier-c); }
.tier-d-bg             { background: rgba(160,127,255,.13);  color: var(--tier-d); }
.tier-decks { display: flex; flex-wrap: wrap; gap: .75rem; padding: .75rem; background: var(--surface); flex: 1; }
.deck-chip {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  padding: .5rem .85rem; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: .5rem;
}
.deck-chip:hover { border-color: var(--cyan); transform: translateY(-1px); }
.deck-icon  { font-size: .9rem; }
.deck-delta { font-size: .65rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.delta-up   { background: rgba(78,203,139,.15); color: var(--green); }
.delta-down { background: rgba(224,85,85,.12);  color: #ff7a7a; }
.delta-same { background: rgba(100,130,160,.1); color: var(--text3); }

/* ── DECK BUILDER ─────────────────────────────────── */
.deck-builder    { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
.card-search-bar { display: flex; gap: .75rem; margin-bottom: 1rem; }
.search-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: .5rem .85rem; color: var(--text);
  font-family: 'Exo 2', sans-serif; font-size: .88rem; outline: none; transition: border-color .15s;
}
.search-input:focus       { border-color: var(--cyan); }
.search-input::placeholder { color: var(--text3); }
.filter-select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: .5rem .75rem; color: var(--text2);
  font-family: 'Exo 2', sans-serif; font-size: .82rem; outline: none; cursor: pointer;
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(95px,1fr));
  gap: .6rem; max-height: 480px; overflow-y: auto; padding-right: .25rem;
}
.card-grid::-webkit-scrollbar       { width: 4px; }
.card-grid::-webkit-scrollbar-track { background: var(--bg); }
.card-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.card-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; transition: all .15s; overflow: hidden; position: relative;
}
.card-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-art        { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.card-name-small { font-size: .65rem; padding: 4px 5px; text-align: center; font-weight: 600; line-height: 1.2; color: var(--text2); }
.card-type-dot   {
  position: absolute; top: 4px; left: 4px; width: 14px; height: 14px;
  border-radius: 50%; font-size: .55rem; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff;
}
.dot-monster { background: #1a6aaa; }
.dot-spell   { background: #0a6040; }
.dot-trap    { background: #3a0a6a; }

/* Deck zone */
.deck-zone {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--cyan); border-radius: 10px;
  padding: 1rem; position: sticky; top: 75px;
}
.deck-zone-title    { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); margin-bottom: .75rem; }
.deck-section       { margin-bottom: .75rem; }
.deck-section-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: .4rem; }
.deck-cards         {
  display: flex; flex-wrap: wrap; gap: 4px; min-height: 36px;
  background: var(--bg3); border-radius: 6px; padding: 5px; border: 1px dashed var(--border2);
}
.deck-card-mini {
  width: 24px; height: 24px; border-radius: 3px; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .1s; border: 1px solid rgba(255,255,255,.08);
}
.deck-card-mini:hover { transform: scale(1.15); }
.deck-stats     { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.deck-stat      { background: var(--bg3); border-radius: 5px; padding: .4rem; text-align: center; }
.deck-stat-num  { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.deck-stat-label { font-size: .6rem; color: var(--text3); text-transform: uppercase; }
.btn-export {
  width: 100%; margin-top: .75rem;
  background: var(--cyan-glow); border: 1px solid var(--cyan2); color: var(--cyan);
  padding: .55rem; border-radius: 6px;
  font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: background .15s;
}
.btn-export:hover { background: rgba(0,200,240,.22); }

/* ── SKILLS ───────────────────────────────────────── */
.skills-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem; cursor: pointer; transition: all .15s;
}
.skill-card:hover   { border-color: var(--cyan); transform: translateY(-2px); }
.skill-header       { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.skill-name         { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .5px; }
.skill-new-badge    {
  background: var(--cyan-glow); color: var(--cyan);
  font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px; border: 1px solid rgba(0,200,240,.25);
  white-space: nowrap;
}
.skill-char  { font-size: .75rem; color: var(--accent); margin-bottom: .4rem; font-weight: 600; }
.skill-desc  { font-size: .78rem; color: var(--text2); line-height: 1.5; }
.skill-tags  { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.skill-tag   { background: var(--bg3); border: 1px solid var(--border); font-size: .63rem; padding: 2px 7px; border-radius: 4px; color: var(--text3); }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer  { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.2rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; font-size: .78rem; color: var(--text3); text-align: center; }
.footer-fresh { color: var(--cyan); font-weight: 600; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .home-grid    { grid-template-columns: 1fr; }
  .deck-builder { grid-template-columns: 1fr; }
  .hero-stats   { grid-template-columns: repeat(2, 1fr); }
  .deck-zone    { position: static; }
}
@media (max-width: 600px) {
  .nav-links { gap: 0; overflow-x: auto; }
  .nav-link  { padding: .4rem .6rem; font-size: .75rem; }
  .hero h1   { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   MOTION & LIVELINESS PASS
   - Reveal-on-scroll, Pulse-Dots, S-Tier-Shimmer,
     Hover-Lift, Glow-Drift, Toasts, Back-to-top.
   ===================================================== */

/* ── Keyframes ───────────────────────────────────────── */
@keyframes dlg-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dlg-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: .65; }
}
@keyframes dlg-orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-18px, 12px) scale(1.08); }
}
@keyframes dlg-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position:  220% 0; }
}
@keyframes dlg-bounce-up {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes dlg-bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2px); }
}
@keyframes dlg-card-fly {
  from { opacity: 0; transform: scale(.5) translateY(-8px); }
  60%  { opacity: 1; transform: scale(1.18); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes dlg-toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dlg-spin-slow {
  to { transform: rotate(360deg); }
}

/* ── Scroll-reveal (auto + IntersectionObserver) ─────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1),
              transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via custom property --i (set inline) */
[data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── Hero — animated orbs + parallax stat lift ───────── */
.hero {
  background: linear-gradient(135deg, var(--bg3) 0%, #0a1428 55%, #07182e 100%);
  background-size: 200% 200%;
  animation: dlg-fade-up .7s ease both;
}
.hero::before {
  animation: dlg-orb-drift 14s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -90px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,127,212,.10), transparent 70%);
  animation: dlg-orb-drift 18s ease-in-out -7s infinite reverse;
  pointer-events: none;
}
.hero h1 {
  position: relative;
}
.hero h1 .hl {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--accent-hover) 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: dlg-shimmer 6s linear infinite;
}
.stat-card {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan2);
  background: rgba(0,200,240,.05);
}
.stat-num[data-target] {
  font-variant-numeric: tabular-nums;
}

/* ── Live indicator next to logo ─────────────────────── */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: .6rem;
  padding: 2px 8px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #5ed99b;
  background: rgba(78,203,139,.10);
  border: 1px solid rgba(78,203,139,.3);
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5ed99b;
  color: rgba(78,203,139,.55);
  animation: dlg-pulse-dot 1.7s ease-in-out infinite;
}

/* ── Pulse dot (sidebar "Heute aktiv") ──────────────── */
.update-dot.dot-new {
  color: rgba(78,203,139,.55);
  animation: dlg-pulse-dot 1.6s ease-in-out infinite;
}
.update-dot.dot-end {
  color: rgba(224,85,85,.55);
  animation: dlg-pulse-dot 2.2s ease-in-out infinite;
}

/* ── News cards — slick hover + slight lift ─────────── */
.news-card {
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0,200,240,.05) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
  pointer-events: none;
}
.news-card:hover { transform: translateY(-2px); }
.news-card:hover::before { transform: translateX(100%); }

/* ── Top-deck row — animated arrow on dir ───────────── */
.top-deck-row .delta-up   svg,
.top-deck-row .delta-up   { animation: dlg-bounce-up   2.4s ease-in-out infinite; }
.top-deck-row .delta-down { animation: dlg-bounce-down 2.8s ease-in-out infinite; }

/* ── Tier list — S-tier shimmer + row entrance ──────── */
.tier-row {
  animation: dlg-fade-up .55s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .25s ease, border-color .25s ease;
}
.tier-row:hover {
  transform: translateX(2px);
  border-color: var(--border2);
}
.tier-label.tier-s-bg,
.tier-label.tier-0-bg {
  position: relative;
  overflow: hidden;
}
.tier-label.tier-s-bg::after,
.tier-label.tier-0-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(0,200,240,.45) 50%,
    transparent 65%);
  background-size: 280% 100%;
  animation: dlg-shimmer 3.5s linear infinite;
  pointer-events: none;
}

/* deck chips: stagger in + spring hover */
.deck-chip {
  animation: dlg-fade-up .45s ease both;
  animation-delay: calc(var(--i, 0) * 30ms + 200ms);
}
.deck-chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px -8px rgba(0,200,240,.4);
}
.deck-chip.is-hidden { display: none; }
.deck-chip:active { transform: translateY(0) scale(.98); }

/* ── Skills grid — entrance + filter ───────────────── */
.skill-card {
  animation: dlg-fade-up .55s ease both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.skill-card:hover {
  box-shadow: 0 14px 30px -18px rgba(0,200,240,.55);
}
.skill-card.is-hidden { display: none; }
.skill-new-badge {
  position: relative;
  overflow: hidden;
}
.skill-new-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: dlg-shimmer 4s linear infinite;
}

/* ── Tier list search input ─────────────────────────── */
.tier-search-wrap {
  margin-left: auto;
  position: relative;
}
.tier-search-wrap input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .45rem .85rem .45rem 2.1rem;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: .82rem;
  outline: none;
  width: 220px;
  transition: border-color .15s, width .25s ease;
}
.tier-search-wrap input:focus { border-color: var(--cyan); width: 260px; }
.tier-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  opacity: .55;
  pointer-events: none;
}
.deck-chip mark {
  background: rgba(0,200,240,.25);
  color: var(--cyan);
  padding: 0 2px;
  border-radius: 2px;
}

/* ── Card item (deck builder) ───────────────────────── */
.card-item {
  animation: dlg-fade-up .4s ease both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
.card-item:hover {
  box-shadow: 0 10px 22px -14px rgba(0,200,240,.6);
}
.card-item:active { transform: translateY(0) scale(.97); }
.deck-card-mini {
  animation: dlg-card-fly .35s cubic-bezier(.4,1.6,.6,1) both;
}

/* ── Toast (mini feedback) ──────────────────────────── */
.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .82rem;
  color: var(--text);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.7);
  min-width: 200px;
  animation: dlg-toast-in .25s ease both, dlg-fade-up .25s ease reverse 2.4s both;
  pointer-events: auto;
}
.toast-warn { border-left-color: #e8c84a; }
.toast-err  { border-left-color: var(--red); }

/* ── Back-to-top ────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .15s, color .15s;
  z-index: 999;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { color: var(--text); border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-glow); }

/* ── Mobile burger menu ─────────────────────────────── */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px; height: 36px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-burger:hover { color: var(--cyan); border-color: var(--cyan); }

@media (max-width: 700px) {
  .nav-inner { gap: .75rem; }
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 58px;
    right: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    flex-direction: column;
    padding: .5rem;
    gap: 2px;
    width: min(240px, 80vw);
    transform-origin: top right;
    transform: scale(.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 24px 50px -12px rgba(0,0,0,.6);
    z-index: 99;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: .55rem .8rem;
  }
}

/* ── Update item — micro-countdown styling ──────────── */
.update-when[data-countdown] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 4ch;
}

/* ── Filter buttons "no results" hint ──────────────── */
.empty-hint {
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--text3);
  font-size: .85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: .5rem;
}
.empty-hint.is-hidden { display: none; }

/* =====================================================
   PHASE A — Cards-DB, Karten-Detail, Tooltip, Forum-Button
   ===================================================== */

/* ── Forum-Button-Kachel im Hero ───────────────────── */
.stat-card.stat-card--link {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}
.stat-card.stat-card--link .stat-num {
  font-size: 2rem;
  line-height: 1;
}
.stat-card.stat-card--link .stat-num--link {
  color: var(--cyan);
}
.stat-card.stat-card--link:hover {
  background: linear-gradient(135deg, rgba(0,200,240,.10), transparent 80%);
  border-color: var(--cyan);
}
.stat-card.stat-card--link:hover .stat-num { transform: scale(1.08); transition: transform .2s ease; }

/* ── Cards-DB (cards-skills.php) ───────────────────── */
.cards-db {
  margin-bottom: 2rem;
}
.cards-db-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.cards-db-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 1.05rem;
  margin: 0;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
  flex: 1 1 auto;
}
.cards-db-controls {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cards-db-search {
  flex: 1 1 200px;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .85rem;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
}
.cards-db-search:focus { border-color: var(--cyan); }
.cards-db-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem .75rem;
  color: var(--text2);
  font-family: 'Exo 2', sans-serif;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
}
.cards-db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: .75rem;
}

/* ── Eine Karte in der DB-Grid ────────────────────── */
.db-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .2s;
  position: relative;
}
.db-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(0,200,240,.6);
}
.db-card-art {
  position: relative;
  aspect-ratio: 0.7;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.db-card-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.db-card-emoji {
  font-size: 2.5rem;
}
.db-card-type-dot {
  position: absolute;
  top: 5px; left: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.db-card-rarity {
  position: absolute;
  top: 5px; right: 5px;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.db-card-name {
  padding: .5rem .55rem;
  font-size: .76rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--text2);
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.db-card.is-hidden { display: none; }

/* ── Rarity-Farben ─────────────────────────────────── */
.rarity-common { background: #6a7488; }
.rarity-rare   { background: #4a7fc4; }
.rarity-super  { background: #c4a04a; color: #1a1410; }
.rarity-ultra  { background: linear-gradient(135deg, #c44a4a, #d97843); }
.rarity-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
}

/* ── Hover-Tooltip ─────────────────────────────────── */
.card-tooltip {
  position: fixed;
  z-index: 1000;
  background: var(--bg2);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-size: .82rem;
  color: var(--text);
  pointer-events: none;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(0,200,240,.3);
  max-width: 280px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.card-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card-tooltip.has-image {
  padding: .35rem;
  max-width: 220px;
}
.card-tooltip-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.6);
}
.card-tooltip-text {
  margin-top: .35rem;
  padding: 0 .25rem .15rem;
  font-size: .76rem;
  color: var(--text2);
  line-height: 1.3;
}

.cards-db-reset {
  cursor: pointer;
  background: var(--bg2);
  color: var(--text2);
}
.cards-db-reset:hover { color: var(--text); border-color: var(--cyan); }
.cards-db-count { margin-left: auto; align-self: center; }

/* ── Karten-Detail (card.php) ──────────────────────── */
.card-back-link {
  display: inline-block;
  font-size: .85rem;
  color: var(--cyan);
  margin-bottom: .5rem;
}
.card-back-link:hover { color: var(--text); }

.card-detail {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.card-detail-art {
  position: sticky;
  top: 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  aspect-ratio: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-detail-art img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
}
.card-detail-emoji { font-size: 5rem; }
.card-detail-rarity-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  min-width: 32px;
  height: 26px;
  padding: 0 .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.5);
  transform: skew(-8deg);
}
.card-detail-art { position: relative; }

.card-detail-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

/* DLM-Style Header: Attribut-Badge + Level-Sterne */
.card-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.attr-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #1a1410;
  background: #888;
}
.attr-badge .attr-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.attr-light { background: #f3c93c; }
.attr-dark  { background: #b97df0; color: #1a1410; }
.attr-fire  { background: #ef6a4f; color: #fff; }
.attr-water { background: #4ab8e0; color: #0d2530; }
.attr-earth { background: #c08a5a; color: #2a1c10; }
.attr-wind  { background: #6dd590; color: #0f2a18; }
.attr-divine { background: linear-gradient(135deg, #f5d569, #f29a3a); color: #2a1c10; }

.level-stars {
  font-size: 1.05rem;
  color: #f3c93c;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.level-stars .level-num {
  margin-left: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0;
}

.card-detail-typeline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  margin: .25rem 0 .75rem;
}

.card-detail-stats {
  margin-top: .9rem;
  padding-top: .6rem;
  border-top: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  display: flex;
  gap: 1.5rem;
  color: var(--text);
}
.card-detail-stats strong {
  color: var(--cyan);
  font-weight: 700;
  margin-right: .15rem;
}

.card-detail-section {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  margin: 1.4rem 0 .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
}
.card-detail-desc {
  color: var(--text2);
  font-size: .92rem;
  line-height: 1.55;
  margin-top: .25rem;
}
.card-detail-obtain {
  font-size: .88rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .card-detail { grid-template-columns: 1fr; gap: 1rem; }
  .card-detail-art { position: static; aspect-ratio: auto; min-height: 240px; max-width: 220px; margin: 0 auto; }
}

/* ── Charakter-Galerie (pages/characters.php) ───────────────────────── */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
.char-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.char-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.char-card-art {
  aspect-ratio: 1 / 1;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.char-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.char-card-placeholder {
  font-size: 3rem;
  opacity: .45;
}
.char-card-body {
  padding: .8rem .9rem 1rem;
}
.char-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 .4rem;
}
.char-card-desc {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

/* ── Karten-Detail: Sterne / Rang / Link (Gruppe A) ─────────────────── */
.level-stars {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  letter-spacing: 1px;
}
.level-stars .level-num {
  margin-left: .5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: .15rem .6rem;
  letter-spacing: .3px;
  text-shadow: none;
}
.level-stars.is-rank { color: #ff9d3c; }

.link-block {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  grid-template-rows: repeat(3, 14px);
  gap: 2px;
}
.link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--text3);
  background: var(--surface);
  border-radius: 2px;
}
.link-arrow.is-active {
  color: #0b0e16;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
}
.link-center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  color: var(--cyan);
  background: var(--surface2);
  border-radius: 2px;
}
.link-rating-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--cyan);
}

/* ── Karten-Detail: Feld-Raster (DLM-Stil) ──────────────────────────── */
.card-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .6rem;
  margin-bottom: 1.4rem;
}
.card-field {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: .55rem .8rem;
}
.card-field-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text3);
  margin-bottom: .25rem;
}
.card-field-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 1.5rem;
  flex-wrap: wrap;
}

/* ── Deck Builder: Skill-Picker (Gruppe B) ──────────────────────────── */
.skill-picker { position: relative; }
.skill-picker-panel {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: calc(100% + 4px);
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.7);
  padding: .3rem;
}
.skill-opt-group {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cyan);
  padding: .4rem .5rem .2rem;
}
.skill-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: .85rem;
  padding: .35rem .6rem;
  border-radius: 4px;
  cursor: pointer;
}
.skill-opt:hover { background: var(--surface); color: var(--cyan); }
.skill-opt-none { color: var(--text2); font-style: italic; }
.skill-opt.is-hidden, .skill-opt-group.is-hidden { display: none; }

/* ── Deck Builder: Bild-Kacheln + Deck speichern ────────────────────── */
.deck-card-mini {
  width: 46px;
  height: auto;
  aspect-ratio: .686;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
  font-size: 1.5rem;
}
.deck-card-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-save { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.deck-save-row { display: flex; gap: .4rem; align-items: center; }
.deck-save-row .search-input,
.deck-save-row .filter-select { flex: 1; min-width: 0; }
.deck-save-row .btn { white-space: nowrap; }

/* ── Tier-List-Politur (C1): Chip-Bild, NEU-Badge, Admin-Karten-Suche ─ */
.deck-icon--img { display: flex; align-items: center; }
.deck-icon--img img {
  height: 38px;
  width: auto;
  border-radius: 3px;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.delta-new { background: var(--cyan-glow); color: var(--cyan); }

.adm-cardpick { position: relative; }
.adm-cardpick-preview { display: flex; align-items: center; gap: .5rem; }
.adm-cardpick-preview:not(:empty) { min-height: 44px; margin-bottom: .4rem; }
.adm-cardpick-preview img { height: 40px; width: auto; border-radius: 3px; }
.adm-cardpick-results { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.adm-cardpick-opt {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: .25rem .5rem;
  cursor: pointer;
  color: var(--text);
  font-size: .78rem;
}
.adm-cardpick-opt:hover { border-color: var(--cyan); }
.adm-cardpick-opt img { height: 30px; width: auto; border-radius: 2px; }

/* ── Deck-Breakdown (C2): öffentliche Seite + Admin-Multi-Picker ─────── */
/* Tier-Chip ist jetzt <a>: Link-Defaults neutralisieren */
a.deck-chip { text-decoration: none; color: inherit; }

.deck-breakdown { margin-top: 1.25rem; }
.bd-heading {
  font-size: .95rem;
  margin: 1.5rem 0 .65rem;
  color: var(--cyan);
  letter-spacing: .02em;
}
.bd-heading:first-child { margin-top: 0; }
.bd-cards { display: flex; flex-wrap: wrap; gap: .75rem; }
.bd-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: .35rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bd-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -8px rgba(0,200,240,.45);
}
.bd-card img { height: 150px; width: auto; border-radius: 4px; display: block; }
.bd-card-name { display: inline-block; padding: .4rem .6rem; font-size: .8rem; font-weight: 600; }
.bd-skill { margin: 1rem 0 .25rem; font-size: .9rem; }
.bd-skill-label { color: var(--text2); font-weight: 700; }
.bd-strategy {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  line-height: 1.6;
  font-size: .9rem;
}

/* Admin: gewählte Schlüsselkarten als entfernbare Chips */
.bd-chosen { display: flex; flex-wrap: wrap; gap: .4rem; }
.bd-chosen:not(:empty) { margin-bottom: .5rem; }
.bd-chosen-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: .2rem .4rem .2rem .2rem;
  font-size: .76rem;
}
.bd-chosen-item img { height: 34px; width: auto; border-radius: 3px; }
.bd-chosen-x {
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 .15rem;
}
.bd-chosen-x:hover { color: #fff; }

/* ── Deck-Breakdown Decklisten-Import (C2b) ──────────────────────────── */
/* Öffentlich: gruppierte Deckliste */
.bd-deck-section { margin-top: 1.25rem; }
.bd-deck-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.bd-deck-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  padding: .25rem;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.bd-deck-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -8px rgba(0,200,240,.45);
}
.bd-deck-card img { height: 92px; width: auto; border-radius: 3px; display: block; }
.bd-deck-noimg { display: inline-block; padding: .35rem .5rem; font-size: .72rem; font-weight: 600; max-width: 92px; }
.bd-count {
  position: absolute;
  right: .15rem;
  bottom: .15rem;
  background: rgba(5,8,15,.85);
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  padding: 0 .3rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
}

/* Admin: Import-Zeilen + Vorschau */
.bd-import-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .4rem; }
.bd-import-row select,
.bd-import-row input[type="text"] { flex: 1; min-width: 160px; }
.bd-deck-preview:not(:empty) {
  margin: .5rem 0;
  padding: .5rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
}
.bd-deck-prev-head { font-size: .78rem; color: var(--text2); margin-bottom: .4rem; font-weight: 700; }
.bd-deck-prev-grid { display: flex; flex-wrap: wrap; gap: .3rem; }
.bd-deck-thumb { position: relative; display: inline-flex; }
.bd-deck-thumb img { height: 46px; width: auto; border-radius: 3px; display: block; }
.bd-deck-thumb .bd-deck-noimg { font-size: .6rem; max-width: 60px; background: var(--bg3); border-radius: 3px; }
.bd-deck-thumb b {
  position: absolute; right: 0; bottom: 0;
  background: rgba(5,8,15,.85); color: var(--cyan);
  font-size: .62rem; padding: 0 .2rem; border-radius: 3px;
}

/* ── Top-Decks: verlinkte Zeile (C3) ──────────────────────────────────── */
/* <a>-Wrapper visuell identisch zur <div>-Zeile; signalisiert Hover-Interaktivität */
a.top-deck-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-bottom-color .15s, color .15s;
}
a.top-deck-row:hover { border-bottom-color: var(--cyan); }
a.top-deck-row:hover .top-deck-name { color: var(--cyan); }

/* ── Top-Decks-Seite (C3b): Inline-Tier-Badge im Chip ────────────────── */
.td-tier {
  font-family: 'Rajdhani', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: .15rem;
  letter-spacing: .02em;
  line-height: 1.4;
}

/* ── Top-Decks Refactor (C3c): Erstell-Boxen ───────────────────────── */
.td-box { margin-bottom: 1rem; }

.td-box .adm-card-head h2 { color: var(--cyan); }

/* Nicht-DL-Badge auf der öffentlichen Karten-Seite (nur in der „Alle Karten"-Ansicht sichtbar).
   Unten links, damit es nicht mit dem Typ-Punkt (oben links) oder der Rarität (oben rechts) kollidiert. */
.db-card-notpool {
  position: absolute;
  left: .35rem;
  bottom: .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .12rem .34rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, .62);
  color: var(--text2);
  border: 1px solid var(--border);
  pointer-events: none;
}

/* Charakter-Detailseite + klickbare Galerie-Karten */
a.char-card { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.char-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -16px rgba(0,200,240,.6); }

.char-detail-hero {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.char-detail-art {
  flex: 0 0 200px;
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  display: flex; align-items: center; justify-content: center;
}
.char-detail-art img { width: 100%; height: auto; display: block; }
.char-detail-desc { flex: 1 1 280px; color: var(--text2); line-height: 1.55; }
.char-decks-title { margin: 1rem 0 .75rem; font-size: 1.15rem; }
.char-deck-block { margin-bottom: 1.75rem; }
.char-deck-name { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--cyan); }