@import url('./brand.css');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

body {
  background: #080812;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-family: var(--font-body);
  display: flex;
  align-items: stretch;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-wheel {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-wheel::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 160vmax; height: 160vmax;
  transform: translate(-50%,-50%);
  background: conic-gradient(
    from 0deg,
    rgba(220,50,50,.04), rgba(255,140,0,.04),
    rgba(255,210,0,.06), rgba(50,180,80,.04),
    rgba(30,120,255,.04), rgba(160,60,220,.04),
    rgba(255,60,100,.04), rgba(220,50,50,.04)
  );
  animation: spin-bg 40s linear infinite;
  border-radius: 50%;
}
@keyframes spin-bg {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ===== LAYOUT ===== */
.screen-layout {
  position: relative; z-index: 1;
  display: flex;
  width: 100%; height: 100vh;
}

/* ===== WHEEL AREA ===== */
.wheel-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Pulsing glow behind the wheel */
.wheel-glow {
  position: absolute;
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.1) 0%, transparent 68%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Idle-Attract: intensivierter Glow wenn kein Spieler aktiv ist */
.wheel-glow.is-idle {
  animation: glow-idle 2.2s ease-in-out infinite;
}
@keyframes glow-idle {
  0%,100% {
    transform: scale(1);
    opacity: .55;
    background: radial-gradient(circle, rgba(255,215,0,.1) 0%, transparent 65%);
  }
  50% {
    transform: scale(1.45);
    opacity: 1;
    background: radial-gradient(circle, rgba(255,215,0,.32) 0%, transparent 65%);
  }
}

.wheelcontainer {
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Canvas stack */
#fortunewheel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fortunewheel, .wheel {
  width: 900px;
  height: 900px;
}

.wheel {
  position: relative;
}

#wheel {
  /* Realistic deceleration: fast start → gradual stop */
  transition: transform 5s cubic-bezier(0.2, 0.05, 0, 1);
  transform: rotate(0deg);
  /* Subtle drop-shadow for depth */
  filter: drop-shadow(0 0 40px rgba(255,215,0,.2)) drop-shadow(0 20px 60px rgba(0,0,0,.6));
}

#controls {
  top: -905px;
}

#centerlogo {
  position: absolute;          /* taken out of flex flow; stays within #fortunewheel */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== SIDEBAR ===== */
.sidebar-area {
  width: 380px;
  min-width: 340px;
  height: 100vh;
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
  position: relative; z-index: 1;
}

.sidebar-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), -16px 0 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 22px 20px;
  overflow: hidden;
}

/* Header */
.sidebar-header {
  text-align: center;
  width: 100%;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.sidebar-header .brand-artwork {
  width: 80px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 14px rgba(184,150,12,.4));
}
.sidebar-header .brand-logo-img {
  height: 28px;
  width: auto;
  margin: 0 auto;
}

/* Dynamic content area */
.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 18px;
}

/* QR Section */
#qrSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-frame {
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 50px rgba(255,255,255,.2), 0 8px 32px rgba(0,0,0,.4);
  line-height: 0;
  animation: qr-glow 3s ease-in-out infinite;
}
@keyframes qr-glow {
  0%,100% { box-shadow: 0 0 30px rgba(255,255,255,.15), 0 8px 32px rgba(0,0,0,.4); }
  50%      { box-shadow: 0 0 60px rgba(255,255,255,.3),  0 8px 32px rgba(0,0,0,.4); }
}
.qr-frame canvas { display: block; border-radius: 6px; }

.code-display {
  text-align: center;
}
.code-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 5px;
}
#code {
  font-size: 34px; font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Result box */
#resultbox {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
#result {
  font-size: 18px; font-weight: 700;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
  transition: all .3s ease;
}
#result.is-win {
  font-size: 24px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: win-pop .55s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes win-pop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
#result.is-loss {
  font-size: 20px;
  color: rgba(255,255,255,.45);
  animation: loss-fade .4s ease both;
}
@keyframes loss-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* User name */
#user {
  font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,.75);
  text-align: center;
  line-height: 1.4;
  min-height: 1.4em;
}

/* Countdown */
#countdown {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.38);
  text-align: center;
  min-height: 1.4em;
  letter-spacing: .3px;
}

