/* Beirats-Buzzer in der ARTIFICIAL-Festival-CI
   Farben, Schriften und Zeilenabstände aus der Festivalseite übernommen. */

@font-face { font-family: "DM Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/dm-mono-italic-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/dm-mono-italic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/dm-mono-italic-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/dm-mono-italic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik Iso"; font-style: normal; font-weight: 400; font-display: block;
  src: url("fonts/rubik-iso-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik Iso"; font-style: normal; font-weight: 400; font-display: block;
  src: url("fonts/rubik-iso-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f4f4;
  --ink: #2d1d2b;
  --blue: #2943a6;
  --pink: #f777d6;
  --orange: #f15d14;
  --yellow: #f7bd04;
  --violet: #8f4fd0;
  --font-display: "Rubik Iso", system-ui, sans-serif;
  --font-text: "DM Mono", ui-monospace, monospace;
  --lh-display: 0.89;
  --lh-text: 1.2;
  --margin: 5vw;
  --fs-text: 0.9375rem;
  --fs-small: 0.8125rem;
  --line: color-mix(in srgb, var(--ink) 22%, transparent);
}

@media (min-width: 56.25em) {
  :root { --margin: 6.55vw; --fs-text: 1rem; }
}

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

html {
  color-scheme: light;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.display {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  line-height: var(--lh-display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Farbe je Person */
.c-blue   { --c: var(--blue);   --on: var(--bg); }
.c-pink   { --c: var(--pink);   --on: var(--ink); }
.c-orange { --c: var(--orange); --on: var(--ink); }
.c-yellow { --c: var(--yellow); --on: var(--ink); }
.c-violet { --c: var(--violet); --on: var(--bg); }

/* ---------- Kopf ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--margin) 0;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.top strong { font-weight: 500; }

.top-right { display: flex; align-items: center; gap: 1.1rem; }

.link-btn {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.35rem 0;
}

.conn {
  display: none;
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  text-align: center;
}

.conn.is-on { display: block; }

/* ---------- Bühne (Buzzer-Seite) ---------- */
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem var(--margin) 1.5rem;
}

.kicker {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}

.title {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 9.5vw, 5.6rem);
  max-width: 16ch;
}

.title.is-long { font-size: clamp(1.7rem, 6.4vw, 3.6rem); max-width: 22ch; }

.artist { margin-top: 0.8rem; min-height: 1.2em; }

.hint {
  margin-top: 0.4rem;
  max-width: 34ch;
  min-height: 2.4em;
}

/* Der Buzzer: weicher, wabernder Lava-Blob */
.buzz {
  position: relative;
  display: grid;
  place-items: center;
  width: min(74vw, 46vh, 27rem);
  width: min(74vw, 46svh, 27rem);
  aspect-ratio: 1;
  margin: 1.2rem 0 0.6rem;
  border-radius: 50%;
  color: var(--c, var(--ink));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1), opacity 0.3s;
}

.buzz:focus-visible { outline-offset: -0.5rem; }

.buzz svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.buzz-label {
  position: relative;
  font-size: clamp(2.2rem, 11vw, 4.6rem);
  color: var(--on, var(--bg));
  pointer-events: none;
}

.buzz[data-state="open"]:hover { transform: scale(1.04); }
.buzz[data-state="open"]:active { transform: scale(0.9); }

.buzz[data-state="idle"],
.buzz[data-state="locked"] { opacity: 0.28; cursor: default; }

.buzz[data-state="buzzed"] { transform: scale(0.86); cursor: default; }
.buzz[data-state="buzzed"] .buzz-label { font-size: clamp(1.5rem, 7vw, 3rem); }

.buzz.is-pop { animation: pop 0.55s cubic-bezier(.2, 1.5, .4, 1); }

@keyframes pop {
  0% { transform: scale(0.7); }
  55% { transform: scale(0.96); }
  100% { transform: scale(0.86); }
}

/* Ergebnis statt Buzzer */
.result { display: none; margin: 2.2rem 0 1.4rem; }
.result-word { font-size: clamp(2.6rem, 14.5vw, 9.5rem); }

.stage[data-outcome] .buzz { display: none; }
.stage[data-outcome] .result { display: block; }
.stage[data-outcome] .result-word { animation: rise 0.6s cubic-bezier(.2, 1.2, .4, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.25em) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Lava bei „Angenommen“: weiche Farbflächen fließen zusammen */
.lava {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.lava i {
  position: absolute;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.05);
  transition: transform 1.5s cubic-bezier(.2, .9, .3, 1);
}

.lava i:nth-child(1) { left: 50%; top: 46%; background: radial-gradient(closest-side, var(--yellow) 42%, transparent 100%); }
.lava i:nth-child(2) { left: 4%; top: 88%; background: radial-gradient(closest-side, var(--pink) 46%, transparent 100%); transition-delay: 0.08s; }
.lava i:nth-child(3) { left: 98%; top: 82%; background: radial-gradient(closest-side, var(--orange) 46%, transparent 100%); transition-delay: 0.16s; }
.lava i:nth-child(4) { left: 92%; top: 2%; background: radial-gradient(closest-side, var(--pink) 40%, transparent 100%); transition-delay: 0.22s; }

body.is-accepted .lava { opacity: 1; }
body.is-accepted .lava i { transform: translate(-50%, -50%) scale(1); animation: drift 9s ease-in-out 1.5s infinite alternate; }
body.is-accepted .lava i:nth-child(2) { animation-duration: 11s; }
body.is-accepted .lava i:nth-child(3) { animation-duration: 13s; }

@keyframes drift {
  to { transform: translate(-46%, -54%) scale(1.08); }
}

/* ---------- Beirat als Blobs ---------- */
.beirat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.4rem;
  padding: 0.5rem var(--margin) 2.5rem;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 6.4rem;
  font-size: var(--fs-small);
  text-align: center;
  overflow-wrap: anywhere;
}

.person-dot {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 52%, transparent 100%);
  opacity: 0.26;
  transform: scale(0.72);
  transition: transform 0.45s cubic-bezier(.2, 1.7, .4, 1), opacity 0.3s;
}

.person.is-buzzed .person-dot { opacity: 1; transform: scale(1.18); }
.person.is-away .person-dot { opacity: 0.09; }
.person.is-away .person-name { opacity: 0.45; }
.person.is-me .person-name { font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; }
.person-note { font-size: 0.6875rem; opacity: 0.6; text-transform: uppercase; }

body.is-accepted .person-dot { opacity: 0; }

/* ---------- Moderation ---------- */
.mod { padding-bottom: 5rem; }

.live { border-bottom: 1px solid var(--line); }

.live .stage { padding-bottom: 0.5rem; }

.live .title { font-size: clamp(1.9rem, 6vw, 4.2rem); }
.live .result { margin: 1.4rem 0 0.6rem; }
.live .result-word { font-size: clamp(2.2rem, 9vw, 6rem); }

.count { margin-top: 1.1rem; font-size: clamp(1.6rem, 5vw, 3rem); }

.controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 var(--margin) 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.btn:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-big { min-height: 3.4rem; padding: 0.8rem 1.6rem; font-size: 1.0625rem; }
.btn-small { min-height: 2rem; padding: 0.25rem 0.7rem; font-size: var(--fs-small); }
.btn[disabled] { opacity: 0.35; cursor: default; }

.block {
  position: relative;
  z-index: 1;
  padding: 2.6rem var(--margin) 0;
  max-width: 78rem;
}

.block h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 0.9rem; }
.block > p { max-width: 62ch; margin-bottom: 1rem; }

