:root {
  color-scheme: dark;
  --bg: #101317;
  --panel: #181d23;
  --panel-strong: #202731;
  --line: #313a45;
  --text: #f6f7f9;
  --muted: #9ba7b5;
  --brand: #159dff;
  --brand-dark: #0572c7;
  --danger: #e31824;
  --warning: #ffd33d;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1217;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(57, 198, 164, 0.15);
}

.editor-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(57, 198, 164, 0.08), transparent 320px),
    var(--bg);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
}

.login-panel h1 {
  margin: 0 0 20px;
  font-size: 34px;
  letter-spacing: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup img {
  width: 92px;
  max-height: 62px;
  object-fit: contain;
}

.brand-lockup h1 {
  margin: 0;
}

.login-brand {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand img {
  width: min(240px, 80vw);
  max-height: none;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.login-error {
  margin: 14px 0 0 !important;
  color: #ff747b !important;
  font-weight: 900;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px 34px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar h1,
.panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 30px;
}

.playlist-select {
  width: min(260px, 100%);
  min-height: 42px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.top-actions,
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.button,
.icon-button {
  border: 0;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  min-height: 42px;
  padding: 0 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.button:hover,
.icon-button:hover {
  filter: brightness(1.12);
}

.button.primary {
  background: var(--brand);
  color: #071412;
}

.button.ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.button.danger {
  background: var(--danger);
}

.button.wide {
  width: 100%;
  margin-top: 12px;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 27px;
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 430px;
  gap: 18px;
  padding: 20px 34px 36px;
}

.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 20px;
}

.panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.setting-note {
  margin-top: 0 !important;
  font-weight: 900;
}

.setting-note[data-type="success"] {
  color: var(--brand);
}

.setting-note[data-type="error"] {
  color: #ff747b;
}

.slides-list {
  display: grid;
  gap: 10px;
}

.slide-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121820;
  cursor: grab;
}

.slide-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(57, 198, 164, 0.14);
}

.slide-card.dragging {
  opacity: 0.55;
}

.slide-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--panel-strong);
  font-weight: 900;
  color: var(--brand);
}

.slide-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
}

.slide-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.play-now {
  background: rgba(57, 198, 164, 0.15);
  color: var(--brand);
}

.inspector {
  display: grid;
  gap: 12px;
}

.inspector label,
.file-drop {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.file-drop {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
}

.file-drop input {
  border: 0;
  padding: 0;
  background: transparent;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--text) !important;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 8px;
}

.switch {
  position: relative;
  width: 54px;
  height: 31px;
  display: block;
}

.switch input {
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #343c47;
  cursor: pointer;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  top: 4px;
  left: 4px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(23px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(80px);
  background: #f7faf9;
  color: #111;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.player-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.player-layer,
.idle-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.player-layer {
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.player-layer.active {
  opacity: 1;
  z-index: 2;
}

.slide-output {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #06080a;
  color: #fff;
}

.slide-output.text {
  padding: 7vh 8vw 12vh;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(57, 198, 164, 0.22), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(255, 211, 61, 0.16), transparent 32%),
    #091016;
}

.text-slide-content {
  max-width: 1400px;
}

.text-slide-content h1 {
  margin: 0 0 26px;
  font-size: clamp(46px, 7vw, 124px);
  line-height: 1.02;
  letter-spacing: 0;
}

.text-slide-content p {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 62px);
  line-height: 1.18;
  white-space: pre-wrap;
}

.media-slide {
  width: 100%;
  height: 100%;
  object-position: center;
  background: #000;
}

.media-slide.cover {
  object-fit: cover;
}

.media-slide.contain {
  object-fit: contain;
}

.greeting-output {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 50vw 1fr;
  align-items: stretch;
  padding: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46)),
    url("groetjes-output-bg.jpg?v=20261012-output-bg") center / cover no-repeat,
    #080808;
}

