:root {
  --accent: #ffc94a;
  --accent-hover: #ffd777;   /* 25 % aufgehellt */
  --accent-press: #d9ab3f;   /* 15 % abgedunkelt */
  --dark: #1a1333;
  --ui-font: "Segoe UI", system-ui, Arial, sans-serif;
  --emoji-font: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  font-family: var(--ui-font);
  font-weight: 700;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 540px;
  height: 960px;
  transform-origin: 0 0;
  overflow: hidden;
}

#cv {
  position: absolute;
  left: 0;
  top: 0;
  width: 540px;
  height: 960px;
  touch-action: none;
}

.emoji { font-family: var(--emoji-font); }

.screen {
  position: absolute;
  inset: 0;
  display: none;
}
.screen.show { display: block; }

.col {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

p { margin: 0; }

button {
  font-family: var(--ui-font);
  font-weight: 700;
  cursor: pointer;
  border: 0;
  padding: 0;
  outline: none;
}

.btn {
  width: 320px;
  height: 72px;
  font-size: 30px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 999px;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-press); }
.btn.round { width: 56px; height: 56px; font-size: 24px; flex: none; }
.btn.secondary {
  height: 60px;
  font-size: 26px;
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent);
}
.btn.secondary:hover { background: rgba(255,201,74,0.12); }
.btn.secondary:active { background: rgba(255,201,74,0.25); }
.btn.back { margin-top: 24px; }
.settings-entry { margin-top: 10px; }

.iconbtn {
  width: 44px;
  height: 44px;
  flex: none;
  font-size: 26px;
  background: transparent;
  border-radius: 50%;
  font-family: var(--emoji-font);
  line-height: 1;
}
.iconbtn:hover { background: rgba(255,255,255,0.1); }
.iconbtn.off { opacity: 0.3; }

.flat {
  position: absolute;
  z-index: 2; /* über der zentrierten Menüspalte (.col), die die ganze Fläche abdeckt */
  width: 56px;
  height: 56px;
  font-size: 34px;
  background: transparent;
  color: #fff;
  line-height: 1;
  font-family: var(--emoji-font), var(--ui-font);
}
.flat:hover { color: #fff; filter: brightness(1.15); }
.flat:active { filter: brightness(0.85); }
#btnQuit, #btnPause { display: none; }
#btnQuit { font-family: var(--ui-font); }
#btnPause { font-size: 30px; }
#btnQuit.show, #btnPause.show { display: block; }

#pause { background: rgba(13,8,31,0.82); z-index: 3; }
#pause .col { gap: 18px; }

.toggles { display: flex; gap: 12px; margin-top: 12px; }
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 18px;
}
.toggle .sw {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.2);
  transition: background 0.15s;
}
.toggle .sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.toggle[aria-pressed="true"] .sw { background: var(--accent); }
.toggle[aria-pressed="true"] .sw::after { left: 21px; }
.toggle[hidden] { display: none; }

.btn.install { margin-top: 12px; width: 360px; }
.install-hint { font-size: 16px; color: rgba(255,255,255,0.7); margin-top: 12px; text-align: center; }
[hidden] { display: none !important; }

h1 {
  margin: 0;
  font-size: 72px;
  color: var(--accent);
  line-height: 1;
}
.title-logo { display: block; width: 440px; height: auto; margin: 0 auto 6px; }
h2 { margin: 0 0 16px; font-size: 48px; color: var(--accent); }
.section-label { font-size: 20px; margin-top: 18px; }
.section-hint { font-size: 15px; color: rgba(255,255,255,0.5); }
.sub { font-size: 24px; color: rgba(255,255,255,0.8); }
.hint { font-size: 17px; color: rgba(255,255,255,0.55); margin-bottom: 36px; }

.themes {
  width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
}
.theme-mid { flex: 1; text-align: center; }
.theme-label { font-size: 16px; color: rgba(255,255,255,0.55); }
.theme-name { font-size: 30px; }
.theme-preview { font-size: 30px; white-space: nowrap; }
.track-box { margin-top: 10px; padding: 8px 12px; }
.track-name { font-size: 24px; }
.btn.round.small { width: 44px; height: 44px; font-size: 18px; }

.mode { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.best { font-size: 18px; color: rgba(255,255,255,0.6); }

.vol { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.vol-row { display: flex; align-items: center; gap: 12px; }
.pct { width: 56px; text-align: right; font-size: 18px; }

.slider {
  position: relative;
  width: 260px;
  height: 32px;
  cursor: pointer;
  touch-action: none;
}
.slider .track {
  position: absolute;
  left: 0; right: 0;
  top: 10px;
  height: 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
}
.slider .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}
.slider .knob {
  position: absolute;
  top: 3px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

/* über .col, die die ganze Fläche abdeckt */
.footer {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  z-index: 2;
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
}
.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  pointer-events: auto;
}
.footer a:hover { color: var(--accent); }

#over { background: rgba(13,8,31,0.82); }
#over .col { gap: 16px; }
.over-title { font-size: 60px; color: var(--accent); }
.over-stars { font-size: 52px; letter-spacing: 8px; }
.over-stars .dim { opacity: 0.2; filter: grayscale(1); }
.over-score { font-size: 44px; }
.over-best { font-size: 24px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
