/* =============================================================
   ui-polish.css – High-End UI-Finish (v2 — sichtbar)
   WHY: v1 war zu zurückhaltend und wurde vom inline <style>-Block
   in index.html überschrieben. v2: stärkere Effekte + wichtige
   Regeln mit !important damit der Look tatsächlich durchkommt.
   Performance-Garantie: nur transform + opacity in Animations.
   ============================================================= */

:root {
  --glow-a:    rgba(0, 230, 118, 0.55);
  --glow-a2:   rgba(64, 196, 255, 0.45);
  --glow-soft: rgba(255, 255, 255, 0.10);
  --ring-a:    rgba(0, 230, 118, 0.5);

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast:    180ms;
  --dur-base:    280ms;
  --dur-slow:    520ms;
}

/* ============================================================
   PAGE-LOAD ENTRANCE
   ============================================================ */
@keyframes tmPageIn {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.tm-booted .pw {
  animation: tmPageIn var(--dur-slow) var(--ease-out) both;
}

/* ============================================================
   BACKGROUND AURORA — DEUTLICH sichtbar (nicht nur 6% alpha)
   ============================================================ */
@keyframes tmAurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  33%      { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
  66%      { transform: translate3d(2%, -2%, 0) scale(1.04); opacity: .85; }
}

body::after {
  content: '';
  position: fixed; inset: -15%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(0,230,118,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 82% 78%, rgba(64,196,255,0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(179,136,255,0.06) 0%, transparent 60%);
  animation: tmAurora 18s ease-in-out infinite;
  will-change: transform, opacity;
  filter: blur(40px);
}

/* ============================================================
   GLASS PANELS — deutlich sichtbarer Glasmorphismus
   WICHTIG: Inline-background in index.html überschreiben!
   ============================================================ */
.sc,
.mbox,
#betslip-panel,
#model-panel {
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  background:
    linear-gradient(
      160deg,
      rgba(22, 29, 38, 0.72) 0%,
      rgba(15, 20, 25, 0.58) 100%
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative;
  box-shadow:
    0 8px 32px -12px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
  overflow: hidden;
}

/* Lichtreflex am oberen Rand */
.sc::before,
.mbox::before,
#betslip-panel::before,
#model-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 230, 118, 0.4) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(64, 196, 255, 0.4) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Navbar Glass mit starker Blur */
.nb {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  background:
    linear-gradient(180deg,
      rgba(8, 12, 16, 0.78) 0%,
      rgba(8, 12, 16, 0.62) 100%
    ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Modal: noch stärker (Fokus-Element) */
.mbox {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow:
    0 32px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ============================================================
   MATCH-CARD — deutlicherer Hover-Lift + Glow
   ============================================================ */
.match-card,
.mc {
  transition:
    transform    var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out) !important;
  will-change: transform;
}

.match-card:hover,
.mc:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    0 16px 48px -12px rgba(0, 0, 0, 0.85),
    0 8px 24px -6px rgba(0, 230, 118, 0.35),
    0 0 0 1px rgba(0, 230, 118, 0.35) !important;
  border-color: rgba(0, 230, 118, 0.5) !important;
}

.match-card--featured,
.mc.ft {
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.25),
    0 8px 32px -12px rgba(0, 230, 118, 0.35),
    inset 0 1px 0 rgba(0, 230, 118, 0.1) !important;
}

/* ============================================================
   TACTILE BUTTONS — sichtbare Press + Glow
   ============================================================ */
button,
.bkey,
.bp,
.bs,
.tb,
.fp,
.db_,
.filter-arr,
.mk-day-btn {
  transition:
    transform        var(--dur-fast) var(--ease-spring),
    background       var(--dur-base) var(--ease-out),
    border-color     var(--dur-base) var(--ease-out),
    box-shadow       var(--dur-base) var(--ease-out),
    color            var(--dur-base) var(--ease-out) !important;
  will-change: transform;
}

button:hover:not(:disabled):not(.mc):not(.match-card),
.bkey:hover,
.bp:hover,
.fp:hover,
.db_:hover,
.filter-arr:hover,
.tb:hover,
.mk-day-btn:hover {
  transform: translateY(-2px) !important;
}

button:active:not(:disabled):not(.mc):not(.match-card),
.bkey:active,
.bp:active,
.bs:active,
.fp:active,
.db_:active,
.tb:active,
.mk-day-btn:active {
  transform: translateY(0) scale(0.95) !important;
}

/* Primary-Button STARKER Glow */
.bp {
  box-shadow:
    0 4px 20px -4px var(--glow-a),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  position: relative;
}
.bp:hover {
  box-shadow:
    0 8px 32px -6px var(--glow-a),
    0 0 0 2px rgba(0, 230, 118, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

/* Filter-Pill aktiv: starker Ring-Glow */
.fp.on {
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.6),
    0 4px 20px -4px rgba(0, 230, 118, 0.45),
    inset 0 1px 0 rgba(0, 230, 118, 0.2) !important;
}

/* Tab aktiv: Underglow */
.tb.on {
  box-shadow:
    0 4px 16px -6px rgba(0, 230, 118, 0.4),
    inset 0 -2px 0 rgba(0, 230, 118, 0.6) !important;
}

/* API-Key-Button im OK-State */
.bkey.ok {
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.5),
    0 4px 16px -4px var(--glow-a),
    inset 0 1px 0 rgba(0, 230, 118, 0.15) !important;
}

/* ============================================================
   RIPPLE EFFECT
   ============================================================ */
[data-ripple] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
[data-ripple] .tm-ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: tmRipple 650ms var(--ease-out) forwards;
  z-index: 0;
}
@keyframes tmRipple {
  to { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.tm-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity   var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: transform, opacity;
}
.tm-reveal.tm-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TAB-TRANSITION
   ============================================================ */
.ml,
#smart-kombi-content,
#manual-kombi-tab-content {
  animation: tmTabIn var(--dur-base) var(--ease-out) both;
}
@keyframes tmTabIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOCUS-RING
   ============================================================ */
button:focus-visible,
input:focus-visible,
[data-action]:focus-visible,
[data-fixture-id]:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px var(--bg, #080c10),
    0 0 0 4px var(--ring-a) !important;
  border-radius: 6px;
}

/* ============================================================
   INTRO / WELCOME OVERLAY
   ============================================================ */
.tm-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: tmIntroIn .6s var(--ease-out) both;
}
.tm-intro.tm-intro--hiding {
  animation: tmIntroOut .5s var(--ease-out) both;
}
@keyframes tmIntroIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes tmIntroOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.98); }
}

