/* Desktop balance pass: keep prize photography more visible by reducing the label cards,
   icon disks and center cap on wider screens as well. */
@media (min-width: 601px) {
  .wheel-modal-premium {
    width: min(92vw, 680px) !important;
    padding: 26px 28px 24px !important;
  }
  .wheel-modal-premium h3 {
    margin-bottom: 6px !important;
  }
  .wheel-modal-premium .wheel-lead {
    max-width: 500px;
    margin: 0 auto 10px !important;
  }
  .wheel-modal-premium .wheel-wrap-premium {
    width: min(410px, 66vw) !important;
    margin: 14px auto 16px !important;
  }
  .wheel-modal-premium .wheel-visual-premium { border-width: 6px !important; }
  .wheel-modal-premium .wheel-divider { width: 5px !important; margin-left: -2.5px !important; }
  .wheel-modal-premium .wheel-segment-label {
    width: 70px !important;
    min-width: 0 !important;
    max-width: 70px !important;
    min-height: 70px !important;
    padding: 7px 5px 7px !important;
    border-radius: 999px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 5px 16px rgba(13,21,30,.10) !important;
  }
  .wheel-modal-premium .wheel-segment-label strong {
    font-size: 9.5px !important;
    line-height: 1.02 !important;
    letter-spacing: -.028em !important;
  }
  .wheel-modal-premium .wheel-segment-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    margin: 0 auto 1px !important;
    background: transparent !important;
    color: #dc202d !important;
    box-shadow: none !important;
  }
  .wheel-modal-premium .wheel-segment-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
  }
  .wheel-modal-premium .wheel-center {
    width: 106px !important;
    height: 106px !important;
    padding: 12px !important;
    border-width: 5px !important;
  }
  .wheel-modal-premium .wheel-spin {
    width: min(100%, 450px) !important;
    min-height: 56px;
  }
  .wheel-modal-premium.wheel-done .wheel-wrap-premium {
    width: min(235px, 42vw) !important;
    margin: 8px auto 10px !important;
  }
  .wheel-modal-premium.wheel-done .wheel-label-layer { display: none !important; }
  .wheel-modal-premium.wheel-done .wheel-center {
    width: 68px !important;
    height: 68px !important;
    padding: 8px !important;
    border-width: 4px !important;
  }
}


/* Stronger selection state: the chosen reward must be obvious at a glance. */
.wheel-modal-premium .wheel-segment-label {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, outline-color .16s ease;
}
.wheel-modal-premium .wheel-segment-label.is-active {
  border-color: rgba(237,28,36,.82) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(237,28,36,.14), 0 10px 24px rgba(237,28,36,.22) !important;
  transform: translate(-50%,-50%) scale(1.08) !important;
}
.wheel-modal-premium .wheel-segment-label.is-active .wheel-segment-icon,
.wheel-modal-premium .wheel-segment-label.is-winner .wheel-segment-icon {
  color: #e31b23 !important;
}
.wheel-modal-premium .wheel-segment-label.is-winner {
  border-color: #e31b23 !important;
  background: #fff !important;
  box-shadow: 0 0 0 5px rgba(227,27,35,.18), 0 14px 30px rgba(227,27,35,.28) !important;
  transform: translate(-50%,-50%) scale(1.12) !important;
}
.wheel-modal-premium .wheel-segment-label.is-winner strong { color: #111 !important; }
.wheel-modal-premium .wheel-segment.is-active,
.wheel-modal-premium .wheel-segment.is-winner {
  filter: saturate(1.1) brightness(1.04);
}
.wheel-modal-premium .wheel-segment.is-winner::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 4px rgba(227,27,35,.75), inset 0 0 30px rgba(227,27,35,.14);
  border-radius: 0;
  pointer-events: none;
}
.wheel-modal-premium .wheel-pointer,
.wheel-modal-premium .wheel-selector i {
  filter: drop-shadow(0 0 8px rgba(227,27,35,.35)) !important;
}

/* Emre Aku Market / Hediye Carki – Mobile V4.
   Added AFTER app.css. Desktop and the existing 5-prize photograph wheel stay unchanged.
   No database or reward API changes. */