.greeting-photo-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-right: 10px solid #ffd94a;
  background: #000;
}

.greeting-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.greeting-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  padding: 0.4vh 5vw 4vh;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.54), transparent 46%),
    rgba(0, 0, 0, 0.12);
}

.greeting-copy span {
  color: var(--warning);
  font-size: clamp(26px, 2.8vw, 50px);
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #000;
}

.greeting-copy p {
  margin: 0;
  align-self: start;
  font-size: clamp(52px, 6.4vw, 124px);
  font-weight: 1000;
  line-height: 1.04;
  white-space: pre-wrap;
  text-shadow: 0 6px 0 #000;
}

.greeting-qr-block {
  display: grid;
  grid-template-columns: minmax(130px, 10vw) 1fr;
  gap: 16px;
  align-items: start;
  align-self: start;
  width: min(100%, 780px);
  padding: 10px 14px;
  border: 4px solid #ffd94a;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
}

.greeting-qr-block strong,
.greeting-qr-block em {
  display: block;
  font-style: normal;
  line-height: 1.02;
}

.greeting-qr-block strong {
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 1000;
}

.greeting-qr-block em {
  margin-top: 8px;
  color: #ffd94a;
  font-size: clamp(22px, 2.1vw, 38px);
  font-weight: 1000;
  text-transform: uppercase;
}

.greeting-qr-block img {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.drink-ad-output,
.sponsor-ad-output {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.drink-ad-output img,
.sponsor-ad-output img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-ad-output {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 22vw) 1fr minmax(340px, 29vw);
  gap: 4vw;
  align-items: center;
  padding: 7vh 8vw 12vh;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(181, 0, 0, 0.9), rgba(0, 105, 12, 0.82)),
    #080808;
}

.qr-ad-logo {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.7));
}

.qr-ad-copy {
  display: grid;
  gap: 22px;
}

.qr-ad-copy span {
  color: var(--warning);
  font-size: clamp(24px, 2.4vw, 42px);
  font-weight: 1000;
  text-transform: uppercase;
}

.qr-ad-copy h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 136px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 7px 0 #000;
}

.qr-ad-copy p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(30px, 3.2vw, 62px);
  line-height: 1.12;
  font-weight: 900;
}

.qr-ad-card {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: clamp(18px, 2.2vw, 38px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.qr-ad-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lederhoos-output {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 1.7vh;
  padding: 2vh 5vw 30vh;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 217, 74, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(0, 87, 15, 0.92), rgba(0, 0, 0, 0.88) 48%, rgba(178, 0, 0, 0.84)),
    #080808;
}

.lederhoos-header {
  display: grid;
  gap: 4px;
  text-align: center;
}

.lederhoos-header span {
  color: #ffd94a;
  font-size: clamp(18px, 1.7vw, 32px);
  font-weight: 1000;
  text-transform: uppercase;
}

.lederhoos-header h1 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 106px);
  line-height: 0.92;
  text-shadow: 0 5px 0 #000;
}

.lederhoos-header p {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 34px);
  font-weight: 1000;
}

.lederhoos-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 2.2vw;
  min-height: 0;
}

.lederhoos-board section {
  display: grid;
  grid-template-rows: auto repeat(3, 1fr);
  gap: 10px;
  min-width: 0;
}

.lederhoos-board h2 {
  margin: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: #ffd94a;
  color: #111;
  font-size: clamp(30px, 3.2vw, 58px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lederhoos-row {
  display: grid;
  grid-template-columns: minmax(58px, 5.2vw) 1fr minmax(170px, 14vw);
  gap: 14px;
  align-items: center;
  min-height: 0;
  padding: 12px 14px;
  border: 4px solid rgba(255, 217, 74, 0.82);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
}

.lederhoos-row.empty {
  opacity: 0.45;
}

.lederhoos-rank {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #e31824;
  font-size: clamp(32px, 3.2vw, 62px);
  font-weight: 1000;
  line-height: 1;
}

.lederhoos-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 3.2vw, 62px);
  font-weight: 1000;
  line-height: 1;
}