.tm-intro__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(0,230,118,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(64,196,255,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(179,136,255,.08) 0%, transparent 60%),
    linear-gradient(180deg, #060a0e 0%, #0b1116 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: tmAurora 16s ease-in-out infinite;
}

.tm-intro__card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  padding: 0 0 32px;          /* oben 0 weil Hero-Image bündig oben sitzt */
  overflow: hidden;
  background:
    linear-gradient(160deg,
      rgba(22, 29, 38, 0.88) 0%,
      rgba(15, 20, 25, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 32px 80px -16px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: tmIntroCardIn .7s var(--ease-spring) both;
  text-align: center;
}
@keyframes tmIntroCardIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lichtreflex oben */
.tm-intro__card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 230, 118, 0.6),
    rgba(255, 255, 255, 0.8),
    rgba(64, 196, 255, 0.6),
    transparent);
}

/* Hero-Image oben in der Card (mit integrierten Features) */
.tm-intro__hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(0,230,118,.15) 0%, rgba(8,12,16,.95) 70%),
    #0a1015;
  border-radius: 20px 20px 0 0;
  margin-bottom: 22px;
}
.tm-intro__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 70%;          /* Bild endet bei 70% — darunter die Features */
  object-fit: cover;
  object-position: center 30%;
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,.4) 95%,
    transparent 100%);
          mask-image: linear-gradient(180deg,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,.4) 95%,
    transparent 100%);
  animation: tmHeroFloat 14s ease-in-out infinite;
  transform-origin: center 40%;
  will-change: transform, filter;
}

