/* ============================================================
   main-vhc.css  —  VHC / Hirsing  —  Zentrale Styles
   Alle Fonts via absoluter URL (https://www.vhc.eu/images-fonts/)
   ============================================================ */

/* ── FONTS ── */
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/orbitron-v35-latin/orbitron-v35-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/orbitron-v35-latin/orbitron-v35-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 900; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/orbitron-v35-latin/orbitron-v35-latin-900.woff2") format("woff2"); }

@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 300; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/exo-2-v26/exo-2-v26-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/exo-2-v26/exo-2-v26-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/exo-2-v26/exo-2-v26-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/exo-2-v26/exo-2-v26-latin-700.woff2") format("woff2"); }

@font-face { font-family: "Abril Fatface"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/abril-fatface-v25-latin/abril-fatface-v25-latin-regular.woff2") format("woff2"); }

@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/libre-baskerville-v24-latin/libre-baskerville-v24-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/libre-baskerville-v24-latin/libre-baskerville-v24-latin-700.woff2") format("woff2"); }

@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/merriweather-v33-latin/merriweather-v33-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/merriweather-v33-latin/merriweather-v33-latin-700.woff2") format("woff2"); }

/* Playfair Display — Achtung: Tippfehler im Ordnernamen ist korrekt (dispplay) */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/playfair-dispplay-v40-latin/playfair-display-v40-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/playfair-dispplay-v40-latin/playfair-display-v40-latin-700.woff2") format("woff2"); }


/* ── CSS VARIABLEN ── */
:root {
  --bg:     #080b14;
  --bg2:    #0d1220;
  --neon1:  #00f5ff;
  --neon2:  #ff006e;
  --neon3:  #7b2fff;
  --neon4:  #00ff88;
  --card:   #0f1829;
  --border: #1a2a4a;
  --text:   #c8d8f0;
  --muted:  #4a6080;
}


/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }


/* ── BODY ── */
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Spielseiten brauchen flex-column für footer-push */
body.game-page {
  display: flex;
  flex-direction: column;
}

/* Animated grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orb */
body::after {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  from { transform: translate(0, 0); }
  to   { transform: translate(-40px, 60px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.4; width: 100px; }
  50%       { opacity: 1;   width: 280px; }
}


/* ── HEADER ── */
header {
  position: relative;
  z-index: 10;
  padding: 30px 50px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

/* Spielseiten: kompakterer Header */
body.game-page header {
  padding: 18px 40px 16px;
  flex-shrink: 0;
}

/* Spielseiten: kleineres Logo */
body.game-page .logo {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 12px rgba(0,245,255,0.4));
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon1), var(--neon3), var(--neon2), transparent);
}

/* Index: logo-wrap + logo + logo-sub */
.logo-wrap {
  position: relative;
  overflow: hidden;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--neon1) 0%, var(--neon3) 50%, var(--neon2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,245,255,0.5));
  text-decoration: none;
}

.logo-sub {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 6px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Spielseiten: header-left + back-link */
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.back-link:hover {
  color: var(--neon1);
  border-color: var(--neon1);
  box-shadow: 0 0 16px rgba(0,245,255,0.3);
}

/* Spielseiten: Game-Titel rechts */
.game-title-header { text-align: right; }
.game-title-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--neon4);
  text-shadow: 0 0 24px rgba(0,255,136,0.6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.game-title-header p {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7a9abf;
  margin-top: 3px;
  font-family: 'Orbitron', monospace;
}

/* Icon im Header-Titel (klein) */
.header-game-icon {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Icon im Overlay (groß) */
.overlay-icon img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(0,255,136,0.5));
}

/* Navigation (Index) */
nav {
  display: flex;
  gap: 6px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon1);
  opacity: 0;
  transition: opacity 0.2s;
}
nav a:hover {
  color: var(--neon1);
  border-color: var(--neon1);
  box-shadow: 0 0 16px rgba(0,245,255,0.3), inset 0 0 16px rgba(0,245,255,0.05);
}


/* ── HERO (Index) ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px 50px;
}

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,245,255,0.4);
  margin-bottom: 14px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--neon1), var(--neon4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-line {
  width: 200px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--neon1), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}


/* ── MAIN ── */
main {
  position: relative;
  z-index: 1;
  padding: 0 50px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Spielseiten: main zentriert, flex */
main.game-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 40px;
  max-width: none;
}


/* ── SECTION TITLE (Index) ── */
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--neon1);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon1), transparent);
}
.section-title::after {
  background: linear-gradient(270deg, var(--neon1), transparent);
}

.category-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon3);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.category-title::before,
.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--neon3), transparent);
}
.category-title::after {
  background: linear-gradient(270deg, var(--neon3), transparent);
}