.lederhoos-time {
  color: #ffd94a;
  font-size: clamp(28px, 2.8vw, 54px);
  font-weight: 1000;
  text-align: right;
  line-height: 1;
}

.fallback-output {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.fallback-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.fallback-label {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(10px);
}

.fallback-label span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fallback-label strong {
  font-size: 24px;
  line-height: 1;
}

.emergency-output {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 25vw) 1fr;
  gap: 4vw;
  align-items: center;
  padding: 8vh 8vw 13vh;
  background: var(--danger);
  color: white;
}

.emergency-mark {
  display: grid;
  place-items: center;
  width: min(23vw, 320px);
  height: min(23vw, 320px);
  border: 16px solid #fff;
  border-radius: 999px;
  font-size: min(22vw, 280px);
  line-height: 1;
  font-weight: 1000;
}

.emergency-text {
  font-size: clamp(48px, 6.8vw, 132px);
  line-height: 1.03;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: pre-wrap;
}

.countdown-output {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(227, 24, 36, 0.82), rgba(0, 0, 0, 0.08) 34%, rgba(0, 105, 12, 0.72)),
    #050607;
}

.countdown-output::before,
.countdown-output::after {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    repeating-linear-gradient(100deg, rgba(255, 211, 61, 0.26) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(18deg, transparent 0 24px, rgba(255, 255, 255, 0.08) 24px 27px, transparent 27px 62px);
  mix-blend-mode: screen;
  animation: countdownSweep 9s linear infinite;
}

.countdown-output::after {
  opacity: 0.42;
  transform: rotate(180deg);
  animation-duration: 13s;
}

.countdown-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  animation: countdownGrid 16s linear infinite;
}

.countdown-sweeper {
  position: absolute;
  inset: auto -10% 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(255, 211, 61, 0.28), transparent);
  transform: skewY(-5deg);
  animation: countdownLift 6s ease-in-out infinite alternate;
}

.countdown-content {
  position: relative;
  z-index: 2;
  width: min(1500px, 92vw);
  display: grid;
  gap: clamp(18px, 3vh, 42px);
  text-align: center;
  text-transform: uppercase;
  filter: drop-shadow(0 16px 0 rgba(0, 0, 0, 0.55));
}

.countdown-content h1 {
  margin: 0;
  color: var(--warning);
  font-size: clamp(68px, 9vw, 172px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 1000;
}

.countdown-time {
  color: #fff;
  font-size: clamp(82px, 13vw, 248px);
  line-height: 0.86;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.glitchy {
  position: relative;
  animation: glitchPulse 5s infinite;
}

.glitchy::before,
.glitchy::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitchy::before {
  color: #39c6ff;
  transform: translate(-5px, 0);
}

.glitchy::after {
  color: #ff2d55;
  transform: translate(5px, 0);
}

.glitchy::before,
.glitchy::after {
  animation: glitchSplit 5s infinite;
}

@keyframes countdownSweep {
  from {
    transform: translateX(-8%) rotate(0.5deg);
  }
  to {
    transform: translateX(8%) rotate(0.5deg);
  }
}

@keyframes countdownGrid {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 74px 148px, 148px 74px;
  }
}

@keyframes countdownLift {
  from {
    transform: translateY(8%) skewY(-5deg);
  }
  to {
    transform: translateY(-18%) skewY(-5deg);
  }
}

@keyframes glitchPulse {
  0%, 88%, 100% {
    transform: translate(0);
    filter: none;
  }
  89% {
    transform: skewX(2deg) translate(-4px, 1px);
    filter: contrast(1.35);
  }
  90% {
    transform: skewX(-4deg) translate(5px, -2px);
  }
  91% {
    transform: translate(-3px, 2px);
  }
  92% {
    transform: translate(2px, -1px);
    filter: contrast(1.15);
  }
}

@keyframes glitchSplit {
  0%, 88%, 100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
  }
  89% {
    opacity: 0.85;
    clip-path: inset(0 0 62% 0);
  }
  90% {
    opacity: 0.75;
    clip-path: inset(42% 0 26% 0);
  }
  91% {
    opacity: 0.9;
    clip-path: inset(70% 0 0 0);
  }
  92% {
    opacity: 0;
  }
}