/* Features als 3-Spalten-Overlay unten im Hero */
.tm-intro__hero-features {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(8, 12, 16, 0.75) 40%,
      rgba(8, 12, 16, 0.95) 100%);
  z-index: 3;
}
.tm-intro__hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 10px;
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out);
  cursor: default;
}
.tm-intro__hero-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 118, 0.5);
}
.tm-intro__hero-feature-icon {
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.4));
}
.tm-intro__hero-feature-title {
  font-size: .68rem;
  font-weight: 700;
  color: var(--t1);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--fm);
  white-space: nowrap;
}

/* Alter Features-Block komplett aus dem Layout — nur für Rückwärtskompatibilität */
.tm-intro__features { display: none; }

/* Hero-Float: sanfte Atem-Bewegung + leichtes Schweben + Glow-Puls */
@keyframes tmHeroFloat {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
    filter: brightness(1) contrast(1) saturate(1) drop-shadow(0 0 0 rgba(0,230,118,0));
  }
  25% {
    transform: scale(1.035) translateY(-4px) rotate(-.25deg);
    filter: brightness(1.08) contrast(1.04) saturate(1.1) drop-shadow(0 0 18px rgba(64,196,255,.25));
  }
  50% {
    transform: scale(1.06) translateY(-6px) rotate(0deg);
    filter: brightness(1.12) contrast(1.06) saturate(1.15) drop-shadow(0 0 26px rgba(0,230,118,.35));
  }
  75% {
    transform: scale(1.035) translateY(-4px) rotate(.25deg);
    filter: brightness(1.08) contrast(1.04) saturate(1.1) drop-shadow(0 0 18px rgba(179,136,255,.25));
  }
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
    filter: brightness(1) contrast(1) saturate(1) drop-shadow(0 0 0 rgba(0,230,118,0));
  }
}

/* Dynamischer Schimmer-Overlay über dem Hero */
.tm-intro__hero-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(255,255,255,.14) 50%,
    transparent 65%);
  background-size: 220% 100%;
  animation: tmHeroShine 5s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 2;
}
@keyframes tmHeroShine {
  0%, 100% { background-position: -110% 0; }
  55%      { background-position: 210% 0; }
}

/* Scanline/Data-Stream-Effekt — vertikal abwärts laufender Licht-Balken */
.tm-intro__hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(180deg,
    rgba(0, 230, 118, 0) 0%,
    rgba(0, 230, 118, .55) 40%,
    rgba(64, 196, 255, .7) 60%,
    rgba(0, 230, 118, 0) 100%);
  box-shadow:
    0 0 12px rgba(0, 230, 118, .7),
    0 0 24px rgba(64, 196, 255, .5);
  animation: tmHeroScanline 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes tmHeroScanline {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10%      { opacity: 1; }
  90%      { opacity: 1; }
  50%      { transform: translateY(170px); opacity: .8; }
}

/* Radialer Glow-Puls im Hintergrund des Hero */
.tm-intro__hero {
  animation: tmHeroGlowPulse 6s ease-in-out infinite;
}
@keyframes tmHeroGlowPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 40px rgba(0, 230, 118, 0.08),
      inset 0 0 80px rgba(64, 196, 255, 0.04);
  }
  50% {
    box-shadow:
      inset 0 0 60px rgba(0, 230, 118, 0.18),
      inset 0 0 120px rgba(64, 196, 255, 0.12);
  }
}
/* Innere Abdunkelung unten damit Titel besser lesbar ist */
.tm-intro__hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(15,20,25,.9) 100%);
  pointer-events: none;
}

.tm-intro__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--a);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  margin: 0 auto 18px;
  font-family: var(--fm);
}

.tm-intro__title {
  font-family: var(--fd);
  font-size: 2.4rem;
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--t1);
  margin: 0 36px 10px;
  font-weight: 400;
}
.tm-intro__title-accent {
  background: linear-gradient(90deg, #40c4ff 0%, #00e676 40%, #b388ff 75%, #ffd740 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tmGradientShift 6s linear infinite;
}
@keyframes tmGradientShift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 100% 0%; }
}

