* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #0a0a0f;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

header { text-align: center; }

header h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 1px;
}

header .glow,
header .chat {
  display: inline-block;
  animation: logoFloat 2.4s ease-in-out infinite;
}

header .glow {
  color: #3fd6e8;
  text-shadow: 0 0 10px rgba(63, 214, 232, 0.6);
}

header .chat {
  color: #6a4de8;
  text-shadow: 0 0 10px rgba(106, 77, 232, 0.6);
  animation-delay: 0.3s;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #12122a;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #3fd6e8;
  font-size: 13px;
  color: #8a95a8;
}

.online-label { color: #f5f0e6; }
.online-value { color: #f0a942; font-weight: 600; }

.points-label { color: #f5f0e6; }
.points-value { color: #f0e442; font-weight: 600; }

@keyframes glowpulse-cyan {
  0% { box-shadow: 0 0 6px #3fd6e8, 0 0 2px #3fd6e8; }
  50% { box-shadow: 0 0 18px #3fd6e8, 0 0 6px #3fd6e8; }
  100% { box-shadow: 0 0 6px #3fd6e8, 0 0 2px #3fd6e8; }
}

@keyframes glowpulse-violet {
  0% { box-shadow: 0 0 6px #6a4de8, 0 0 2px #6a4de8; }
  50% { box-shadow: 0 0 18px #6a4de8, 0 0 6px #6a4de8; }
  100% { box-shadow: 0 0 6px #6a4de8, 0 0 2px #6a4de8; }
}

.video-box {
  position: relative;
  background: #000;
  border-radius: 12px;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-box.mine {
  border: 2px solid #3fd6e8;
  animation: glowpulse-cyan 2.5s ease-in-out infinite;
}

.video-box.partner {
  border: 2px solid #6a4de8;
  animation: glowpulse-violet 2.5s ease-in-out infinite;
}

.video-label {
  position: absolute;
  font-size: 13px;
  color: #8a95a8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-box.mine .video-label { color: #3fd6e8; }
.video-box.partner .video-label { color: #6a4de8; }

.video-box.has-stream .video-label { opacity: 0; }

.start-btn {
  width: 100%;
  background: #3fd6e8;
  color: #062024;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.start-btn:hover { filter: brightness(1.1); }

.controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.icon-btn.danger {
  border-color: #e85454;
  color: #e85454;
}

#muteBtn { border-color: #f0a942; color: #f0a942; }
#cameraBtn { border-color: #e6c260; color: #e6c260; }
#stopBtn { border-color: #e854a0; color: #e854a0; }
#switchBtn { border-color: #4ae87a; color: #4ae87a; }
#backBtn { border-color: #2a6db3; color: #4a9de8; }
#themeBtn { border-color: #b04ae8; color: #b04ae8; }

#muteBtn:hover { border-color: #f0a942; background: rgba(240,169,66,0.15); }
#cameraBtn:hover { border-color: #e6c260; background: rgba(230,194,96,0.15); }
#stopBtn:hover { border-color: #e854a0; background: rgba(232,84,160,0.15); }
#switchBtn:hover { border-color: #4ae87a; background: rgba(74,232,122,0.15); }
#backBtn:hover { border-color: #2a6db3; background: rgba(42,109,179,0.15); }
#themeBtn:hover { border-color: #b04ae8; background: rgba(176,74,232,0.15); }
#reportBtn:hover { border-color: #e85454; background: rgba(232,84,84,0.15); }
#nextBtn:hover { border-color: #3fd6e8; background: rgba(63,214,232,0.15); }

.controls.secondary {
  grid-template-columns: repeat(3, 1fr);
}

.icon-btn {
  background: transparent;
  border: 1px solid #3a3a4a;
  color: #8a95a8;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.icon-btn .icon { font-size: 16px; display: flex; align-items: center; justify-content: center; }
.icon-btn .icon svg { display: block; }

.icon-btn:hover {
  border-color: #6a4de8;
  color: #ffffff;
}

.icon-btn.accent {
  border-color: #2a6db3;
  color: #4a9de8;
}

.icon-btn.small {
  padding: 6px 0;
  font-size: 10px;
}

.chat-box {
  background: #12122a;
  border: 1px solid #3fd6e8;
  border-radius: 8px;
  padding: 10px;
  height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.chat-box .placeholder {
  color: #5a5a70;
  font-size: 11px;
}

.chat-message {
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-message.you {
  align-self: flex-end;
  background: #3fd6e8;
  color: #062024;
}

.chat-message.guest {
  align-self: flex-start;
  background: #6a4de8;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.translate-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1.4;
}

.translate-btn:hover { background: rgba(255,255,255,0.3); }

.translated-text {
  width: 100%;
  font-size: 12px;
  color: #e0d9ff;
  font-style: italic;
}

.chat-message.system {
  align-self: center;
  color: #8a95a8;
  font-size: 11px;
  font-style: italic;
}

.chat-message.country {
  align-self: center;
  color: #3fd6e8;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(63, 214, 232, 0.6);
}

.input-area-wrap {
  position: relative;
}

.input-area {
  display: flex;
  gap: 8px;
}

#emojiBtn {
  background: #12122a;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  font-size: 18px;
  padding: 0 10px;
  cursor: pointer;
  line-height: 1;
}

.emoji-picker {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: #12122a;
  border: 1px solid #3fd6e8;
  border-radius: 10px;
  padding: 8px;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 20;
}

.emoji-picker.open {
  display: grid;
}

.emoji-picker button {
  background: transparent;
  border: none;
  font-size: 18px;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
}

.emoji-picker button:hover {
  background: #2a2a4a;
}

.input-area input {
  flex: 1;
  background: #12122a;
  border: 1px solid #f0e442;
  color: #e0e0e8;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  outline: none;
}

.input-area button {
  background: #f0e442;
  color: #2a2705;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ECHTER DARK-MODE: ruhigeres, gedaempftes Erscheinungsbild ohne Neon-Glanz */
body.dark { background: #000; }

body.dark .video-box.mine { animation: none; box-shadow: none; border-color: #2a4a4a; }
body.dark .video-box.partner { animation: none; box-shadow: none; border-color: #2a2a4a; }

body.dark header .glow,
body.dark header .chat { animation: none; text-shadow: none; }
body.dark header .glow { color: #6fa8b0; }
body.dark header .chat { color: #7a70a8; }

body.dark .start-btn { background: #2a4a4a; color: #cfe8e8; }
body.dark .statusbar { border-color: #2a2a3a; }
body.dark .online-value { color: #c9925a; }
body.dark .chat-box { border-color: #2a2a3a; }
body.dark .input-area input { border-color: #4a4a2a; }
body.dark .input-area button { background: #4a4a2a; color: #e0d9a0; }

body.dark .icon-btn { filter: saturate(0.5) brightness(0.9); }

.howto {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  text-align: left;
}

.howto div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e0e0e8;
}

.howto-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3fd6e8;
  color: #062024;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-text {
  color: #5a5a70;
  font-size: 11px;
  line-height: 1.6;
  padding: 12px 4px 0;
  border-top: 1px solid #1e1e30;
  margin-top: 8px;
}

.seo-text h2 {
  font-size: 12px;
  color: #7a7a90;
  margin: 0 0 6px;
}

.legal-footer {
  text-align: center;
  padding-top: 8px;
  font-size: 11px;
  color: #5a5a70;
}

.legal-footer a {
  color: #5a5a70;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #3fd6e8;
}

/* VIDEO / VOICE UMSCHALTER */
.mode-toggle {
  display: flex;
  gap: 8px;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: 1px solid #2a2a4a;
  color: #8a95a8;
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  border-color: #f0a942;
  color: #f0a942;
  background: rgba(240, 169, 66, 0.12);
}

#videoSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* VOICE-CHAT ANSICHT */
.voice-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0a0a14;
  border: 2px solid #f0a942;
  border-radius: 16px;
  padding: 50px 20px;
  min-height: 340px;
  box-shadow: 0 0 24px rgba(240, 169, 66, 0.25);
}

.voice-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0a942 0%, #6a4de8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  animation: voicepulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(240, 169, 66, 0.5);
}

@keyframes voicepulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.voice-status {
  color: #cfd6e6;
  font-size: 14px;
}

.voice-timer {
  color: #f0a942;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* TEXT-CHAT ANSICHT */
.text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0a1414;
  border: 2px solid #4ae8a0;
  border-radius: 8px;
  padding: 18px 14px;
  min-height: 0;
  box-shadow: 0 0 24px rgba(74, 232, 160, 0.25);
}

.text-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #4ae8a0 0%, #3fd6e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 24px rgba(74, 232, 160, 0.5);
}

.text-status {
  color: #cfe6dc;
  font-size: 16px;
  text-align: center;
  margin-top: 4px;
}

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.age-gate-box {
  max-width: 360px;
  background: #12122a;
  border: 1px solid #3a2f6a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.age-gate-box h2 {
  color: #3fd6e8;
  font-size: 18px;
  margin-top: 0;
}

.age-gate-box p {
  color: #8a95a8;
  font-size: 13px;
  line-height: 1.5;
}

.age-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: #e0e0e8;
  margin: 16px 0;
}

.age-checkbox a { color: #3fd6e8; }

#ageConfirmBtn {
  width: 100%;
  background: #3fd6e8;
  color: #062024;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

#ageConfirmBtn:disabled {
  background: #2a2a4a;
  color: #5a5a70;
  cursor: not-allowed;
}

.camera-error {
  color: #e85454;
  font-size: 12px;
  text-align: left;
  margin: -8px 0 4px;
}

.app.hidden { display: none; }

@media (max-width: 420px) {
  .video-box { height: 160px; }
}

/* RADIO ROULETTE RAD */
.radio-roulette {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.wheel-pointer {
  color: #f0e442;
  font-size: 20px;
  text-shadow: 0 0 8px rgba(240, 228, 66, 0.8);
  margin-bottom: -6px;
  z-index: 4;
}

.wheel-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}

.roulette-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #12122a;
  box-shadow: 0 0 30px rgba(63, 214, 232, 0.4);
  background: conic-gradient(
    #ff5e5e 0deg 60deg,
    #ffb84d 60deg 120deg,
    #ffe44d 120deg 180deg,
    #6cf07a 180deg 240deg,
    #4dc9ff 240deg 300deg,
    #b06bff 300deg 360deg
  );
  transition: transform 4.2s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  cursor: pointer;
}

.roulette-wheel.winner-flash {
  filter: brightness(1.6);
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  margin-left: -45px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #05050a;
  transform: rotate(calc(var(--i) * 60deg + 30deg)) translateY(-90px);
  transform-origin: center;
  pointer-events: none;
}

/* NUR der Gewinner-Sender blinkt */
.wheel-label.winner-blink {
  animation: labelBlink 0.35s steps(1) 5;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

@keyframes labelBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}

.roulette-wheel.spinning {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  border-radius: 50%;
  background: #12122a;
  border: 3px solid #f0e442;
  color: #f0e442;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(240, 228, 66, 0.5);
  z-index: 3;
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 420px) {
  .wheel-wrap { width: 180px; height: 180px; }
  .wheel-label { font-size: 10px; width: 74px; margin-left: -37px; transform: rotate(calc(var(--i) * 60deg + 30deg)) translateY(-72px); }
}

.radio-status {
  color: #f0e442;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

/* MUSIK-ZEIT-ANZEIGE HELLBLAU statt weiss */
audio {
  accent-color: #4ab8e8;
  border-radius: 8px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #4ab8e8 !important;
}