/* Spin button */
#spin {
  width: 100%;
  padding: 18px;
  border: none; border-radius: 16px;
  font-size: 20px; font-weight: 800;
  letter-spacing: .5px;
  color: #111;
  background: linear-gradient(135deg, #FFD700 0%, #FF9500 100%);
  cursor: pointer;
  box-shadow: 0 8px 36px rgba(255,175,0,.42);
  transition: transform .14s, box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
#spin::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0; transition: opacity .2s;
}
#spin:hover:not(.disabled)       { transform: translateY(-2px); box-shadow: 0 14px 48px rgba(255,175,0,.55); }
#spin:hover:not(.disabled)::after { opacity: 1; }
#spin:active:not(.disabled)      { transform: scale(.97); }
#spin.disabled                   { opacity: .5; cursor: not-allowed; transform: none; }
#spin.d-none                     { display: none !important; }

/* Loader */
#loader {
  text-align: center;
}
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.loader-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,215,0,.6);
  animation: dot-bounce .9s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .18s; }
.loader-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dot-bounce {
  0%,60%,100% { transform: translateY(0) scale(1); }
  30%          { transform: translateY(-12px) scale(1.1); }
}
.loader-text {
  font-size: 13px;
  color: rgba(255,255,255,.38);
  letter-spacing: .5px;
}


/* Footer URL */
.sidebar-url {
  flex-shrink: 0;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%;
  text-align: center;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .8px;
  line-height: 1.5;
}
.sidebar-url-hint {
  display: block;
  font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,.38);
  letter-spacing: .3px;
  margin-bottom: 2px;
}

/* ===== TABLET FORM ===== */
#tabletForm {
  width: 100%;
}
#tabletRegForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Labels */
.tablet-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: .9px; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 8px;
}

/* Field groups */
.tablet-field { flex: 1; min-width: 0; }
.tablet-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Inputs */
#tabletRegForm input:not([type="checkbox"]),
#tabletRegForm select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 13px;
  color: #fff;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
#tabletRegForm input::placeholder { color: rgba(255,255,255,.22); }
#tabletRegForm input:focus,
#tabletRegForm select:focus {
  border-color: var(--gold);
  background: rgba(255,215,0,.06);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
#tabletRegForm input.is-invalid { border-color: #FF5252; }

/* Phone row */
.tablet-phone-row {
  display: flex;
  gap: 8px;
}
#tabletRegForm .tablet-phone-row select {
  width: 90px;
  flex-shrink: 0;
  padding: 14px 26px 14px 11px;
  font-size: 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.45)' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
#tabletRegForm .tablet-phone-row select option { background: #1a1a2e; }
.tablet-phone-row input { flex: 1; min-width: 0; }

/* AGB Checkbox (custom, wie index) */
.tablet-agb {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  transition: border-color .2s, background .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tablet-agb.checked {
  border-color: rgba(0,230,118,.55);
  background: rgba(0,230,118,.06);
}
.tablet-agb input[type="checkbox"] { display: none; }
.tablet-agb-box {
  width: 22px; height: 22px; min-width: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background .2s, border-color .2s;
  font-size: 13px; font-weight: 700; color: #fff;
}
.tablet-agb.checked .tablet-agb-box {
  background: #00E676; border-color: #00E676;
}
.tablet-agb-check {
  opacity: 0; transform: scale(0);
  transition: opacity .15s, transform .15s cubic-bezier(.34,1.56,.64,1);
}
.tablet-agb.checked .tablet-agb-check { opacity: 1; transform: scale(1); }
.tablet-agb-text {
  font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.55;
}
.tablet-agb-text a { color: var(--gold); text-decoration: none; }
.tablet-agb-text a:hover { text-decoration: underline; }

/* Submit button */
.tablet-submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #111;
  background: linear-gradient(135deg, #FFD700 0%, #FF9500 100%);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,175,0,.38);
  transition: transform .14s, box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.tablet-submit-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent);
  opacity: 0; transition: opacity .2s;
}
.tablet-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255,175,0,.48); }
.tablet-submit-btn:hover::after { opacity: 1; }
.tablet-submit-btn:active { transform: scale(.98); }
.tablet-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tablet-form-error {
  font-size: 12px;
  color: #FF5252;
  text-align: center;
  min-height: 1.2em;
}

