:root {
  --advent-gold: #d6a15f;
  --advent-deep: #2f5143;
  --advent-soft: #fff4eb;
  --advent-rose: #f7d3c1;
  --advent-mint: #d9efe5;
  --advent-border: rgba(214, 111, 92, 0.16);
}

.page--gewinnspiel .page-main,
.page--adventskalendar .page-main {
  max-width: 1180px;
}

.advent-hero {
  background: linear-gradient(120deg, rgba(255, 210, 196, 0.4), rgba(199, 227, 207, 0.3)), #fff;
  border: 1px solid var(--advent-border);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 30px 80px rgba(47, 81, 67, 0.08);
  display: grid;
  gap: 14px;
}

.advent-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(214, 111, 92, 0.16);
  color: #7f3b2b;
  font-weight: 600;
  width: fit-content;
}

.advent-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.advent-hero p {
  margin: 0;
  max-width: 76ch;
  color: var(--color-muted);
}

.advent-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.advent-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--advent-border);
  box-shadow: 0 14px 32px rgba(47, 81, 67, 0.08);
  display: grid;
  gap: 4px;
}

.advent-stat strong {
  font-size: 1.25rem;
}

.advent-card {
  border-radius: 22px;
  border: 1px solid var(--advent-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 60px rgba(47, 81, 67, 0.08);
}

.draw-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.95fr;
  align-items: start;
}

@media (max-width: 980px) {
  .draw-grid {
    grid-template-columns: 1fr;
  }
}

.wheel-card {
  padding: clamp(14px, 3vw, 22px);
}

.wheel-shell {
  position: relative;
  display: grid;
  place-items: center;
}

.wheel__pin {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 16px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid #b85a49;
  border-radius: 6px;
  z-index: 4;
  box-shadow: 0 8px 18px rgba(47, 81, 67, 0.2);
}

.wheel__pin::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #b85a49;
}

.wheel {
  --rotation: 0deg;
  --segment-count: 8;
  width: min(520px, 88vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 12px solid #fff8f2;
  background: var(--wheel-gradient, conic-gradient(#f7d3c1, #d9efe5, #f7d3c1));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(47, 81, 67, 0.18);
  transform: rotate(var(--rotation));
  transition: transform 4.2s cubic-bezier(0.18, 0.74, 0.18, 1);
}

.wheel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from -90deg, rgba(255, 255, 255, 0.12) calc(360deg / var(--segment-count) - 1deg), transparent calc(360deg / var(--segment-count)));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.wheel__labels {
  position: absolute;
  inset: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3e2b24;
}

.wheel__labels span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(47, 81, 67, 0.12);
  white-space: nowrap;
  max-width: 160px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.wheel__center {
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe9dd, #ffd2c4);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  box-shadow: inset 0 14px 20px rgba(214, 111, 92, 0.12);
}

.wheel__center strong {
  font-size: 1.1rem;
  display: block;
}

.control-card {
  padding: clamp(16px, 3vw, 22px);
  display: grid;
  gap: 14px;
}

.location-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.location-toggle button {
  border: 1px solid var(--advent-border);
  background: rgba(199, 227, 207, 0.4);
  color: #2f5143;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-toggle button.is-active {
  background: linear-gradient(120deg, #ffd9c8, #d9efe5);
  border-color: #b85a49;
  color: #3e2b24;
  box-shadow: 0 10px 26px rgba(47, 81, 67, 0.14);
}

.input-row {
  display: grid;
  gap: 6px;
}

.input-row label {
  font-weight: 600;
}

.input-row input,
.input-row select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--advent-border);
  background: #fff;
  font-size: 1rem;
}

.draw-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, #d66f5c, #b85a49);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(214, 111, 92, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.draw-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.draw-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(214, 111, 92, 0.32);
}

.draw-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(47, 81, 67, 0.08);
  font-weight: 600;
}

.available-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--advent-border);
}

.available-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(199, 227, 207, 0.35);
  border-radius: 10px;
  font-weight: 600;
}

.status-message {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(214, 111, 92, 0.1);
  border: 1px solid var(--advent-border);
  color: #7f3b2b;
  font-weight: 600;
}

.status-message.is-success {
  background: rgba(199, 227, 207, 0.32);
  color: #2f5143;
}

.result-card,
.history-card {
  padding: clamp(14px, 3vw, 20px);
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.winner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(47, 81, 67, 0.08);
  font-weight: 700;
}

.history-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--advent-border);
  background: rgba(255, 255, 255, 0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(214, 111, 92, 0.18);
  color: #7f3b2b;
}

.badge.is-green {
  background: rgba(199, 227, 207, 0.35);
  color: #2f5143;
}

.calendar-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.calendar-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--advent-border);
  background: radial-gradient(circle at 20% 20%, rgba(255, 210, 196, 0.3), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(199, 227, 207, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(47, 81, 67, 0.08);
  display: grid;
  gap: 8px;
}

.calendar-card.is-filled {
  border-color: #b85a49;
  box-shadow: 0 24px 44px rgba(214, 111, 92, 0.16);
}

.calendar-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.calendar-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 4px;
}

.winner-line {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--advent-border);
}

.winner-line .winner-name {
  font-weight: 700;
}

.winner-line.is-pending {
  background: rgba(214, 111, 92, 0.08);
  color: var(--color-muted);
}

.page--adventskalendar .wow-item {
  opacity: 1 !important;
  transform: none !important;
}

.empty-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(214, 111, 92, 0.08);
  border: 1px dashed var(--advent-border);
  color: var(--color-muted);
}