@media (max-width: 600px) {
  .wheel-modal.wheel-modal-premium {
    width: calc(100vw - 20px) !important;
    max-width: 440px;
    max-height: calc(100vh - 22px);
    max-height: calc(100dvh - 22px);
    padding: 18px 16px max(18px, env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 23px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }
  /* Keep the close control reachable even when the prize result requires scrolling. */
  .wheel-modal-premium > .popup-close {
    position: sticky !important;
    float: right;
    top: 2px !important;
    right: auto !important;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: -4px -2px -40px 0;
    border-radius: 11px;
    background: #f1f3f5 !important;
    color: #39414b !important;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
  }
  .wheel-modal-premium .wheel-topline {
    font-size: 10px !important;
    letter-spacing: .18em;
    padding: 0 42px;
    margin: 2px 0 5px !important;
  }
  .wheel-modal-premium h3 {
    font-size: clamp(25px, 7vw, 30px) !important;
    line-height: 1.12 !important;
    margin: 0 44px 7px !important;
    letter-spacing: -.035em;
  }
  .wheel-modal-premium .wheel-lead {
    font-size: 12px !important;
    line-height: 1.38 !important;
    margin: 0 auto 9px !important;
  }
  /* This is intentionally smaller than 88vw: five slices need visible photography. */
  .wheel-modal-premium .wheel-wrap-premium {
    width: min(310px, calc(100vw - 64px)) !important;
    max-width: 100%;
    margin: 12px auto 15px !important;
    aspect-ratio: 1;
    transition: width .24s ease, margin .24s ease;
  }
  .wheel-modal-premium .wheel-visual-premium {border-width: 6px !important;}
  .wheel-modal-premium .wheel-divider {width: 5px !important; margin-left: -2.5px !important;}
  .wheel-modal-premium .wheel-segment-label {
    box-sizing: border-box;
    width: 56px !important;
    min-width: 0 !important;
    max-width: 56px !important;
    min-height: 56px !important;
    padding: 5px 3px 5px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.93) !important;
    background: rgba(255,255,255,.94) !important;
    color: #171a1f !important;
    box-shadow: 0 3px 12px rgba(8,15,23,.10) !important;
    backdrop-filter: blur(4px);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
  }
  .wheel-modal-premium .wheel-segment-icon {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 auto 1px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #dc202d !important;
    box-shadow: none !important;
  }
  .wheel-modal-premium .wheel-segment-icon svg {
    display: block;
    width: 15px !important;
    height: 15px !important;
    min-width: 0 !important;
    max-width: 15px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2.4 !important;
  }
  .wheel-modal-premium .wheel-segment-label strong {
    display: block;
    font-size: 8.4px !important;
    font-weight: 800;
    line-height: 1.02 !important;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    hyphens: manual;
  }
  .wheel-modal-premium .wheel-center {
    width: 84px !important;
    height: 84px !important;
    padding: 9px !important;
    border: 4px solid #fff !important;
    z-index: 22;
  }
  .wheel-modal-premium .wheel-spin {
    width: min(100%, 360px) !important;
    min-height: 50px;
    padding: 12px 18px !important;
    font-size: 15px !important;
    margin: 0 auto !important;
  }
  .wheel-modal-premium .wheel-status {font-size: 11px !important; margin: 6px auto 0 !important;}
  .wheel-modal-premium .wheel-result-panel {max-width:100%;margin:8px auto 0 !important;}
  .wheel-modal-premium .wheel-result-win {padding: 14px 13px !important; border-radius: 15px;}
  .wheel-modal-premium .wheel-result-summary {grid-template-columns: 42px minmax(0,1fr);gap: 10px; margin-bottom: 11px;}
  .wheel-modal-premium .wheel-result-badge {width: 42px !important; height: 42px !important;}
  .wheel-modal-premium .wheel-result-badge svg {width: 23px !important;height: 23px !important;}
  .wheel-modal-premium .wheel-result-copy strong {font-size: 18px !important;line-height:1.15;}
  .wheel-modal-premium .wheel-code-box code {font-size: clamp(12px, 3.6vw, 14px) !important;letter-spacing:.02em;overflow-wrap:anywhere;white-space:normal;min-width:0;}
  .wheel-modal-premium .wheel-result-grid {grid-template-columns: minmax(0,1fr) !important;gap: 12px !important;}
  .wheel-modal-premium .wheel-code-box, .wheel-modal-premium .wheel-plate-box {height: 49px !important;}
  .wheel-modal-premium .wheel-plate-box input {font-size: 16px !important;}
  /* The coupon is now the priority. An oversized disabled spin button must not stay. */
  .wheel-modal-premium.wheel-done .wheel-topline {margin-bottom: 3px !important;}
  .wheel-modal-premium.wheel-done h3 {font-size: 24px !important;margin-bottom: 3px !important;}
  .wheel-modal-premium.wheel-done .wheel-lead {display: none !important;}
  .wheel-modal-premium.wheel-done .wheel-wrap-premium {
    width: min(165px, 44vw) !important;
    margin: 7px auto 9px !important;
  }
  /* Prize name and code appear in the result: miniature wheel remains photographic. */
  .wheel-modal-premium.wheel-done .wheel-label-layer {display: none !important;}
  .wheel-modal-premium.wheel-done .wheel-center {width: 52px !important;height: 52px !important;padding: 5px !important;border-width:3px !important;}
  .wheel-modal-premium.wheel-done .wheel-spin {display:none !important;}
  .wheel-modal-premium.wheel-done .wheel-status {margin:0 auto 3px !important;font-size: 11px !important;}
  .wheel-modal-premium.wheel-done .wheel-result-panel {margin: 3px auto 0 !important;}
  .wheel-modal-premium.wheel-done .wheel-terms {margin-top: 9px !important;}
}
@media (max-width: 359px) {
  .wheel-modal-premium .wheel-wrap-premium {width: min(275px, calc(100vw - 58px)) !important;}
  .wheel-modal-premium .wheel-segment-label {width: 50px !important;max-width:50px !important;min-height:50px !important;padding:4px 2px !important;}
  .wheel-modal-premium .wheel-segment-icon {width: 17px !important;height: 17px !important;min-width:17px !important;}
  .wheel-modal-premium .wheel-segment-label strong {font-size: 7.8px !important;}
  .wheel-modal-premium .wheel-center {width: 73px !important;height:73px !important;}
}