.tm-intro__subtitle {
  font-size: .86rem;
  color: #e8f4ff;
  line-height: 1.65;
  margin: 0 36px 26px;
  font-family: var(--fm);
  text-align: center;
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tm-intro__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 36px 22px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tm-intro__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tm-intro__feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.tm-intro__feature-title {
  font-size: .86rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px;
}
.tm-intro__feature-desc {
  font-size: .74rem;
  color: var(--t2);
  line-height: 1.5;
}

/* Loading-Indikator während Pipeline im Hintergrund läuft */
.tm-intro__loading {
  margin: 0 36px 22px;
  padding: 14px 16px;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: 10px;
}
.tm-intro__loading-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.tm-intro__loading-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--a), rgba(64,196,255,.9), transparent);
  border-radius: 2px;
  animation: tmIntroLoading 1.8s ease-in-out infinite;
}
@keyframes tmIntroLoading {
  0%   { left: -35%; }
  100% { left: 100%; }
}
.tm-intro__loading-text {
  font-size: .74rem;
  color: var(--t1);
  font-family: var(--fm);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  transition: opacity .3s ease;
}

.tm-intro__disclaimer {
  font-size: .72rem;
  color: var(--t2);
  line-height: 1.55;
  background: rgba(255, 82, 82, 0.06);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 10px;
  margin: 0 36px 20px;
  overflow: hidden;
}
.tm-intro__disclaimer > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .72rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tm-intro__disclaimer > summary::-webkit-details-marker { display: none; }
.tm-intro__disclaimer > summary::marker { content: ''; }
.tm-intro__disclaimer-label {
  color: var(--lose);
  font-weight: 700;
  letter-spacing: .02em;
}
.tm-intro__disclaimer-chevron {
  color: var(--t2);
  font-size: .85rem;
  transition: transform .25s ease;
  opacity: .7;
}
.tm-intro__disclaimer[open] .tm-intro__disclaimer-chevron {
  transform: rotate(180deg);
}
.tm-intro__disclaimer-body {
  padding: 2px 12px 10px;
  animation: tmDisclaimerFade .25s ease;
  text-align: center;
}
@keyframes tmDisclaimerFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tm-intro__disclaimer a {
  color: var(--a2);
  text-decoration: underline;
}

