
.gluecksrad-wrap{
  margin: 18px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  user-select: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.gluecksrad-canvas-wrap{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.gluecksrad-canvas{
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.gluecksrad-pointer{
  position:absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid #000; /* black triangle pointing DOWN */
  z-index: 3;
}

.gluecksrad-pointer::after{
  content:'';
  position:absolute;
  left:-22px;
  top:-2px;
  width:0;
  height:0;
  border-left:22px solid transparent;
  border-right:22px solid transparent;
  border-bottom:38px solid #fff; /* white border */
  z-index:-1;
}




/* START button: red, text ~80% of button height */
.gluecksrad-start{
  width: min(520px, 92%);
  height: 76px;
  padding: 0 18px;
  font-size: 60px;          /* ~80% of 76px */
  line-height: 76px;
  font-weight: 1000;
  border: none;
  border-radius: 18px;
  background: #e4002b; /* rot */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  transition: transform .08s ease, filter .2s ease;
  text-align: center;
}

.gluecksrad-start:active{ transform: translateY(1px) scale(0.99); }
.gluecksrad-start.is-disabled,
.gluecksrad-start:disabled{
  cursor: not-allowed;
  filter: grayscale(0.15) opacity(0.75);
}

@media (max-width: 420px){
  .gluecksrad-start{
    height: 66px;
    line-height: 66px;
    font-size: 52px;
  }
}

.gluecksrad-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  z-index: 999999;
  padding: 18px;
}

.gluecksrad-modal.is-open{ display: flex; }

.gluecksrad-modal-content{
  width: min(820px, 96vw);
  max-height: min(86vh, 980px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  overflow: auto;
}

.gluecksrad-win-title{
  font-weight: 1000;
  letter-spacing: 0.06em;
  font-size: clamp(26px, 3.6vw, 44px);
  color: #111;
}

.gluecksrad-win-content{
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.25;
}

.gluecksrad-win-image{
  max-width: 100%;
  max-height: 62vh;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.gluecksrad-modal-hint{
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

.gluecksrad-win-ts{
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px;
  text-align: center;
}

.gluecksrad-error{
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff3f3;
  border: 1px solid #ffd0d0;
  color: #7a0012;
}

.gluecksrad-start{
  background:#e4002b !important;
}

/* Custom pointer image support */
.gluecksrad-pointer{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.gluecksrad-pointer.has-image{
  border: none !important;
  width: auto !important;
  height: auto !important;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
}
.gluecksrad-pointer.has-image::after{
  display:none !important;
}
.gluecksrad-pointer-img{
  display:none;
  width: 52px;
  height: 52px;
  object-fit: contain;
}
@media (max-width: 420px){
  .gluecksrad-pointer-img{ width:44px; height:44px; }
}

/* Selector mode: prevent any stray START buttons outside the loaded wheel */
body.gluecksrad-selector-mode .gluecksrad-start{
  display: none !important;
}
body.gluecksrad-selector-mode .gluecksrad-selector-wheel-container .gluecksrad-start,
body.gluecksrad-selector-mode .gluecksrad-selector-wheel-container .gluecksrad-wrap .gluecksrad-start{
  display: inline-flex !important;
}

/* Modern selector dropdown styling */
.gluecksrad-selector{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.gluecksrad-selector-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.gluecksrad-selector-row label{
  font-weight:600;
}
.gluecksrad-selector select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding:6px 32px 6px 10px;
  border-radius:8px;
  border:1px solid #cfd8dc;
  background:#ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size:14px;
  line-height:1.2;
  max-height:34px;
}
.gluecksrad-selector select:focus{
  outline:none;
  border-color:#ff0000;
  box-shadow:0 0 0 2px rgba(255,0,0,.15);
}