/* ===== QUEUE / WARTELISTE ===== */
#queueSection {
  width: 100%;
  text-align: center;
}
.queue-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: 8px;
}
#queueList {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: all .3s ease;
}
.queue-item.queue-next {
  background: rgba(255,215,0,.08);
  border-color: rgba(255,215,0,.25);
  color: #FFD700;
  font-weight: 600;
}
.queue-pos {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.queue-next .queue-pos {
  background: rgba(255,215,0,.2);
  color: #FFD700;
}
.queue-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== MINI QR (während Spiel läuft) ===== */
#miniQrSection {
  width: 100%;
  text-align: center;
  margin-top: auto;          /* nach unten in der Sidebar drücken */
}
.mini-qr-divider {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
}
.mini-qr-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,215,0,.5);
  margin-bottom: 8px;
}
.mini-qr-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mini-qr-frame {
  padding: 6px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
  flex-shrink: 0;
}
.mini-qr-frame canvas { display: block; border-radius: 4px; }
.mini-qr-info { text-align: center; }
.mini-qr-code-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 3px;
}
.mini-qr-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESPONSIVE: Portrait / Tablets / Mobile ===== */
@media (max-width: 900px), (orientation: portrait) and (max-width: 1200px) {
  html, body { overflow: hidden; height: 100dvh; }
  .screen-layout {
    flex-direction: column;
    height: 100dvh;
  }
  .wheel-area {
    flex: 1;
    min-height: 0;
  }
  .sidebar-area {
    width: 100%;
    min-width: unset;
    height: auto;
    flex: none;
    max-height: 58dvh;
    padding: 0;
  }
  .sidebar-card {
    border-radius: 20px 20px 0 0;
    padding: 14px 16px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Header: inline (Logo + Titel nebeneinander) */
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 8px;
  }
  .sidebar-header .brand-artwork {
    width: 32px; height: 32px;
    margin: 0;
  }
  .sidebar-header .brand-logo-img { height: 20px; margin: 0; }
  .sidebar-content {
    gap: 10px;
    justify-content: flex-start;
  }
  /* QR + Code kompakter: nebeneinander, zentriert */
  #qrSection {
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .qr-frame { padding: 8px; border-radius: 12px; flex-shrink: 0; }
  .qr-frame canvas { max-width: 120px; max-height: 120px; }
  .code-display { text-align: center; }
  #code { font-size: 26px; letter-spacing: 5px; }
  .code-label { font-size: 10px; }
  /* Tablet-Form kompakter */
  #tabletRegForm { gap: 8px; }
  #tabletRegForm input:not([type="checkbox"]),
  #tabletRegForm select { padding: 10px 12px; font-size: 15px; }
  .tablet-label { font-size: 10px; margin-bottom: 4px; }
  .tablet-agb { padding: 10px 12px; gap: 10px; }
  .tablet-agb-box { width: 20px; height: 20px; min-width: 20px; }
  .tablet-agb-text { font-size: 12px; }
  .tablet-submit-btn { padding: 12px; font-size: 15px; }
  #result { font-size: 15px; }
  #result.is-win { font-size: 19px; }
  #result.is-loss { font-size: 16px; }
  #resultbox { padding: 8px 10px; }
  #user { font-size: 14px; }
  #spin { padding: 12px; font-size: 17px; }
  .sidebar-url { font-size: 12px; margin-top: 6px; padding-top: 8px; }
  .sidebar-url-hint { font-size: 9px; }
  .loader-dots span { width: 8px; height: 8px; }
  .loader-dots { gap: 6px; margin-bottom: 6px; }
  .loader-text { font-size: 12px; }
  #countdown { font-size: 12px; }
  .queue-item { padding: 6px 10px; font-size: 12px; }
  .queue-pos { width: 18px; height: 18px; font-size: 10px; }
  .queue-title { font-size: 10px; margin-bottom: 6px; }
  .mini-qr-label { font-size: 10px; margin-bottom: 6px; }
  .mini-qr-row { gap: 10px; }
  .mini-qr-code { font-size: 18px; letter-spacing: 4px; }
  .mini-qr-frame { padding: 5px; border-radius: 8px; }
}