.rows { border-top: 1px solid var(--line); }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.row-main { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.row-main small { display: block; font-size: var(--fs-small); opacity: 0.7; }
.row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.row.is-current { background: color-mix(in srgb, var(--yellow) 26%, transparent); box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--yellow) 26%, transparent); }

.nr { flex: 0 0 2.2rem; font-size: var(--fs-small); opacity: 0.6; }

.swatch {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 58%, transparent 100%);
}

.online { font-size: var(--fs-small); white-space: nowrap; }
.online::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.online.is-on::before { background: var(--ink); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: var(--fs-small);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.tag-pending { border-color: var(--line); }
.tag-accepted { background: var(--yellow); }
.tag-rejected { background: var(--ink); color: var(--bg); }
.tag-discussion { background: var(--pink); }

select, input[type="text"], textarea {
  min-height: 2.4rem;
  padding: 0.4rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.7rem;
  background: transparent;
}

select { font-size: var(--fs-small); min-height: 2rem; padding: 0.2rem 0.5rem; }

textarea { display: block; width: 100%; max-width: 46rem; min-height: 8.5rem; resize: vertical; line-height: 1.35; }

.form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; margin-top: 1.1rem; }
.form input[type="text"] { flex: 1 1 14rem; max-width: 24rem; }
.form-col { flex-direction: column; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.upload:focus-within label { outline: 2px solid var(--ink); outline-offset: 3px; }
.block > .upload-note { margin: 0.8rem 0 0; font-size: var(--fs-small); opacity: 0.75; }

.sum { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-bottom: 1.2rem; }
.sum b { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: 2.2rem; line-height: 1; margin-right: 0.4rem; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 1rem);
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 0.9rem 0; opacity: 0.65; }

/* ---------- Hinweisseite ---------- */
.note-page {
  display: grid;
  place-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--margin);
  text-align: center;
}
.note-page h1 { font-size: clamp(3rem, 16vw, 10rem); }
.note-page p { margin: 1.2rem auto 0; max-width: 34ch; }

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