.idle-screen {
  z-index: 0;
  text-align: center;
  color: white;
  background:
    linear-gradient(180deg, rgba(57, 198, 164, 0.12), transparent),
    #050708;
}

.idle-screen p {
  margin: 0 0 10px;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: 900;
}

.idle-screen h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 96px);
}

.idle-screen img {
  width: min(440px, 58vw);
  margin-bottom: 22px;
}

.ticker {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(54px, 7vh, 96px);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 5;
  background: rgba(4, 5, 7, 0.88);
  border-bottom: 3px solid var(--brand);
}

.ticker-track {
  white-space: nowrap;
  font-size: clamp(27px, 3.2vw, 56px);
  font-weight: 1000;
  letter-spacing: 0;
  animation: tickerMove 28s linear infinite;
  padding-left: 100%;
}

.ticker.stopwatch-bar {
  justify-content: center;
  background: rgba(4, 5, 7, 0.94);
  border-bottom-color: #ffd94a;
}

.ticker.stopwatch-bar .ticker-track {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 72px);
  padding-left: 0;
  animation: none;
  transform: none;
}

.stopwatch-label {
  color: #ffd94a;
  font-size: clamp(24px, 2.6vw, 48px);
  font-weight: 1000;
  text-transform: uppercase;
}

.stopwatch-time {
  color: #fff;
  font-size: clamp(34px, 4vw, 72px);
  font-weight: 1000;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stopwatch-control-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111820;
}

.stopwatch-control-preview span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stopwatch-control-preview strong {
  color: #ffd94a;
  font-size: 30px;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 980px) {
  .topbar,
  .editor-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar,
  .editor-shell {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .editor-shell {
    display: grid;
  }
}

.greetings-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.34)),
    url("beertheme.png?v=20261009-beer") center / cover fixed no-repeat,
    #f3b006;
  color: #fff;
}

.greetings-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  clip-path: circle(150% at 50% 50%);
}

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

.greetings-loader.wipe-out {
  animation: circleWipe 820ms cubic-bezier(0.78, 0, 0.2, 1) forwards;
}

.greetings-agreement {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 217, 74, 0.2), transparent 36%),
    rgba(0, 0, 0, 0.76);
}

.greetings-agreement[hidden] {
  display: none;
}

.agreement-card {
  width: min(620px, 100%);
  padding: 28px;
  border: 3px solid rgba(255, 217, 74, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(13, 42, 16, 0.9)),
    #111;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.agreement-card h1 {
  margin: 0 0 14px;
  color: #ffd94a;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1;
  text-shadow: 0 5px 0 #000;
}

.agreement-card p {
  margin: 0 0 22px;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 1000;
  line-height: 1.18;
}

.greetings-page {
  width: min(720px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px 0 38px;
  display: grid;
  gap: 18px;
}

.greetings-topbar,
.greetings-form-panel {
  border: 3px solid rgba(255, 215, 73, 0.8);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.46)),
    rgba(12, 12, 12, 0.92);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.46);
  padding: 22px;
}

.greetings-topbar {
  display: grid;
  place-items: center;
  padding: 10px 14px 4px;
  position: sticky;
  top: 8px;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.greetings-topbar img {
  width: min(620px, 96%);
  height: auto;
  max-height: 210px;
  object-fit: contain;
  display: block;
}

.greetings-topbar strong {
  margin: 0;
  color: #ffd94a;
  text-shadow: 0 5px 0 #000;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.greetings-form-panel h2 {
  margin: 0 0 8px;
  color: #ffd94a;
  font-size: 26px;
  text-shadow: 0 3px 0 #000;
}

.queue-counter {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.queue-counter.compact {
  margin: 8px 0 0;
  color: var(--muted);
}

.greeting-form {
  display: grid;
  gap: 14px;
}

.camera-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 217, 74, 0.18), transparent),
    #080808;
}