/* Small phones */
@media (max-width: 480px) {
  .sidebar-card { padding: 10px 12px 10px; max-height: 52dvh; }
  .sidebar-header .brand-artwork { width: 26px; height: 26px; }
  .sidebar-header { gap: 8px; padding-bottom: 8px; margin-bottom: 6px; }
  .sidebar-header .brand-logo-img { height: 18px; }
  .sidebar-content { gap: 8px; }
  .qr-frame canvas { max-width: 100px; max-height: 100px; }
  .qr-frame { padding: 6px; border-radius: 10px; }
  #code { font-size: 22px; letter-spacing: 4px; }
  #result { font-size: 14px; }
  #resultbox { padding: 6px 8px; }
  #spin { padding: 10px; font-size: 15px; }
  #tabletRegForm { gap: 6px; }
  #tabletRegForm input:not([type="checkbox"]),
  #tabletRegForm select { padding: 8px 10px; font-size: 14px; border-radius: 10px; }
  .tablet-label { font-size: 9px; margin-bottom: 3px; letter-spacing: .7px; }
  .tablet-agb { padding: 8px 10px; gap: 8px; border-radius: 10px; }
  .tablet-agb-box { width: 18px; height: 18px; min-width: 18px; border-radius: 5px; }
  .tablet-agb-text { font-size: 11px; }
  .tablet-submit-btn { padding: 10px; font-size: 14px; border-radius: 10px; }
  .tablet-phone-row { gap: 6px; }
  #tabletRegForm .tablet-phone-row select { width: 80px; padding: 8px 22px 8px 8px; font-size: 13px; }
  .sidebar-url { display: none; }
}

/* Landscape phones (very short viewport) */
@media (max-height: 500px) and (orientation: landscape) {
  .screen-layout { flex-direction: row; }
  .wheel-area { flex: 1; height: 100dvh; }
  .sidebar-area {
    width: 280px;
    min-width: 240px;
    height: 100dvh;
    padding: 8px 8px 8px 0;
  }
  .sidebar-card { padding: 12px 14px 10px; overflow-y: auto; }
  .sidebar-header { padding-bottom: 8px; margin-bottom: 6px; }
  .sidebar-header .brand-artwork { width: 32px; height: 32px; margin: 0; }
  .sidebar-header .brand-logo-img { height: 20px; margin: 0; }
  .sidebar-content { gap: 8px; }
  .qr-frame canvas { max-width: 120px; max-height: 120px; }
  #code { font-size: 20px; }
  #spin { padding: 10px; font-size: 16px; }
  .sidebar-url { display: none; }
}

/* Watermark-Badge (Free Tier) */
.watermark-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-dark-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-modal);
  padding: 12px 20px 12px 14px;
  text-decoration: none;
  color: var(--color-text-light);
  z-index: 100;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: var(--shadow-purple);
}
.watermark-badge:hover { background: var(--color-purple-primary); transform: translateY(-2px); }
.watermark-badge-icon { width: 28px; height: 28px; flex-shrink: 0; }
.watermark-badge-body { display: flex; flex-direction: column; gap: 3px; }
.watermark-badge-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-purple-muted);
  letter-spacing: .3px;
}
.watermark-badge-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-light);
  letter-spacing: .1px;
}
.watermark-badge-name span { color: var(--color-text-light); }

@media (max-width: 600px) {
  /* Auf Mobile: oben-links über dem Rad, weg von der Sidebar unten */
  .watermark-badge {
    top: var(--space-3);
    bottom: auto;
    left: var(--space-3);
    padding: 8px 12px 8px 9px;
    gap: 8px;
  }
  .watermark-badge-icon { width: 20px; height: 20px; }
  .watermark-badge-tagline { font-size: 10px; }
  .watermark-badge-name { font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .watermark-badge { display: none !important; }
}

/* Custom Screen Logo (Starter+) */
.custom-screen-logo {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* ===== ATTRACT MODE (Gewinn-Showcase) ===== */
.attract-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 20, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.attract-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.attract-inner {
  text-align: center;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.attract-cta {
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-family: var(--font-display);
}

.attract-prize {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #ffd700;
  text-shadow: 0 0 80px rgba(255,215,0,0.65), 0 0 30px rgba(255,215,0,0.4);
  line-height: 1.05;
  max-width: 95%;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
  font-family: var(--font-display);
  animation: prize-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes prize-pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.attract-code-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
}

.attract-code-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.attract-code {
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  line-height: 1;
}

/* ===== EMBED-MODUS (iframe) ===== */
.embed-mode .sidebar-header { display: none; }
.embed-mode .bg-wheel { display: none; }

/* ===== HELLES HINTERGRUNDBILD – Sidebar dunkler/opaker ===== */
/* Wird via JS (analyzeBgBrightness) gesetzt wenn Bildhelligkeit > 140/255 */
body.bg-is-light .sidebar-card {
  background: rgba(6, 6, 18, 0.88);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), -16px 0 60px rgba(0,0,0,.45);
}
body.bg-is-light .sidebar-header {
  border-bottom-color: rgba(255,255,255,.12);
}