/* ── GAMES GRID ── */
.games-category { margin-bottom: 40px; }
.games-category:last-child { margin-bottom: 0; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 16px 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

/* Corner accents */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-top: 2px solid var(--neon1);
  border-left: 2px solid var(--neon1);
  opacity: 0;
  transition: opacity 0.25s;
}
.game-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--neon2);
  border-right: 2px solid var(--neon2);
  opacity: 0;
  transition: opacity 0.25s;
}

.game-card:hover {
  border-color: var(--neon1);
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(0,245,255,0.15), 0 12px 40px rgba(0,0,0,0.4);
  background: #111e35;
}
.game-card:hover::before,
.game-card:hover::after { opacity: 1; }

.game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(0,245,255,0.4));
  transition: transform 0.25s;
}
.game-card:hover .game-icon { transform: scale(1.15); }

.game-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.game-card p {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1px;
}



/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon1), var(--neon4));
  opacity: 0;
  transition: opacity 0.25s;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon1);
  box-shadow: 0 8px 28px rgba(0,245,255,0.1);
  background: #111e35;
}
.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,245,255,0.3));
  transition: transform 0.25s;
}
.tool-card:hover .tool-icon { transform: scale(1.1); }

.tool-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tool-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.tool-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(123,47,255,0.2);
  border: 1px solid var(--neon3);
  color: var(--neon3);
  text-transform: uppercase;
}


/* ── SPIELSEITEN: SCORE BAR ── */
.score-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  margin-bottom: 16px;
  gap: 10px;
}

.score-box {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--neon1);
  opacity: 0.5;
}
.score-box label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.score-box span {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon1);
  text-shadow: 0 0 20px rgba(0,245,255,0.5);
}

.lives-box {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lives-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--neon2);
  opacity: 0.5;
}
.lives-box label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hearts-row {
  font-size: 1.15rem;
  display: flex;
  justify-content: center;
  gap: 2px;
  line-height: 1.3;
}
.hearts-bonus {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  line-height: 1.3;
}

/* Score-Box Farbvarianten (Asteroids, Flappy etc.) */
.score-box.best::before  { background: var(--neon4); }
.score-box.lives::before { background: var(--neon2); }
.score-box.level::before { background: var(--neon3); }
.score-box.power::before { background: #ffdd00; }

.score-box.best span  { color: var(--neon4); text-shadow: 0 0 16px rgba(0,255,136,0.4); }
.score-box.lives span { color: var(--neon2); font-size: 1.1rem; letter-spacing: 3px; text-shadow: 0 0 12px rgba(255,0,110,0.4); }
.score-box.level span { color: var(--neon3); text-shadow: 0 0 16px rgba(123,47,255,0.4); }
.score-box.power span { color: #ffdd00; font-size: 0.85rem; letter-spacing: 1px; text-shadow: 0 0 12px rgba(255,221,0,0.4); }


/* ── MOBILE CONTROLS: CTRL-BTN (Asteroids-Variante) ── */
.ctrl-row { display: flex; gap: 8px; align-items: center; }

.ctrl-btn {
  width: 54px; height: 54px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  color: var(--muted);
  touch-action: none;
}
.ctrl-btn.fire {
  width: 80px;
  color: var(--neon4);
  border-color: var(--neon4);
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
}
.ctrl-btn:active, .ctrl-btn.pressed {
  background: rgba(0,245,255,0.12);
  border-color: var(--neon1);
  color: var(--neon1);
  box-shadow: 0 0 12px rgba(0,245,255,0.3);
}
.ctrl-btn.fire:active, .ctrl-btn.fire.pressed {
  background: rgba(0,255,136,0.12);
  border-color: var(--neon4);
  color: var(--neon4);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}

@media (max-width: 600px) { .mobile-controls { display: flex; } }


/* ── SPIELSEITEN: CANVAS WRAP ── */
.canvas-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,245,255,0.08), 0 0 0 1px rgba(0,245,255,0.04);
}

/* Corner accents */
.canvas-wrap::before, .canvas-wrap::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  z-index: 2;
  pointer-events: none;
}
.canvas-wrap::before { top: 0; left: 0; border-top: 2px solid var(--neon1); border-left: 2px solid var(--neon1); }
.canvas-wrap::after  { bottom: 0; right: 0; border-bottom: 2px solid var(--neon2); border-right: 2px solid var(--neon2); }

canvas { display: block; }


/* ── SPIELSEITEN: OVERLAY ── */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8,11,20,0.94);
  gap: 12px;
  text-align: center;
  padding: 28px;
}
.overlay.hidden { display: none; }

.overlay-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(0,255,136,0.5));
}

.overlay h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 40px rgba(0,245,255,0.6);
}

.overlay p {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.7;
  max-width: 300px;
}
.overlay p strong { color: var(--neon1); }

/* Overlay h2 Varianten */
.overlay h2.dead   { color: var(--neon2); text-shadow: 0 0 30px rgba(255,0,110,0.6); }
.overlay h2.paused { color: var(--neon1); }

