/* ============================================================
   style.css — עיצוב חדש (פריסה שונה מהמקור)
   צבעי גופן לפי אתר המקור: כחול נייבי + זהב
   ============================================================ */

:root{
  --bg0:#020a1c;
  --bg1:#04122d;
  --line:rgba(128,170,242,.28);
  --line2:rgba(165,200,255,.38);
  --txt:#d2ddf5;
  --muted:#9aadc8;
  --ink:#17110a;
  --navy:#152344;
  --gold:#e8ba54;
  --gold-soft:#f7dc95;
  --amber:#ffcd8c;
  --green:#8cefb2;
  --gold-grad:linear-gradient(180deg,#fffbee 0%,#ffefb8 20%,#f7d07a 44%,#dfa841 62%,#f8e4a8 80%,#ddb055 100%);
  --btn-gold:linear-gradient(180deg,#f9e0a6 0%,#f3ce77 12%,#efc264 32%,#e8ba54 54%,#dea13e 80%,#c88c2d 100%);
  --r-lg:20px;
  --r-md:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Heebo','Assistant','Rubik','Segoe UI',system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(1200px 700px at 78% -10%,#1d5aa2 0%,transparent 55%),
    radial-gradient(1000px 600px at 8% 12%,#10407f 0%,transparent 55%),
    linear-gradient(180deg,#05173e 0%,#020c22 55%,#04122d 100%);
  color:var(--txt);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* ---------------- רקע דקורטיבי ---------------- */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5}
.orb-a{width:520px;height:520px;top:-160px;left:-120px;background:#1d5aa2}
.orb-b{width:440px;height:440px;top:22%;right:-140px;background:#0b2a60;opacity:.6}
.orb-c{width:560px;height:560px;bottom:-240px;left:24%;background:#4a2c08;opacity:.25}
.grid-line{
  position:absolute;inset:0;
  background-image:linear-gradient(rgba(160,190,255,.045) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(160,190,255,.045) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 8%,#000 30%,transparent 78%);
}

.page{position:relative;z-index:1}
.wrap{max-width:1080px;margin:0 auto;padding:44px 20px 28px}

/* ---------------- כותרת ---------------- */
.hero{text-align:center;margin-bottom:38px;animation:rise .8s ease both}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 18px;border-radius:999px;font-weight:900;letter-spacing:.16em;
  font-size:14px;color:var(--gold-soft);
  border:1px solid rgba(233,192,113,.55);
  background:rgba(233,178,74,.1);
  box-shadow:0 0 18px rgba(233,178,74,.25);
  margin-bottom:18px;
}
.badge svg{width:15px;height:15px;color:var(--gold)}
.title{
  font-size:clamp(28px,5vw,46px);font-weight:900;line-height:1.22;
}
.title span,
.title .grad{
  display:block;
  background:var(--gold-grad);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 0 rgba(78,40,0,.65)) drop-shadow(0 6px 16px rgba(0,0,0,.6));
}
.sub{
  margin-top:14px;color:#d2ddf5;font-size:clamp(14px,2.4vw,17px);line-height:1.7;
  text-shadow:0 1px 3px rgba(0,0,0,.8);
}

/* ---------------- לוחות כלליים ---------------- */
.panel{
  position:relative;
  background:linear-gradient(180deg,rgba(22,54,116,.4) 0%,rgba(8,26,64,.88) 100%);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:inset 0 1px 0 rgba(206,226,255,.12),0 18px 60px rgba(0,0,0,.4);
  padding:26px;
  animation:rise .8s ease both;
}

/* ---------------- במה ---------------- */
.stage{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  gap:22px;align-items:stretch;margin-bottom:26px;
}

/* --- טופס --- */
.form-panel{display:flex;flex-direction:column;gap:16px;padding:30px}
.panel-tag{font-size:13px;font-weight:700;color:var(--gold-soft);letter-spacing:.06em}
.field{
  display:flex;align-items:center;gap:0;
  background:linear-gradient(180deg,#e5e2e2 0%,#f8f4f2 18%,#f4efeb 100%);
  border-radius:999px;overflow:hidden;
  box-shadow:inset 0 2px 3px rgba(0,0,0,.32),0 1px 3px rgba(0,0,0,.35);
}
.field-ico{
  flex:none;display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;color:var(--gold-soft);
  background:linear-gradient(150deg,#3763da 0%,#1b43b0 50%,#0d2879 100%);
}
.field-ico svg{width:24px;height:24px}
.field input{
  flex:1;background:none;border:0;outline:0;min-width:0;
  font-family:inherit;font-size:16px;font-weight:700;color:var(--navy);
  text-align:center;padding:13px 8px;direction:rtl;
}
.field input::placeholder{color:#8d95a6;font-weight:500}
.field:focus-within{box-shadow:inset 0 2px 3px rgba(0,0,0,.28),0 0 0 3px rgba(238,195,108,.5)}
.field input:disabled{opacity:.55}

.btn-cta{
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:var(--btn-gold);color:var(--ink);
  border:0;border-radius:999px;
  font-family:inherit;font-size:17px;font-weight:800;
  padding:14px 22px;cursor:pointer;
  box-shadow:inset 0 2px 0 rgba(255,252,232,.9),inset 0 -2px 2px rgba(120,74,8,.4),
             0 4px 14px rgba(0,0,0,.5),0 0 18px rgba(233,178,74,.3);
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s,filter .18s;
}
.btn-cta:hover{filter:brightness(1.06) saturate(1.04)}
.btn-cta:active{transform:translateY(1px) scale(.995)}
.btn-cta:disabled{cursor:not-allowed;filter:grayscale(.4) brightness(.88);transform:none}
.btn-ico{width:19px;height:19px;color:#2b1e05}

.hintbar{display:flex;align-items:flex-start;gap:10px;flex-direction:column;min-height:20px}
.hintbar .note{font-size:13px;color:#c2cee8;font-weight:500}
.msg{
  font-size:14px;font-weight:700;color:var(--amber);opacity:0;
  max-height:0;overflow:hidden;
  transition:opacity .3s,max-height .3s;
}
.msg.show{opacity:1;max-height:120px}
.msg.ok{color:var(--green)}
.trust{
  font-size:12.5px;color:#9aadc8;line-height:1.6;
  border-top:1px dashed var(--line);padding-top:13px;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}

/* --- גלגל --- */
.wheel-panel{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:26px 16px;overflow:hidden;
}
.deco{position:absolute;pointer-events:none}
.ring{color:rgba(233,192,113,.4);width:120px;height:120px}
.ring-1{top:-30px;right:-26px;animation:spin 14s linear infinite}
.ring-2{bottom:-26px;left:-30px;color:rgba(128,170,242,.4);animation:spin 18s linear infinite reverse}
.coin{width:56px;height:56px;color:var(--gold)}
.coin-t{top:14px;left:18px;animation:floaty 5s ease-in-out infinite}
.coin-b{bottom:10px;right:16px;color:rgba(128,170,242,.8);animation:floaty 6s ease-in-out infinite reverse}

.wheel-box{position:relative;width:min(78vw,340px);aspect-ratio:1;filter:drop-shadow(0 14px 40px rgba(0,0,0,.55))}
.wheel{width:100%;height:100%;display:block}
.wheel .wlabel{
  font-family:'Heebo','Assistant',system-ui,sans-serif;letter-spacing:.01em;
  direction:ltr;unicode-bidi:isolate;
  paint-order:stroke;stroke:rgba(3,10,28,.28);stroke-width:.6px;
}
.wheel-hint{margin-top:16px;font-size:13px;color:#c2cee8;text-shadow:0 1px 2px rgba(0,0,0,.7)}

/* ---------------- סרט "מודה" ---------------- */
.thanks{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:16px 26px;margin-bottom:26px;text-align:center;
  border:1px solid rgba(233,192,113,.5);
}
.thanks span{
  font-size:clamp(16px,3vw,21px);font-weight:900;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.7));
}
.lau{width:38px;height:18px;color:var(--gold);flex:none;opacity:.95}
.lau.flip{transform:scaleX(-1)}

/* ---------------- פרסים ---------------- */
.prizes{margin-bottom:26px}
.sec-title{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:22px}
.sec-title span{
  font-size:clamp(20px,3.4vw,28px);font-weight:900;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.65));
}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:14px}
.card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:linear-gradient(180deg,rgba(24,56,120,.45) 0%,rgba(7,22,54,.8) 100%);
  border:1px solid var(--line);border-radius:var(--r-md);
  padding:14px 10px 12px;text-align:center;
  box-shadow:inset 0 1px 0 rgba(200,224,255,.1);
  transition:transform .2s,border-color .2s;
}
.card:hover{transform:translateY(-4px);border-color:rgba(233,192,113,.6)}
.card b{
  font-size:15px;font-weight:800;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  min-height:38px;display:flex;align-items:center;justify-content:center;line-height:1.2;
}
.card .art{
  height:66px;display:flex;align-items:center;justify-content:center;
}
.card .art img{max-height:66px;max-width:100%;object-fit:contain;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.6))}
.card .art svg{width:54px;height:54px}
.row{display:contents}

/* ---------------- כללים ---------------- */
.rules{margin-bottom:26px}
.rules-title{
  font-size:clamp(18px,3vw,24px);font-weight:900;margin-bottom:18px;text-align:center;
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
.rules ol{list-style:none;display:flex;flex-direction:column;gap:12px;text-align:right}
.rules li{display:flex;gap:14px;align-items:flex-start;font-size:15px;line-height:1.75;color:#cfdaf2}
.rules li::before{
  flex:none;width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:900;color:var(--navy);
  background:var(--btn-gold);
  box-shadow:inset 0 1px 0 rgba(255,252,232,.8),0 3px 8px rgba(0,0,0,.4);
  margin-top:2px;
}
.rules li:first-child::before{content:"1"}
.rules li:nth-child(2)::before{content:"2"}
.rules li:nth-child(3)::before{content:"3"}
.rules li:nth-child(4)::before{content:"4"}
.rules li:nth-child(5)::before{content:"5"}

/* ---------------- סרט תודה ---------------- */
.ribbon{position:relative;width:min(92vw,412px);height:46px;margin:0 auto 30px}
.rb-band{
  position:absolute;inset:0;display:grid;place-items:center;
  background:var(--btn-gold);
  clip-path:polygon(0 0,100% 0,calc(100% - 20px) 50%,100% 100%,0 100%,20px 50%);
  box-shadow:0 5px 16px rgba(0,0,0,.5);
}
.rb-band::after{content:"";position:absolute;inset:4px 24px;border:1px solid rgba(122,76,10,.4);
  border-radius:2px;pointer-events:none}
.rb-band b{
  position:relative;font-weight:800;font-size:18px;line-height:1;color:#33230a;
  text-shadow:0 1px 0 rgba(255,247,214,.55);
}
.rb-tail{display:none}

/* ---------------- רגליים ---------------- */
.legal{text-align:center;color:#7f93b3;font-size:13px;line-height:1.9;margin-top:8px}

/* ---------------- מודל ---------------- */
.modal{
  position:fixed;inset:0;z-index:50;
  display:flex;align-items:center;justify-content:center;
  background:rgba(2,7,20,.8);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  padding:22px;animation:fadein .22s ease both;
}
.modal[hidden]{display:none}
.modal-card{
  position:relative;width:min(92vw,420px);padding:26px 24px 22px;text-align:center;
  border-radius:22px;
  background:radial-gradient(120% 80% at 50% 0%,#164379 0%,rgba(22,67,121,0) 62%),
             linear-gradient(180deg,#0a1d47 0%,#061431 100%);
  border:1px solid rgba(238,195,108,.42);
  box-shadow:0 26px 70px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,240,200,.18);
  animation:pop .3s cubic-bezier(.2,1.4,.5,1);
  overflow:hidden;
}
.modal-glow{
  position:absolute;left:50%;top:-46px;transform:translateX(-50%);
  width:230px;height:230px;pointer-events:none;
  background:radial-gradient(circle,rgba(240,205,126,.34) 0%,rgba(240,205,126,0) 68%);
}
.modal-x{
  position:absolute;top:8px;left:10px;width:32px;height:32px;border:0;border-radius:50%;
  background:transparent;color:#a8b7d4;font-size:26px;line-height:1;cursor:pointer;z-index:2;
}
.modal-x:hover{color:#f0cd7e}
.modal-art{
  position:relative;margin:8px 0 12px;height:110px;
  display:flex;align-items:center;justify-content:center;
}
.modal-art img{max-height:110px;max-width:150px;object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.6))}
.modal-art svg{width:96px;height:96px}
.modal-title{
  font-size:26px;font-weight:900;margin-bottom:10px;
  background:linear-gradient(180deg,#fff6da 0%,#f0cd7e 46%,#cf9333 100%);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
.modal-msg{font-size:15px;line-height:1.7;color:#cfdaf0;margin-bottom:18px}
.modal-msg b{color:#f4d68f}
.modal-ok{
  width:100%;height:46px;border:0;border-radius:23px;cursor:pointer;font-family:inherit;
  font-size:17px;font-weight:800;color:var(--ink);
  background:var(--btn-gold);
  box-shadow:inset 0 1px 0 rgba(255,252,232,.9),0 6px 18px rgba(0,0,0,.45);
  transition:filter .18s;
}
.modal-ok:hover{filter:brightness(1.06)}
.modal-ok:active{transform:scale(.98)}

/* ---------------- קונפטי ---------------- */
.confetti{position:fixed;inset:0;z-index:60;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;display:block;mix-blend-mode:screen;animation:cfall linear forwards}

/* ---------------- אנימציות ---------------- */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes pop{from{transform:translateY(14px) scale(.94);opacity:0}to{transform:none;opacity:1}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes blink{0%,100%{opacity:1}52%{opacity:.4}}
@keyframes cfall{
  0%{transform:translateY(-6vh) rotate(0deg);opacity:1}
  100%{transform:translateY(108vh) rotate(720deg);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* ============================================================
   מובייל — עיצוב מותאם (טלפון)
   ============================================================ */
@media (max-width:860px){
  body{-webkit-tap-highlight-color:transparent}
  .wrap{padding:26px 14px 22px}
  .hero{margin-bottom:24px}
  .badge{margin-bottom:12px;font-size:12px;padding:5px 14px;letter-spacing:.12em}
  .title{font-size:clamp(24px,7.2vw,32px);line-height:1.3}
  .sub{margin-top:10px;font-size:14px;line-height:1.65}
  .title span,.title .grad{filter:drop-shadow(0 2px 0 rgba(78,40,0,.65))}

  /* גלגל קודם, אחר כך טופס */
  .stage{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}
  .wheel-panel{order:1;padding:20px 12px 18px;border-radius:var(--r-md)}
  .form-panel{order:2;padding:20px 16px;gap:14px;border-radius:var(--r-md)}
  .wheel-box{width:min(76vw,300px)}
  .wheel-hint{margin-top:12px;font-size:12px}
  .ring{width:90px;height:90px}
  .ring-1{top:-24px;right:-20px}
  .ring-2{bottom:-24px;left:-20px}
  .coin{width:44px;height:44px}
  .coin-t{top:10px;left:12px}
  .coin-b{bottom:8px;right:12px}

  .panel-tag{font-size:12px}
  .field input{font-size:15px;padding:13px 6px}
  .field-ico{width:44px;height:44px}
  .btn-cta{font-size:16px;padding:14px 18px}

  .thanks{padding:13px 16px;margin-bottom:20px;border-radius:var(--r-md)}
  .thanks span{font-size:17px}
  .lau{width:28px;height:13px}

  .prizes{margin-bottom:20px}
  .sec-title{margin-bottom:16px;gap:10px}
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .card{padding:12px 8px 10px;border-radius:12px}
  .card b{font-size:14px;min-height:34px}
  .card .art{height:56px}
  .card .art img{max-height:56px}
  .card .art svg{width:44px;height:44px}

  .rules{margin-bottom:20px;border-radius:var(--r-md);padding:20px 16px}
  .rules-title{font-size:18px;margin-bottom:14px}
  .rules li{font-size:13.5px;gap:10px}
  .rules li::before{width:26px;height:26px;font-size:13px;margin-top:2px}

  .ribbon{width:min(92vw,412px);height:42px;margin-bottom:24px}
  .rb-band b{font-size:15px}

  .legal{font-size:11.5px;line-height:1.8}

  .modal-card{padding:24px 18px 20px}
  .modal-art{height:92px}
  .modal-art img{max-height:92px}
  .modal-title{font-size:22px}
  .modal-msg{font-size:14px}
  .msg{font-size:13px}
  .trust{font-size:11.5px;padding-top:12px}
}
@media (max-width:370px){
  .grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .title{font-size:22px}
  .ribbon{width:96vw}
}
