/* ========================================================= */

/*  Reset בסיסי */
* { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

/* ========================================================= */
/*  Body */
body {
  font-family: Ploni-Bold-AAA, sans-serif;
  background: #111;
  color: #fff;
}

/* ========================================================= */
/* 1) Wheel Popup Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 2) Wheel Modal */
.modal {
  position: relative;
  background: linear-gradient(to bottom, rgba(77,53,30,0.6) 0%, rgb(61,61,61) 100%);
  border-radius: 15px;
  padding: 16px;
  text-align: center;
  width: 300px;
  max-width: 90%;
}

/* 3) Close Button */
.close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

/* 4) Title Images */
.modal .title-img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

/* 5) Wheel Container */
.wheel-container {
  position: relative;
  width: 300px;
  max-width: 80vw;
  margin: 0 auto;
}
#wheel {
  width: 100%;
  display: block;
  transition: transform 5s cubic-bezier(0.33,1,0.68,1);
}
.pointer {
  position: absolute;
  top: 51%;
  left: 87%;
  transform: translate(-50%, -50%);
  width: 160px;
  pointer-events: none;
  z-index: 5;
}

@keyframes pointer-pulse {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.pointer.waiting {
  animation: pointer-pulse 0.5s ease-in-out ;
}

.spinlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 102%;
  pointer-events: none;
  animation: blink 1s infinite alternate;
  z-index: 2;
}
@keyframes blink { from {opacity:1;} to {opacity:0.5;} }

/* 6) Spin Button, Text & Hand Centering */
.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 7;
}
.spin-btn img {
  display: block;
  width: 80px;
}
.spin-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 8;
}
.hand {
  position: absolute;
  top: 105%;
  left: 90%;
  transform: translate(-50%, -50%);
  width: 40px;
  animation: handAnim 1s infinite;
  z-index: 9;
}
@keyframes handAnim {
  0%,100% {transform: translate(-50%,-50%) rotate(0deg);}  
  50%    {transform: translate(-50%,-50%) rotate(-10deg);}  
}

/* 7) Responsive */
@media (min-width: 768px) {
  .modal { width: 400px; }
  .wheel-container { width: 300px; }
}
@media (max-width: 767px) {
  .modal { width: 90%; padding: 8px; }
  .wheel-container { width: 80vw; }
  .spin-btn img { width: 60px; }
  .hand { width: 30px; }
}

/* ========================================================= */
/*  Reward Banner Popup (no overlay) */
#reward-banner {
  position:fixed; top:0; left:0;
  width:100vw; height:100vh;
  display:flex; justify-content:center; align-items:center;
  pointer-events:none; z-index:1000;
  overflow-y: hidden;
}
#reward-banner .modal {
  position:relative;
  width:100vw!important; max-width:none!important;
  margin:0; padding:0;
  background:none!important; box-shadow:none!important; border-radius:0!important;
  pointer-events:auto; overflow:visible;
  overflow-y: hidden;
}

/* 1) Rays Behind Banner */
#reward-banner #rays {
  position:absolute; top:18%; left:50%; transform:translateX(-50%);
  width:26%; pointer-events:none; z-index:-1;
  animation:spin-forever 5s linear infinite;
}
@keyframes spin-forever { from{transform:translateX(-50%) rotate(0deg);} to{transform:translateX(-50%) rotate(360deg);} }

/* 2) Banner Wrapper & Image */
.reward-banner { position:relative; width:100%; }
.reward-banner .title-img { width:100%; display:block; height:auto; margin:0; }

/* 3) Banner Text Container */
#reward-banner .banner-text {
  position:absolute; top:0; left:0;
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center;
  pointer-events:auto;
}

