/* Ödül / Ceza çarkı modal (soru ekranı üzerinde) */
body.occ-modal-open {
  overflow: hidden;
}

.occ-wheel-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 36, 71, 0.3);
  backdrop-filter: blur(8px);
  z-index: 1100;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.occ-wheel-modal.open {
  display: flex;
}

.occ-wheel-modal .wheel-dialog {
  width: min(100%, 760px);
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  border: 1px solid #d5e1f2;
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(18, 41, 84, 0.26);
  padding: 18px 30px 30px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

.occ-wheel-modal .wheel-dialog h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin: 6px 0 8px;
  font-weight: 900;
  color: #102b59;
}

.occ-wheel-modal .wheel-dialog p {
  margin: 0 0 14px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: #5a739a;
}

.occ-wheel-modal .wheel-wrap {
  position: relative;
  width: min(510px, 82vw);
  height: min(510px, 82vw);
  margin: 8px auto 18px;
}

.occ-wheel-modal .wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  width: 68px;
  height: 98px;
  background: radial-gradient(circle at 50% 26%, #ffd569 0 28%, #efb33b 29% 55%, #df9c1d 56% 100%);
  clip-path: polygon(50% 100%, 0 33%, 16% 33%, 16% 15%, 84% 15%, 84% 33%, 100% 33%);
  filter: drop-shadow(0 6px 10px rgba(120, 72, 0, 0.28));
  pointer-events: none;
}

.occ-wheel-modal .wheel-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 4.1s cubic-bezier(0.08, 0.8, 0.16, 1);
  transform-origin: center center;
  will-change: transform;
  border: 14px solid #e2a830;
  box-shadow: 0 16px 34px rgba(17, 42, 91, 0.15), inset 0 0 0 6px #f7d57a, inset 0 0 0 10px #c98a1b;
  overflow: hidden;
  background: #fff;
}

.occ-wheel-modal .wheel-rotor::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.occ-wheel-modal .wheel-rotor.reward {
  background: conic-gradient(
    from -90deg,
    #8fd14f 0deg 58deg,
    #fff 58deg 60deg,
    #41c1d4 60deg 118deg,
    #fff 118deg 120deg,
    #3c8fe8 120deg 178deg,
    #fff 178deg 180deg,
    #4383f1 180deg 238deg,
    #fff 238deg 240deg,
    #46b8c9 240deg 298deg,
    #fff 298deg 300deg,
    #49be62 300deg 358deg,
    #fff 358deg 360deg
  );
}

.occ-wheel-modal .wheel-rotor.penalty {
  background: conic-gradient(
    from -90deg,
    #ee3a35 0deg 58deg,
    #fff 58deg 60deg,
    #ff6c2f 60deg 118deg,
    #fff 118deg 120deg,
    #f9861d 120deg 178deg,
    #fff 178deg 180deg,
    #f0a121 180deg 238deg,
    #fff 238deg 240deg,
    #ecb835 240deg 298deg,
    #fff 298deg 300deg,
    #d5282d 300deg 358deg,
    #fff 358deg 360deg
  );
}

.occ-wheel-modal .wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 42% 35%, #fff 0%, #f1f3f7 55%, #e8ebf1 100%);
  border: 7px solid #dfaa32;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15), inset 0 0 0 3px #f7d97f;
  z-index: 8;
  cursor: pointer;
}

.occ-wheel-modal .wheel-center span {
  font-size: 28px;
  font-weight: 900;
  color: #112c5a;
  pointer-events: none;
}

.occ-wheel-modal .wheel-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.occ-wheel-modal .wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.38);
  font-weight: 900;
  transform-origin: center center;
}

.occ-wheel-modal .wheel-label .icon {
  display: block;
  font-size: 35px;
  line-height: 1;
  margin-bottom: 6px;
}

.occ-wheel-modal .wheel-label .txt {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  white-space: pre-line;
}

.occ-wheel-modal .wheel-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.occ-wheel-modal .wheel-btn {
  border-radius: 18px;
  border: 2px solid #2b67cc;
  background: #fff;
  color: #1d4fa9;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  min-width: 220px;
  box-shadow: 0 6px 14px rgba(17, 43, 88, 0.06);
}

.occ-wheel-modal .wheel-btn.primary {
  background: linear-gradient(180deg, #1bc64d 0%, #15a939 100%);
  border-color: #18aa3a;
  color: #fff;
}

.occ-wheel-modal .wheel-btn.close,
.occ-wheel-modal .wheel-btn.continue {
  min-width: 190px;
}

.occ-wheel-modal .wheel-btn.continue:not(:disabled) {
  background: linear-gradient(180deg, #2d6dda 0%, #1d4fa9 100%);
  border-color: #2b67cc;
  color: #fff;
}

.occ-wheel-modal .wheel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.occ-wheel-modal .spin-result {
  min-height: 28px;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
  color: #14305f;
}

@media (max-width: 768px) {
  .occ-wheel-modal {
    padding: 12px;
    align-items: flex-start;
  }

  .occ-wheel-modal .wheel-dialog {
    width: 100%;
    max-width: calc(100vw - 24px);
    margin: auto;
    padding: 16px 16px 22px;
    border-radius: 24px;
  }

  .occ-wheel-modal .wheel-dialog h2 {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 6px;
  }

  .occ-wheel-modal .wheel-dialog p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .occ-wheel-modal .wheel-wrap {
    width: min(86vw, 420px);
    height: min(86vw, 420px);
    max-width: 100%;
    margin: 6px auto 14px;
  }

  .occ-wheel-modal .wheel-pointer {
    width: 50px;
    height: 72px;
    top: -2px;
  }

  .occ-wheel-modal .wheel-rotor {
    border-width: 10px;
  }

  .occ-wheel-modal .wheel-center {
    width: min(96px, 22vw);
    height: min(96px, 22vw);
    border-width: 5px;
  }

  .occ-wheel-modal .wheel-center span {
    font-size: clamp(17px, 4vw, 22px);
  }

  .occ-wheel-modal .wheel-label {
    width: min(116px, 26vw);
  }

  .occ-wheel-modal .wheel-label .icon {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 4px;
  }

  .occ-wheel-modal .wheel-label .txt {
    font-size: clamp(13px, 3.2vw, 16px);
    line-height: 1.15;
  }

  .occ-wheel-modal .wheel-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .occ-wheel-modal .wheel-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 14px;
  }

  .occ-wheel-modal .spin-result {
    font-size: 16px;
    line-height: 1.35;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .occ-wheel-modal {
    padding: 10px;
  }

  .occ-wheel-modal .wheel-dialog {
    max-width: calc(100vw - 20px);
    padding: 14px 14px 18px;
    border-radius: 20px;
  }

  .occ-wheel-modal .wheel-dialog h2 {
    font-size: 26px;
  }

  .occ-wheel-modal .wheel-dialog p {
    font-size: 15px;
  }

  .occ-wheel-modal .wheel-wrap {
    width: min(90vw, 340px);
    height: min(90vw, 340px);
    margin-bottom: 12px;
  }

  .occ-wheel-modal .wheel-pointer {
    width: 42px;
    height: 62px;
  }

  .occ-wheel-modal .wheel-center {
    width: min(80px, 24vw);
    height: min(80px, 24vw);
  }

  .occ-wheel-modal .wheel-center span {
    font-size: 16px;
  }

  .occ-wheel-modal .wheel-label {
    width: min(100px, 28vw);
  }

  .occ-wheel-modal .wheel-label .txt {
    font-size: 12px;
  }
}