.camera-preview,
.selfie-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.camera-box::after {
  content: "Live selfie";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffd94a;
  font-weight: 1000;
  text-transform: uppercase;
}

.selfie-canvas {
  display: none;
}

.qr-code {
  display: grid;
  place-items: center;
  width: 252px;
  height: 252px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.qr-code img,
.qr-code canvas {
  width: 220px;
  height: 220px;
}

.greetings-url {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.greeting-form label {
  display: grid;
  gap: 8px;
  color: #ffd94a;
  font-weight: 900;
}

.consent-row {
  align-items: center;
  grid-template-columns: auto 1fr;
  color: #fff !important;
  line-height: 1.2;
}

.consent-row input {
  width: 22px;
  height: 22px;
}

.greetings-contact {
  display: block;
  padding: 14px 18px;
  border: 3px solid rgba(255, 215, 73, 0.8);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffd94a;
  text-align: center;
  text-decoration: none;
  font-weight: 1000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.terms-page {
  width: min(860px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 42px;
  display: grid;
  place-items: center;
}

.terms-panel h1 {
  margin: 0 0 18px;
  color: #ffd94a;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1;
  text-shadow: 0 5px 0 #000;
}

.terms-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding-left: 22px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.terms-warning {
  margin: 0 0 20px;
  color: #ff747b;
  font-weight: 1000;
}

.review-shell {
  padding: 0 24px 36px;
}

.review-list {
  display: grid;
  gap: 16px;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.review-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.review-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-content {
  display: grid;
  gap: 14px;
  align-content: start;
}

.greetings-agreement[hidden], .greetings-loader[hidden], .greetings-page button[hidden] { display: none; }

.sponsor-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 5;
}

.slide-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.slide-progress[hidden] { display: none; }
.slide-progress > div {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--progress-color, #00aaff);
}

.greeting-status {
  min-height: 28px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
  display: grid;
  gap: 10px;
}

.greeting-status[data-type="success"] {
  color: var(--brand);
}

.greeting-status[data-type="error"] {
  color: #ff747b;
}

.status-actions {
  display: grid;
  gap: 8px;
  color: var(--text);
}

.status-actions small {
  color: var(--muted);
  font-weight: 800;
}

.competition-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 217, 74, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(0, 105, 12, 0.8), rgba(181, 0, 0, 0.78)),
    #101317;
  color: #fff;
}

.competition-page {
  width: min(780px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 34px;
  display: grid;
  gap: 16px;
}

.competition-hero {
  padding: 22px;
  border: 3px solid rgba(255, 217, 74, 0.84);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: var(--shadow);
}

.competition-hero h1 {
  margin: 0;
  color: #ffd94a;
  font-size: clamp(48px, 12vw, 86px);
  line-height: 0.96;
  text-shadow: 0 5px 0 #000;
}

.competition-hero p:last-child {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.competition-panel {
  border: 2px solid rgba(255, 217, 74, 0.38);
}

.competition-form {
  display: grid;
  gap: 14px;
}

.competition-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.competition-form input {
  min-height: 58px;
  font-size: 22px;
  font-weight: 900;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.competition-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.competition-live-bar {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid rgba(255, 217, 74, 0.56);
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 1000;
  text-align: center;
}

.competition-live-bar[data-active="true"] {
  background: #ffd94a;
  color: #111;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.22);
}

.competition-ranking {
  display: grid;
  gap: 10px;
}

.competition-rank-row {
  display: grid;
  grid-template-columns: 58px 1fr auto 44px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #121820;
  border: 1px solid var(--line);
}

.competition-rank-row.outside-top {
  opacity: 0.76;
}

.competition-rank-row strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e31824;
  color: #fff;
  font-size: 24px;
}

.competition-rank-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 1000;
}

.competition-rank-row em {
  color: #ffd94a;
  font-style: normal;
  font-size: 22px;
  font-weight: 1000;
}

.competition-delete {
  width: 40px;
  height: 40px;
  min-height: 40px;
  background: #e31824;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.competition-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lederhoos-iso-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 217, 74, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(0, 86, 15, 0.92), rgba(0, 0, 0, 0.9) 48%, rgba(181, 0, 0, 0.84)),
    #080808;
}

.lederhoos-iso-output {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 2.2vh;
  padding: 4vh 5vw 5vh;
}

.lederhoos-iso-header {
  display: grid;
  gap: 6px;
  text-align: center;
}

.lederhoos-iso-header span {
  color: #ffd94a;
  font-size: clamp(20px, 2vw, 38px);
  font-weight: 1000;
  text-transform: uppercase;
}

.lederhoos-iso-header h1 {
  margin: 0;
  font-size: clamp(62px, 7vw, 132px);
  line-height: 0.92;
  text-shadow: 0 7px 0 #000;
}

.lederhoos-iso-header p {
  margin: 0;
  font-size: clamp(22px, 2.1vw, 40px);
  font-weight: 1000;
}

.lederhoos-live-bar {
  min-height: clamp(50px, 6vh, 84px);
  display: grid;
  place-items: center;
  padding: 10px 22px;
  border: 4px solid rgba(255, 217, 74, 0.76);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(26px, 3vw, 60px);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lederhoos-live-bar[data-active="true"] {
  background: #ffd94a;
  color: #111;
  border-color: #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.52);
}

.lederhoos-iso-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  min-height: 0;
}

.lederhoos-iso-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 0;
}

.lederhoos-iso-column h2 {
  margin: 0;
  padding: 14px 18px;
  border-radius: 8px;
  background: #ffd94a;
  color: #111;
  font-size: clamp(34px, 3.7vw, 68px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.lederhoos-iso-list {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.lederhoos-iso-row {
  display: grid;
  grid-template-columns: minmax(54px, 4.8vw) 1fr minmax(170px, 13vw);
  gap: 14px;
  align-items: center;
  min-height: clamp(54px, 6.2vh, 84px);
  padding: 10px 14px;
  border: 3px solid rgba(255, 217, 74, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
}

.lederhoos-iso-row.top-three {
  border-color: rgba(255, 217, 74, 0.9);
  background: rgba(0, 0, 0, 0.72);
}

.lederhoos-iso-row strong {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #e31824;
  color: #fff;
  font-size: clamp(26px, 2.9vw, 56px);
  line-height: 1;
}

.lederhoos-iso-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(26px, 3vw, 58px);
  font-weight: 1000;
  line-height: 1;
}

.lederhoos-iso-row em {
  color: #ffd94a;
  font-style: normal;
  font-size: clamp(24px, 2.6vw, 50px);
  font-weight: 1000;
  line-height: 1;
  text-align: right;
}

.lederhoos-iso-empty {
  display: grid;
  place-items: center;
  min-height: 28vh;
  border: 3px dashed rgba(255, 217, 74, 0.36);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 1000;
}

@media (max-width: 720px) {
  .greetings-page {
    width: min(100vw - 20px, 560px);
    padding-top: 10px;
  }

  .greetings-topbar,
  .greetings-form-panel {
    padding: 16px;
  }

  .greetings-topbar img {
    width: 100%;
    height: auto;
    max-height: 170px;
  }

  .review-shell {
    padding: 0 10px 24px;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes circleWipe {
  from {
    clip-path: circle(150% at 50% 50%);
  }
  to {
    clip-path: circle(0% at 50% 50%);
    visibility: hidden;
  }
}