@font-face {
  font-family: 'Ploni-Bold-AAA';
  src: url('fonts/Ploni-Bold-AAA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 4) Text Items */
#reward-banner .banner-text h2 {
  margin-top: 155px;          /* ״מזל–טוב״ יורד למטה */
  font-size:4em; color:#fff;
}
#reward-banner .banner-text h3 {
  font-size:1em; color:#868686;
}
/* ---------------------------------- */
/* אפקט זהב תלת־ממדי לכיתוב הסכום */
#reward-banner .banner-text p {
  margin: 20px 0 0;
  font-size: 5em;
  /* גווני זהב גרדיאנט כפול */
  background: linear-gradient(
    to bottom,
    #ffef9f 0%,
    #ffcd38 20%,
    #e5a31f 50%,
    #b58306 80%,
    #7a5003 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* צללים מרובים ליצירת עומק */
  text-shadow:
    /* קצה בהיר מעל */
    0   -1px 1px rgba(255,255,255,0.8),
    /* צל ראשי מוקטן */
    0    1px 2px rgba(0,0,0,0.4),
    /* צל פנימי בולט */
    0    2px 4px rgba(0,0,0,0.3),
    /* צל שולי עדין */
    0    4px 6px rgba(0,0,0,0.2),
    /* הילה עדינה */
    0    0    8px rgba(255,238,170,0.5);
  
  /* מרכז טקסט */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 5) Claim Button at Bottom */
#reward-banner .banner-text button {
  margin-bottom: 10px;       /* ״מקבע״ את הכפתור קרוב לתחתית */
  background:#4caf50; color:#000;
  border:none; padding:8px 450px; font-size:1em; border-radius:4px;
  cursor:pointer;
  box-shadow:0 0 8px rgba(76,175,80,0.6),0 0 16px rgba(76,175,80,0.4),inset 0 0 4px rgba(255,255,255,0.3);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* 6) Close in Banner */
#reward-banner .close {
  position:absolute; top:8px; right:8px;
  font-size:28px; background:none; border:none; color:#fff; cursor:pointer; z-index:10;
}
/* ========================================= */

/* -------------------------------- */
/* Total Wins Box */
.total-box {
  margin: 16px auto 0;
  padding: 1px 100px;
  background: rgb(30, 30, 30);
  border: 2px solid #34332e;
  border-radius: 8px;
  font-size: 1.30em;
  font-weight: bold;
  color: #fd9e3f;
  text-align: center;
  width: fit-content;
}
/* ========================================================= */
/* Custom Font-face for Total Box Numbers */
@font-face {
  font-family: 'PloniMedium';
  src: url('Ploni-Medium-AAA.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ========================================================= */
/* Apply Custom Font to Total Box */
#total-box {
  font-family: 'PloniMedium', sans-serif;
}
/* Label above total amount */
#total-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#total-box::before {
  content: "סה\"כ זכו עד עכשיו";
  display: block;
  font-size: 0.58em;
  color: #bebebe;
  margin-bottom: -0.5em;
}

/* ––––––––––––––––––––––––––––––––––––––––––––– */
/* Replace ALL other mobile @media( max-width:767px ) blocks with this one */
@media (max-width: 767px) {
  /* Center the modal full-screen */
  .overlay .modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    height: auto !important;
    max-height: 100vh !important;
    padding: 8px !important;
  }

  /* Wheel container centered and full-width */
  .wheel-container {
    position: relative !important;
    width: 90vw !important;
    margin: 0 auto !important;
  }

  /* Wheel scales to container */
  #wheel {
    width: 100% !important;
    transition: transform 5s cubic-bezier(0.33,1,0.68,1) !important;
  }

  /* Spin-light sits perfectly centered */
  .spinlight {
    width: 100% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Pointer centered on the slice, with pulse animation */
  
  .pointer {
    position: absolute !important;
    width: 40vw !important;
    top: 50.7% !important;
    /* 100% = קצה ימני של wheel-container; פחות 5vw כדי למרכז על הפרוסה */
    left: calc(92% - 5vw) !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    /* משתמש באנימציית pointer-pulse שהגדרת מעל */
  }
  
  
}






@media (max-width: 767px) {
  .pointer.waiting {
    will-change: transform;
    animation: pointer-pulse 0.5s ease-in-out infinite !important;
  }
}
/* ––––––––––––––––––––––––––––––––––––––––––––– */

