body {
  background-image: url('../../../../../seiten/games/mtg/mtg_background2.png');
  background-size: contain; /* Bild vollständig anzeigen, ohne zu beschneiden */
  background-position: center; /* Zentriert das Hintergrundbild */
  background-repeat: no-repeat; /* Kein Wiederholen des Bildes */
  background-attachment: fixed; /* Bild bleibt beim Scrollen stehen */
  height: 100vh; /* Volle Bildschirmhöhe */
}

/* Hauptbutton im Magic-Stil */
.btn-magic {
  background: linear-gradient(145deg, #1f1f1f, #2c2c2c); /* Eleganter Dunkelverlauf */
  color: #d4af37; /* Goldene Schrift */
  border: 2px solid #d4af37; /* Goldener Rand */
  font-size: 20px;
  padding: 14px 28px;
  border-radius: 12px;
  text-shadow: 0 0 4px #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease; /* Sanfte Übergänge */
  font-family: 'Cinzel', serif; /* Magischer Font */
}

.btn-magic:hover {
  background: #1a1a1a; /* Etwas dunkler bei Hover */
  box-shadow: 0 0 20px #d4af37, 0 0 40px #d4af37; /* Mehr Glanz */
  color: #fff; /* Weiß bei Hover */
  text-shadow: 0 0 6px #d4af37;
  cursor: pointer;
}

/* Versteckt Elemente, die nicht sichtbar sein sollen */
.hidden {
  display: none !important;
}

/* === Overlay === */
.overlay {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 40px 20px;
  color: white;
}

.overlay-button {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #f8e9c5;
  background: linear-gradient(145deg, #2d1b08, #402a12);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 14px 28px;
  margin: 12px 0;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  text-shadow: 1px 1px 2px #000;
  transition: all 0.3s ease;
}

.overlay-button:hover {
  background: #1f1207;
  box-shadow: 0 0 25px #d4af37, 0 0 40px #d4af37;
  color: #fff;
}

.overlay-box {
  background: rgba(25, 18, 10, 0.85);
  border: 3px solid #d4af37;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  max-width: 90%;
  text-align: center;
}

.magic-heading {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  color: #f8e9c5;
  margin-bottom: 24px;
  text-shadow: 1px 1px 3px #000;
}

/* Ansicht für Handy im Overlay */
.handy-view {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}




/* Optionaler Zustand zum Einblenden */
.overlay.show {
  left: 0;
}

/* Inhalt innerhalb des Overlays */
.overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
      /* background-size: contain;
  background-repeat: no-repeat;
  background-position: center center; */

}

.overlay-content > h2 {
    margin-bottom: 2rem;
}

/* === Modus- & Farbauswahl === */
#colorOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.color-btn {
  width: 120px;
  height: 50px;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Farben */
.color-btn[data-color="white"]    { background-color: #f5f5f5; color: #222; }
.color-btn[data-color="blue"]     { background-color: #1d70be; }
.color-btn[data-color="black"]    { background-color: #222; }
.color-btn[data-color="red"]      { background-color: #dc3545; }
.color-btn[data-color="green"]    { background-color: #28a745; }
.color-btn[data-color="colorless"]{ background-color: #bbbbbb; color: #111; }
.color-btn[data-color="artifact"] {
  background: linear-gradient(135deg, #7d8a96, #c0d0dd);
  color: #000;
  font-style: italic;
}

/* Auswahlmarkierung */
.color-btn.selected {
  animation: pulseGlow 0.5s infinite alternate;
}

@keyframes pulseGlow {
  0%   { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1.08); opacity: 0.85; }
}

.color-btn.selected[data-color="blue"] {
  box-shadow: 0 0 10px #00f, inset 0 0 6px #66f;
}

.color-btn.selected[data-color="black"] {
  box-shadow: 0 0 10px #333, inset 0 0 6px #000;
}

.color-btn.selected[data-color="white"] {
  box-shadow: 0 0 10px #ddd, inset 0 0 6px #fff;
}

.color-btn.selected[data-color="red"] {
  box-shadow: 0 0 10px #f00, inset 0 0 6px #f66;
}

.color-btn.selected[data-color="green"] {
  box-shadow: 0 0 10px #0f0, inset 0 0 6px #6f6;
}

.color-btn.selected[data-color="artifact"] {
  box-shadow: 0 0 10px #ccc, inset 0 0 6px #999;
}

.color-btn.selected[data-color="colorless"] {
  box-shadow: 0 0 10px #aaa, inset 0 0 6px #888;
}


/* === Buttons: Start + Zurück === */
#startGameBtn {
  background: linear-gradient(145deg, #1f1f1f, #2c2c2c);
  color: #d4af37;
  border: 2px solid #d4af37;
  text-shadow: 0 0 4px #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  font-family: 'Cinzel', serif;
}

#startGameBtn:hover {
  background: #1a1a1a;
  box-shadow: 0 0 20px #d4af37, 0 0 40px #d4af37;
  color: #fff;
  text-shadow: 0 0 6px #d4af37;
}

#backBtn {
  background: #444;
  color: white;
  border: 2px solid #aaa;
}

#backBtn:hover {
  background: #a03535;
  color: #fff;
}


.game-button {
  width: 240px;
  height: 50px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  margin: 2rem auto 0 auto;
  padding: 14px 28px;
  transition: all 0.3s ease;
  text-align: center;
  background: linear-gradient(145deg, #2c2929, #a56e6e);
  color: gold;
}



/* === Lebenspunkte-Kreis – Handyansicht === */

#handyseite {
  position: relative;
  min-height: 100vh;
  z-index: 0;
  /* background: url('../../../../../seiten/games/mtg/background_lp2.png') center/cover no-repeat; */
  /* background: url('../../../../../seiten/games/mtg/background_lp2.png') center/cover no-repeat; */
}

#handyseite::before {
  content: '';
  position: absolute;
  inset: 0;
   /* Leichter Schleier */
  /* background-color: rgba(255, 255, 255, 0.2); */
  z-index: 0;
}

/* Container für den SVG-Kreis + Buttons */
.life-container {
  position: relative;
  width: 260px;
  height: 260px;
}

/* Lebenspunkte-Kreis selbst (SVG), beginnt bei 12 Uhr */
.life-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  stroke: currentColor;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  paint-order: stroke fill
}

/* Tap-Animation bei Klick */
@keyframes pulse-tap {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#life-circle.animate-tap {
  animation: pulse-tap 0.3s ease;
}


/* === SVG-Kreise für Lebenspunkte-Anzeige === */

/* Hintergrundkreis (fixe Basis) */
circle.bg {
  fill: none;
  stroke: #ddd;
  stroke-width: 20;
}

/* Haupt-Kreis für 0–20 Lebenspunkte */
circle.fg {
  fill: none;
  stroke: steelblue;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

/* Erweiterte Ringe ab 21+ Lebenspunkten */
circle.extra1,
circle.extra2,
circle.extra3,
circle.extra4 {
  fill: none;
  stroke-width: 10;
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

circle.extra1 { stroke: #f39c12; }   /* Orange */
circle.extra2 { stroke: crimson; }   /* Dunkelrot */
circle.extra3 { stroke: limegreen; } /* Grün */
circle.extra4 { stroke: gold; }      /* Goldgelb */


/* === Inhalt im Lebenspunkte-Kreis === */

.life-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Anzeige der Lebenspunkte */
.life-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  z-index: 2;
  pointer-events: none;
}

/* Plus-/Minus-Buttons */
.life-button {
  position: absolute;
  font-size: 42px;
  font-weight: bold;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  line-height: 1;
  user-select: none;
}

.life-button:active {
  transform: scale(1.1);
  color: #000;
}

/* Optional: Hover-Effekt deaktiviert, bei Bedarf aktivieren */
/*
.life-button:hover {
  background-color: #4682b4;
}
*/


/* === Positionierung der Plus-/Minus-Schaltflächen im Kreis === */
.life-button.plus {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.life-button.minus {
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* === Hamburger-Menü (oben rechts) === */

.menu-wrapper {
  position: absolute;
  top: clamp(25px, 6vh, 60px);
  right: 10px;
  z-index: 10;
}

.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  min-width: 200px;
  max-height: 70vh; /* Begrenzung auf 70% der Bildschirmhöhe */
  overflow-y: auto; /* Scrollbar aktivieren */
}

.dropdown-item {
  padding: 10px 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.dropdown::-webkit-scrollbar {
  width: 6px;
}

.dropdown::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 3px;
}


.restart-btn {
  padding-top: 25px;
  font-weight: bold;
  color: crimson;
}


/* === Allgemeine Hilfsklasse === */

.hidden {
  display: none !important;
}


/* === Regel-Erklärungsbox (unten zentriert) === */

.rule-info {
  font-family: 'Cinzel', serif;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  background-color: #fff; /* kannst du per JS hell einfärben */
  color: #000;
  padding: 1rem 2.5rem 1rem 1rem; /* rechts Platz für das ❌ */
  border-top: 2px solid #ccc;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.rule-info.hidden {
  display: none;
}

.rule-close {
  position: absolute;
  top: 0.1rem;
  right: 0.75rem;
  font-size: 1.25rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  z-index: 10000;
}


/* === Beschwörernamen-Anzeige === */
.summoner-name {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #d4af37;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 5;
}

/* === Zufallsname-Button === */
.reroll-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 8px;
  color: #666;
}

.reroll-btn:hover {
  color: #000;
}


/* === Todes-Overlay === */
.curse-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.curse-box {
  background: #111;
  color: #eee;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 30px red;
  font-size: 18px;
  max-width: 90%;
}

.curse-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.curse-name {
  background: #222;
  color: crimson;
  border: 2px solid crimson;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.curse-name:hover {
  background: crimson;
  color: #fff;
}


/* === Zurück-Button (Stil wie Magic) === */
.btn-mtg-back {
  width: 200px;
  height: 50px;
  display: block;
  margin: 10px auto 0 auto;
  padding: 8px 28px;
  font-size: 18px;
  font-family: 'Cinzel', serif;
  background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
  color: #d4af37;
  border: 2px solid #d4af37;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 0 0 2px #000;
}

.btn-mtg-back:hover {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 0 20px #d4af37, 0 0 40px #d4af37;
}


/* === Vertikale Lebenspunkte-Historie === */
.life-history.vertical-history {
  position: absolute;
  top: 50px; /* Abstand vom oberen Rand */
  left: 10px;
  width: auto;
  max-height: 20vh; /* Höhe auf die Hälfte reduziert (z. B. 50% der Viewport-Höhe) */
  font-size: 0.7rem; /* 1/3 kleiner als vorher (vorher: 0.85rem) */
  line-height: 1.3;
  padding: 4px 6px;

  background-color: rgba(0, 0, 0, 0.65);
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: 'Merriweather', serif;
  z-index: 50;
  overflow-y: auto;
  border: 1px solid rgba(100, 100, 150, 0.3);
  backdrop-filter: blur(3px);
}


.log-entry {
  display: flex;
  justify-content: flex-start;
  gap: 6px; /* oder z. B. 0.5rem */
}

.log-heal {
  color: #55ff99;
  font-weight: bold;
}

.log-damage {
  color: #ff5555;
  font-weight: bold;
}

.log-time {
  font-size: 11px;
  color: #aaa;
}


/* === Lebenspunkte-Regler (Schaden/Heilung) === */
.damage-slider-container {
  position: relative;
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #d4af37;
  border-radius: 16px;
  width: 90%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: white;
  font-family: 'Cinzel', serif;
}

/* Slider größer */
#life-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #b00, #500);
  outline: none;
}


#damage-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: gold;
  border: 2px solid #333;
  cursor: pointer;
  margin-top: -7px;
}

#damage-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: gold;
  border: 2px solid #333;
  cursor: pointer;
}

.slider-bubble {
  position: absolute;
  top: -100px; /* weiter nach oben */
  left: 50%;
  transform: translateX(-50%);
  background: #d4af37;
  color: #111;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  font-family: 'Cinzel', serif;
  transition: all 0.2s ease;
}

.hidden {
  display: none;
}

/* Alte Anzeige */
.slider-value-display {
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
}

/* === Sound-Mute-Button === */
.mute-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-right: 10px;
  cursor: pointer;
}


.eliminated-banner {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ff4d4d;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  z-index: 50;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
}

.eliminated-banner.hidden {
  display: none;
}
