/* LOVE SHIFT Live-Voting – Gästeseite und Datenschutz */

@font-face {
  font-family: "Compagnon";
  src: url("/static/fonts/Compagnon-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #040405;
  --ink: #29071F;
  --pink: #FF8EB7;
  --grey: #B0B2BA;
  --soft: #D9DAE0;
  --line: rgba(255, 255, 255, .24);
  --display: Impact, "HelveticaNeue-CondensedBlack", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --mono: "Compagnon", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: #040405;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #040405;
  color: #fff;
  font: 16px/1.45 var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Ketten liegen fest hinter allem, die Mitte ist abgedunkelt */
.bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background: #040405 url("/static/img/ketten.webp") center top / cover no-repeat;
}
.bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 5, .25) 0%, rgba(4, 4, 5, .8) 16%, rgba(4, 4, 5, .8) 84%, rgba(4, 4, 5, .25) 100%),
    linear-gradient(180deg, rgba(4, 4, 5, .1) 0%, rgba(4, 4, 5, .55) 30%, rgba(4, 4, 5, .55) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 16px 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
@supports (min-height: 100dvh) {
  body, .wrap { min-height: 100dvh; }
}

.top { text-align: center; padding: 4px 0 8px; }
.logo {
  display: inline-block;
  width: 132px;
  height: auto;
  vertical-align: top;
  color: #fff;
  font: 800 28px/1 var(--display);
}

main { flex: 1 0 auto; }

.view {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Linie – Wort – Linie wie auf dem Plakat */
.rule {
  display: flex;
  align-items: center;
  margin: 10px 0;
  color: #fff;
  font: 500 13px/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.rule::before, .rule::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--line);
}
.rule span { padding: 0 12px 0 calc(12px + .24em); }

.title, .dj-name, .cd-num, .lineup, .meta, .ph-initials, .msg-title, .btn, .badge {
  font-family: var(--display);
  font-weight: 800;
  font-synthesis: none;
  text-transform: uppercase;
}

/* Chrom: heller Verlauf mit pinker Kante, ohne Verlauf bleibt es weiß */
.title, .cd-num, .ph-initials { color: #EDEEF2; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title, .cd-num, .ph-initials {
    background: linear-gradient(180deg, #fff 0%, #F1F2F6 34%, #9EA1AC 54%, #E9EAF0 66%, #C3C6CF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(255, 142, 183, .5));
  }
}

.title {
  margin: 14px 0 6px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: .01em;
}
.title-big { font-size: 84px; margin-top: 24px; }

.lead {
  margin: 8px auto 10px;
  max-width: 21em;
  color: var(--soft);
  font-size: 17px;
}

.meta {
  margin: 16px 0 6px;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .02em;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
}
.cd-cell {
  flex: 0 1 96px;
  min-width: 0;
  padding: 8px 2px 10px;
  border: 1px solid var(--line);
  border-left-width: 0;
  background: rgba(4, 4, 5, .72);
}
.cd-cell:first-child, [hidden] + .cd-cell { border-left-width: 1px; }
.cd-num {
  display: block;
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  display: block;
  margin-top: 6px;
  color: var(--grey);
  font: 500 12px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.lineup {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 31px;
  line-height: 1.16;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

/* Laufender DJ */
/* Die Fotos sind fertig rund ausgeschnitten (außen transparent): als Kreis zeigen,
   nichts beschneiden, kein Kasten dahinter – nur ein schmaler Ring. */
.photo {
  position: relative;
  width: 264px;
  width: min(76vw, 42vh, 330px);
  margin: 6px auto 0;
}
.photo-in {
  position: relative;
  padding-top: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .72), 0 0 0 3px rgba(255, 142, 183, .55), 0 0 30px rgba(255, 142, 183, .22);
}
.ph, .dj-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
/* Platzhalter ohne Foto: runde Platte in gleicher Größe */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 4, 5, 0) 0, rgba(4, 4, 5, 0) 40%, rgba(4, 4, 5, .6) 41%, rgba(4, 4, 5, 0) 42.5%),
    radial-gradient(circle at 50% 50%, rgba(255, 142, 183, .36) 0, rgba(255, 142, 183, 0) 60%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .09) 0, rgba(255, 255, 255, .09) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 7px),
    linear-gradient(155deg, #26262C 0%, #070708 50%, #29071F 100%);
}
.photo.has-photo .ph { display: none; }
.ph-initials {
  font-size: 104px;
  line-height: 1;
  letter-spacing: .02em;
}
.dj-img { object-fit: contain; }
.badge {
  position: absolute;
  left: 50%;
  bottom: -15px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  padding: 7px 12px 6px;
  background: var(--pink);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.dj-name {
  margin: 26px 0 0;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.dj-name.long { font-size: 33px; }

.ask {
  margin: 6px 0 10px;
  color: var(--soft);
  font-size: 17px;
}

/* Sterne: fünf große Tippflächen */
.stars {
  display: flex;
  margin: 0 -3px;
}
.star {
  flex: 1 1 0;
  min-width: 0;
  height: 70px;
  margin: 0 3px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(4, 4, 5, .72);
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .12s, border-color .12s, transform .08s;
}
.star svg {
  display: block;
  width: 44px;
  height: 44px;
  max-width: 78%;
  margin: 0 auto;
  fill: rgba(255, 255, 255, .05);
  stroke: var(--grey);
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: fill .12s, stroke .12s;
}
.star.on {
  border-color: var(--pink);
  background: rgba(255, 142, 183, .14);
}
.star.on svg {
  fill: var(--pink);
  stroke: var(--pink);
}
.star:active { transform: scale(.94); }
.star:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.stars.busy .star.on svg { opacity: .6; }
.stars.locked .star { opacity: .45; }
.stars.pop .star.on svg { animation: pop .32s ease-out; }
@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* Rückmeldung unter den Sternen */
.msg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.3;
}
.msg-title { display: block; font-size: 22px; line-height: 1.1; letter-spacing: .03em; }
.msg-title:empty, .msg-text:empty { display: none; }
.msg-text { display: block; }
.msg.ok { background: var(--pink); color: var(--ink); }
.msg.ok .msg-text { font-weight: 600; }
.msg.err { border-color: var(--pink); background: var(--ink); color: #fff; }
.msg.err .msg-title { color: var(--pink); }
.msg.busy { color: var(--grey); }

.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border: 1px solid #fff;
  border-radius: 2px;
  background: #fff;
  color: var(--black);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .03em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.btn:active { background: var(--pink); border-color: var(--pink); color: var(--ink); }

/* Hinweis bei fehlendem Netz */
.net {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--pink);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
}

.foot {
  flex: 0 0 auto;
  padding: 14px 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  text-align: center;
}
.foot a, .doc a {
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot a {
  display: inline-block;
  padding: 12px 16px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Datenschutzseite */
.doc {
  padding: 4px 2px 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.doc h1.title { font-size: 40px; margin: 8px 0 12px; text-align: center; }
.doc h2 {
  margin: 22px 0 6px;
  color: #fff;
  font: 500 13px/1.3 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.doc p, .doc ul { margin: 0 0 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 0 0 4px; }
.doc a { color: #fff; }
.doc .todo {
  padding: 10px 12px;
  border: 2px dashed var(--pink);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.doc a.btn { color: var(--black); text-align: center; text-decoration: none; margin-top: 22px; }
.doc a.btn:active { color: var(--ink); }

@media (max-width: 359px) {
  .title, .dj-name { font-size: 34px; }
  .dj-name.long { font-size: 28px; }
  .cd-num { font-size: 48px; }
  .lineup { font-size: 27px; }
  .star { height: 62px; }
}

@media (max-height: 600px) {
  .logo { width: 96px; }
  .photo { width: min(70vw, 39vh, 330px); }
  .ph-initials { font-size: 76px; }
  .dj-name { margin-top: 22px; }
  .ask { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
