/**
 * Gemeinsame Basis-Styles für Tales for Kitty (App + Login).
 * Farben, Viewport-Hintergrund, Safe Area, Basis-Typografie.
 */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #0d0518;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
  color: #f0e6ff;
}

/* Gemeinsame Karten-Oberfläche (Login-Box, Track-Cards) */
.card-surface {
  background: linear-gradient(135deg, #2a1848 0%, #423070 50%, #2a1848 100%);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Debug-Log am Seitenende (scrollbar) */
.debug-log {
  margin: 1rem;
  max-height: 12rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #c0b0e0;
}
.debug-log-header {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #e0d4f0;
}
.debug-log pre,
#debugLogOut {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
  overflow-x: auto;
  flex: 1 1 auto;
  min-height: 4.5rem;
}