/* Overlay-Hint (blinkender Hinweistext) */
.overlay-hint {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #7a9abf;
  text-transform: uppercase;
  font-family: 'Exo 2', sans-serif;
  animation: blink 1.5s ease-in-out infinite;
}

/* Overlay p Zusatzklassen */
.overlay p.level-info { color: var(--neon3); font-size: 0.75rem; }
.overlay p.hidden { display: none; }

/* Difficulty */
.diff-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.diff-btns { display: flex; gap: 8px; margin-top: 4px; }
.diff-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.diff-btn:hover { color: var(--neon1); border-color: var(--neon1); box-shadow: 0 0 12px rgba(0,245,255,0.2); }
.diff-btn.active { color: var(--bg); border-color: var(--neon1); background: var(--neon1); box-shadow: 0 0 20px rgba(0,245,255,0.4); }

.btn-start {
  background: transparent;
  color: var(--neon1);
  border: 1px solid var(--neon1);
  border-radius: 4px;
  padding: 14px 40px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.btn-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-start:hover { box-shadow: 0 0 28px rgba(0,245,255,0.45); color: var(--bg); }
.btn-start:hover::before { opacity: 1; }
.btn-start span { position: relative; z-index: 1; }

/* Generischer Action-Button (Mahjong Hint/New etc.) */
.btn-action {
  background: transparent;
  color: #7a9abf;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 18px;
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-action:hover {
  color: var(--neon1);
  border-color: var(--neon1);
  box-shadow: 0 0 14px rgba(0,245,255,0.25);
}
.btn-action.hint-btn:hover {
  color: var(--neon4);
  border-color: var(--neon4);
  box-shadow: 0 0 14px rgba(0,255,136,0.25);
}

/* Start-Game-Button (Setup-Screens: Hangman, Kniffel) */
.btn-start-game {
  background: transparent;
  color: var(--neon1);
  border: 1px solid var(--neon1);
  border-radius: 4px;
  padding: 14px 40px;
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-start-game::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-start-game:hover { box-shadow: 0 0 24px rgba(0,245,255,0.4); color: var(--bg); }
.btn-start-game:hover::before { opacity: 1; }
.btn-start-game span { position: relative; z-index: 1; }


/* ── SPIELSEITEN: CONTROLS HINT ── */
.controls-hint {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.key {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
.key-wide { width: auto; padding: 0 12px; }
.key-hint-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}


/* ── SPIELSEITEN: MOBILE CONTROLS ── */
.mobile-controls {
  display: none;
  margin-top: 20px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dpad-row { display: flex; gap: 8px; align-items: center; }

.dpad-btn {
  width: 58px; height: 58px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  color: var(--muted);
}
.dpad-btn:active {
  background: rgba(0,245,255,0.1);
  border-color: var(--neon1);
  color: var(--neon1);
  box-shadow: 0 0 14px rgba(0,245,255,0.3);
}

.shoot-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,245,255,0.08);
  border: 2px solid var(--neon1);
  color: var(--neon1);
  font-size: 1.6rem;
  box-shadow: 0 0 16px rgba(0,245,255,0.2);
}
.shoot-btn:active { background: rgba(0,245,255,0.25); box-shadow: 0 0 28px rgba(0,245,255,0.5); }

@media (max-width: 500px) { .mobile-controls { display: flex; } .controls-hint { display: none; } }
@media (hover: none) and (pointer: coarse) { .mobile-controls { display: flex; } .controls-hint { display: none; } }


/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 50px;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

footer span.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neon1);
  box-shadow: 0 0 6px var(--neon1);
  animation: blink 2s infinite;
  display: inline-block;
}

.footer-info {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
  text-transform: none;
  line-height: 1.6;
}

/* Spielseiten-Footer (einfacher, kein .footer-main) */
footer.game-footer {
  padding: 16px 40px;
}

/* ── SHARED UI COMPONENTS (used across tools) ── */

/* Info-Button — blauer [i] für Tooltips */
.info-i {
  background: rgba(30,144,255,0.12);
  border: 1.5px solid rgba(30,144,255,0.7);
  border-radius: 50%;
  color: #4db8ff;
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 700;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 8px rgba(30,144,255,0.8);
  flex-shrink: 0;
  line-height: 1;
  pointer-events: none;
}
button .info-i { pointer-events: none; }

/* Language Switcher — DE/EN Flaggen-Buttons */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-shrink: 0;
  padding-top: 4px;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-btn.active {
  border-color: var(--neon1);
  color: var(--neon1);
  box-shadow: 0 0 10px rgba(0,245,255,0.2);
}
.lang-btn:hover:not(.active) {
  border-color: var(--muted);
  color: var(--text);
}
.lang-flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; display: inline-block; vertical-align: middle; }