.tm-intro__btn {
  display: block;
  width: calc(100% - 72px);
  margin: 0 36px;
  padding: 16px 24px;
  font-family: var(--fb);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #000;
  background: linear-gradient(135deg, #00e676 0%, #40c4ff 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 28px -6px rgba(0, 230, 118, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform .2s var(--ease-spring),
    box-shadow .25s var(--ease-out);
}
.tm-intro__btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px -6px rgba(0, 230, 118, 0.7),
    0 0 0 2px rgba(0, 230, 118, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.tm-intro__btn:active {
  transform: translateY(0) scale(.98);
}

.tm-intro__signature {
  text-align: center;
  font-size: .66rem;
  color: var(--t3);
  margin: 18px 36px 0;
  font-family: var(--fm);
  letter-spacing: .08em;
}
.tm-intro__signature-name {
  background: linear-gradient(90deg, #40c4ff, #00e676, #ffd740);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 540px) {
  .tm-intro__card { padding: 0 0 22px; border-radius: 16px; }
  .tm-intro__hero { height: 230px; border-radius: 16px 16px 0 0; }
  .tm-intro__hero-features { padding: 10px 12px 12px; gap: 6px; }
  .tm-intro__hero-feature { padding: 8px 4px; }
  .tm-intro__hero-feature-icon { font-size: 1.15rem; }
  .tm-intro__hero-feature-title { font-size: .58rem; letter-spacing: .02em; }
  .tm-intro__badge,
  .tm-intro__title,
  .tm-intro__subtitle,
  .tm-intro__loading,
  .tm-intro__disclaimer,
  .tm-intro__signature { margin-left: 22px; margin-right: 22px; }
  .tm-intro__btn { margin: 0 22px; width: calc(100% - 44px); padding: 14px 20px; font-size: .88rem; }
  .tm-intro__title { font-size: 1.85rem; }
  .tm-intro__subtitle { font-size: .75rem; }
}

/* ============================================================
   INTRO LAUNCH-ANIMATION (v2 — performance-optimiert)
   Regeln:
   - Nur transform + opacity (kein filter, keine box-shadow-anim)
   - backdrop-filter wird während der Animation DEAKTIVIERT
   - Max 4 DOM-Elemente gleichzeitig (statt 30+)
   - Dauer: 900ms (statt 1400ms) — kurzer Wow-Effekt
   ============================================================ */

.tm-intro.tm-intro--launching {
  will-change: opacity, transform;
}
/* Während Launch: backdrop-filter OFF (extrem teuer) */
.tm-intro.tm-intro--launching .tm-intro__bg,
.tm-intro.tm-intro--launching .tm-intro__card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.tm-intro.tm-intro--launching .tm-intro__card {
  animation: tmCardLaunch .9s cubic-bezier(.6, 0, .2, 1) forwards;
  will-change: transform, opacity;
}
.tm-intro.tm-intro--launching .tm-intro__bg {
  animation: tmBgLaunch .9s ease-out forwards;
  will-change: opacity;
}
.tm-intro.tm-intro--launching .tm-intro__btn {
  animation: tmBtnLaunch .4s cubic-bezier(.6, 0, .3, 1) forwards;
  pointer-events: none;
  will-change: transform;
}

@keyframes tmCardLaunch {
  0%   { transform: translate3d(0, 0, 0) scale(1);     opacity: 1; }
  25%  { transform: translate3d(0, 0, 0) scale(1.03);  opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1.25);  opacity: 0; }
}
@keyframes tmBgLaunch {
  0%   { opacity: 1; }
  60%  { opacity: .6; }
  100% { opacity: 0; }
}
@keyframes tmBtnLaunch {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(0); }
}

/* ── Shockwaves: 2 Ringe via scale-transform (kein box-shadow-anim) ── */
.tm-shockwave {
  position: fixed;
  top: 50%; left: 50%;
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, .85);
  transform: translate3d(0, 0, 0) scale(0);
  pointer-events: none;
  z-index: 99998;
  animation: tmShockwave .8s cubic-bezier(.22, 1, .36, 1) forwards;
  will-change: transform, opacity;
}
.tm-shockwave--cyan {
  border-color: rgba(64, 196, 255, .8);
  animation-delay: .1s;
}
@keyframes tmShockwave {
  0%   { transform: translate3d(0, 0, 0) scale(0); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(25); opacity: 0; }
}

/* ── Radial-Flash: ein einziges Element statt 30 Warp-Lines ── */
.tm-launch-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, .95) 0%,
    rgba(0, 230, 118, .35) 15%,
    transparent 45%);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: tmLaunchFlash .55s ease-out forwards;
  animation-delay: .25s;
  will-change: opacity;
}
@keyframes tmLaunchFlash {
  0%   { opacity: 0; }
  35%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   LOGO — zusätzlicher subtiler Glow-Hover
   ============================================================ */
.logo {
  filter: drop-shadow(0 0 0 transparent);
  transition: filter var(--dur-base) var(--ease-out), transform .28s var(--ease-spring);
}
.logo:hover {
  filter:
    drop-shadow(0 0 18px rgba(0, 230, 118, 0.5))
    drop-shadow(0 0 32px rgba(64, 196, 255, 0.3));
}

/* ============================================================
   LINK POLISH
   ============================================================ */
a {
  transition: color var(--dur-fast) var(--ease-out),
              text-shadow var(--dur-fast) var(--ease-out);
}
a:hover {
  text-shadow: 0 0 16px var(--glow-a);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after { animation: none; }
  .tm-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE TUNING
   ============================================================ */
@media (max-width: 768px) {
  .sc, #betslip-panel, #model-panel {
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  }
  .match-card:hover, .mc:hover {
    transform: none !important;
  }
  body::after { filter: blur(60px); }
}