/* V8 – RED BADGES NEAR HUB.
   Compacts the five badges, moves them inward without blocking the hub,
   and keeps the winning badge visually distinctive. The prize images,
   spin API, coupon flow and layout of the rest of the website are unchanged.
*/
.wheel-modal-premium .wheel-segment-label,
.wheel-modal-premium .wheel-segment-label.is-active,
.wheel-modal-premium .wheel-segment-label.is-winner {
  box-sizing: border-box !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: #e31b23 !important;
  border: 2px solid #fff !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.wheel-modal-premium .wheel-segment-label strong,
.wheel-modal-premium .wheel-segment-label.is-winner strong {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(70,0,0,.1) !important;
}
.wheel-modal-premium .wheel-segment-icon,
.wheel-modal-premium .wheel-segment-label.is-active .wheel-segment-icon,
.wheel-modal-premium .wheel-segment-label.is-winner .wheel-segment-icon {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}
.wheel-modal-premium .wheel-segment-icon svg {
  fill: none !important;
  stroke: currentColor !important;
}
.wheel-modal-premium .wheel-segment-label.is-active {
  background: #f42b36 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 4px rgba(227,27,35,.30), 0 7px 18px rgba(130,0,0,.38) !important;
  transform: translate(-50%,-50%) scale(1.08) !important;
}
.wheel-modal-premium .wheel-segment-label.is-winner {
  background: #ed1828 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 0 0 5px rgba(227,27,35,.48), 0 0 0 9px rgba(255,255,255,.82), 0 12px 24px rgba(165,0,12,.4) !important;
  transform: translate(-50%,-50%) scale(1.10) !important;
  z-index: 17 !important;
}
.wheel-modal-premium .wheel-segment.is-winner::after {
  background: rgba(227,27,35,.24) !important;
}
/* Increase the actual logo artwork instead of the white center cap. */
.wheel-modal-premium .wheel-center img {
  transform: scale(1.15);
  transform-origin: center;
}
@media (min-width: 601px) {
  .wheel-modal-premium .wheel-segment-label {
    width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    padding: 5px 3px !important;
    gap: 1px !important;
    box-shadow: 0 5px 14px rgba(80,0,0,.25) !important;
  }
  .wheel-modal-premium .wheel-segment-label strong {
    font-size: 8.6px !important;
    line-height: 1.02 !important;
  }
  .wheel-modal-premium .wheel-segment-icon {
    height: 19px !important;
    width: 19px !important;
    min-height: 19px !important;
    min-width: 19px !important;
  }
  .wheel-modal-premium .wheel-segment-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  .wheel-modal-premium .wheel-center {
    padding: 7px !important;
  }
}
@media (max-width: 600px) {
  .wheel-modal-premium .wheel-segment-label {
    left: var(--wheel-mobile-left) !important;
    top: var(--wheel-mobile-top) !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    padding: 3px 2px !important;
    gap: 0 !important;
    box-shadow: 0 3px 10px rgba(80,0,0,.23) !important;
  }
  .wheel-modal-premium .wheel-segment-label strong {
    font-size: 7.1px !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
  }
  .wheel-modal-premium .wheel-segment-icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    margin: 0 auto 1px !important;
  }
  .wheel-modal-premium .wheel-segment-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  .wheel-modal-premium .wheel-center {
    padding: 4px !important;
  }
}
@media (max-width: 359px) {
  .wheel-modal-premium .wheel-segment-label {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
  }
  .wheel-modal-premium .wheel-segment-label strong {font-size: 6.7px !important;}
  .wheel-modal-premium .wheel-segment-icon {width: 14px !important;height: 14px !important;min-width: 14px !important;}
}
