/* ===== بازی هدف — استایل حرفه‌ای ===== */
.hoosh-main{
  --ink:#0B1220; --ink2:#16233d; --blue:#1D4ED8; --blue2:#3B82F6;
  --gold:#F5A623; --gold2:#FFC24D; --amber:#Ef8f00; --red:#E11D48; --green:#16A34A;
  --paper:#F6F8FC; --line:#E6EDF7; --muted:#7C8AA0;
  max-width:1080px; margin:0 auto; padding:12px 16px 52px;
}

.hoosh-crumb{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line);
  border-radius:999px; padding:8px 15px; font-size:13px; font-weight:700; color:var(--muted);
  box-shadow:0 6px 18px -12px rgba(11,18,32,.4)}
.hoosh-crumb a{color:var(--muted); text-decoration:none; transition:color .15s}
.hoosh-crumb a:hover{color:var(--blue)}
.hoosh-crumb .sep{opacity:.45}
.hoosh-crumb b{color:var(--ink)}

.hoosh-hero{text-align:center; margin:10px 0 16px}
.hero-badge{display:inline-flex; align-items:center; gap:8px; background:linear-gradient(90deg,#FFF4DC,#FFE9BE);
  color:#9a6200; border:1px solid #FFE1A6; border-radius:999px; padding:6px 14px; font-size:12px; font-weight:800}
.hero-badge i{width:7px; height:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(245,166,35,.25); animation:beat 1.6s infinite}
.hoosh-hero h1{font-size:clamp(28px,4.6vw,44px); font-weight:900; color:var(--ink); margin:10px 0 8px; letter-spacing:-.8px; line-height:1.12}
.hoosh-hero h1 .grad{background:linear-gradient(120deg,var(--gold),#FF8A00 45%,var(--red)); -webkit-background-clip:text; background-clip:text; color:transparent}
.hoosh-hero p{color:#5b6b83; font-size:clamp(13px,2vw,15px); margin:0 auto; max-width:540px; line-height:1.85}
.hero-chips{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:14px}
.hero-chip{display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line);
  color:#41536e; border-radius:999px; padding:8px 14px; font-size:12.5px; font-weight:700;
  box-shadow:0 10px 22px -18px rgba(11,18,32,.7)}
.hero-chip svg{width:16px; height:16px; color:var(--blue)}

/* animated hero background */
.hoosh-hero{position:relative; overflow:hidden; padding:4px 0 6px}
.hoosh-hero::before{content:""; position:absolute; left:50%; top:-56px; width:min(720px,96%); height:250px;
  transform:translateX(-50%); border-radius:50%; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse at center, rgba(59,130,246,.16), rgba(245,166,35,.10) 46%, transparent 72%);
  animation:heroGlow 7s ease-in-out infinite}
@keyframes heroGlow{0%,100%{opacity:.7; transform:translateX(-50%) scale(1)}50%{opacity:1; transform:translateX(-50%) scale(1.1)}}
.hero-deco{position:absolute; inset:-4px 0 -4px 0; pointer-events:none; z-index:0}
.hero-deco span{position:absolute; font-weight:900; color:var(--blue2); opacity:.13;
  animation:hdFloat ease-in-out infinite; will-change:transform}
@keyframes hdFloat{0%{transform:translateY(9px) rotate(-6deg)}50%{transform:translateY(-13px) rotate(7deg)}100%{transform:translateY(9px) rotate(-6deg)}}
.hoosh-hero > *:not(.hero-deco){position:relative; z-index:1}

/* prize / info bar */
.hoosh-prizes{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:0 0 16px}
.prize{position:relative; display:flex; align-items:center; gap:12px; overflow:hidden;
  background:linear-gradient(180deg,#FFFFFF,#F5F9FF); border:1px solid var(--line); border-radius:18px; padding:13px 15px;
  box-shadow:0 14px 30px -24px rgba(11,18,32,.5)}
.prize::after{content:""; position:absolute; inset:0 0 0 auto; width:4px; background:linear-gradient(180deg,var(--blue),var(--blue2))}
.prize-ico{width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:#EDF3FE; color:var(--blue); flex:none}
.prize-ico svg{width:23px; height:23px}
.prize-body{display:flex; flex-direction:column; gap:2px; min-width:0}
.prize-body small{font-size:12px; color:var(--muted); font-weight:700}
.prize-body b{font-size:17px; color:var(--ink); font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.prize.win{border-color:#FFE1A6; background:linear-gradient(180deg,#FFFCF2,#FFF3D8)}
.prize.win::after{background:linear-gradient(180deg,var(--gold),#FF8A00)}
.prize.win .prize-ico{background:#FFF1CE; color:#B26A00}
.prize.win .prize-body b{color:#B26A00}

.hoosh-panel{background:#fff; border:1px solid var(--line); border-radius:30px; padding:18px;
  box-shadow:0 40px 90px -50px rgba(11,18,32,.5), 0 2px 0 rgba(255,255,255,.6) inset}

/* HUD */
.hud{display:grid; grid-template-columns:1fr 1fr; align-items:stretch; gap:12px; margin-bottom:14px}
.hud-card{position:relative; background:linear-gradient(180deg,#FBFDFF,#F3F7FD); border:1px solid var(--line);
  border-radius:20px; padding:14px 16px 16px; display:flex; flex-direction:column; gap:5px; overflow:hidden}
.hud-label{font-size:12px; color:var(--muted); font-weight:700}
.hud-value{font-size:30px; font-weight:900; color:var(--ink); display:flex; align-items:baseline; gap:4px; line-height:1}
.hud-value i{font-size:15px; font-style:normal; color:#9aa8bc; font-weight:700}
.hud-next .next-value{font-size:40px; color:var(--red); text-shadow:0 6px 20px rgba(225,29,72,.25)}
.hud-track{position:absolute; left:0; right:0; bottom:0; height:6px; background:#E9EFF8}
.hud-track i{display:block; height:100%; width:0; border-radius:0 6px 6px 0;
  background:linear-gradient(90deg,var(--blue),var(--blue2)); transition:width .3s ease}
.hud-combo{align-self:flex-start; margin-top:2px; font-size:11.5px; font-weight:800; color:#0f7a37;
  background:#E9FBF0; border:1px solid #c8f0d8; border-radius:999px; padding:3px 9px}
.hud-combo.warn{color:#a53a00; background:#FFF1E6; border-color:#ffd9bf}

.hud-timer{position:relative; width:118px; height:118px; flex:none}
.hud-ring{width:100%; height:100%; transform:rotate(-90deg)}
.ring-bg{fill:none; stroke:#E9EFF8; stroke-width:11}
.ring-fg{fill:none; stroke:url(#none); stroke:#1D4ED8; stroke-width:11; stroke-linecap:round;
  stroke-dasharray:326.7; stroke-dashoffset:0; transition:stroke-dashoffset .25s linear, stroke .3s; filter:drop-shadow(0 0 6px rgba(29,78,216,.35))}
.ring-core{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center}
.ring-core b{font-size:30px; font-weight:900; color:var(--ink); line-height:1; font-variant-numeric:tabular-nums}
.ring-core small{font-size:11px; color:var(--muted); font-weight:700; margin-top:2px}
.hud-timer.warn .ring-fg{stroke:var(--red); filter:drop-shadow(0 0 8px rgba(225,29,72,.5))}
.hud-timer.warn .ring-core b{color:var(--red); animation:beat .8s infinite}

/* linear countdown */
.hud-timeline{background:linear-gradient(180deg,#FBFDFF,#F2F7FD); border:1px solid var(--line);
  border-radius:18px; padding:12px 16px 14px; margin-bottom:14px}
.hud-tl-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.hud-tl-label{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--muted)}
.hud-tl-label svg{color:var(--blue)}
.hud-tl-num{display:inline-flex; align-items:baseline; gap:4px; font-size:11.5px; font-weight:700; color:var(--muted)}
.hud-tl-num b{font-size:20px; font-weight:900; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1}
.hud-tl-track{position:relative; height:9px; border-radius:999px; background:#E7EEF9; overflow:hidden; box-shadow:inset 0 1px 2px rgba(11,18,32,.10)}
.hud-tl-track i{display:block; height:100%; width:100%; border-radius:999px; position:relative; overflow:hidden;
  background:linear-gradient(90deg,#16A34A,#34D399); transition:width .18s linear, background .35s ease;
  box-shadow:0 0 10px rgba(34,197,94,.5)}
.hud-tl-track i::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent); background-size:200% 100%; animation:tlSheen 1.7s linear infinite}
@keyframes tlSheen{0%{background-position:110% 0}100%{background-position:-110% 0}}
.hud-timeline.warn .hud-tl-track i{background:linear-gradient(90deg,#DC2626,#FB7185); box-shadow:0 0 14px rgba(225,29,72,.6); animation:barpulse .8s ease-in-out infinite}
.hud-timeline.warn .hud-tl-num b{color:var(--red); animation:beat .8s infinite}
.hud-timeline.warn .hud-tl-label svg{color:var(--red)}
@keyframes barpulse{0%,100%{opacity:1}50%{opacity:.6}}

/* Stage */
.stage{position:relative; border-radius:24px; overflow:hidden; padding:30px; display:flex; align-items:center; justify-content:center;
  min-height:340px; background:radial-gradient(ellipse at 50% 38%, #1c2b4d 0%, #101a30 48%, #070c17 100%)}
.stage::before{content:""; position:absolute; inset:0; background:
  radial-gradient(circle at 15% 12%, rgba(59,130,246,.18), transparent 40%),
  radial-gradient(circle at 85% 88%, rgba(245,166,35,.16), transparent 45%); pointer-events:none}
.stage-glow{position:absolute; width:66%; aspect-ratio:1/1; border-radius:50%;
  background:radial-gradient(circle, rgba(245,166,35,.5) 0%, rgba(245,166,35,.12) 45%, transparent 68%);
  filter:blur(26px); pointer-events:none; animation:breathe 5s ease-in-out infinite}
.confetti{position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:5}

.board-disc{position:relative; z-index:2; width:min(560px, 82vw, 58vh); aspect-ratio:1/1; border-radius:50%;
  box-shadow:0 0 0 7px #0a1428, 0 0 0 13px var(--gold), 0 0 0 15px #c9820f, 0 30px 70px -12px rgba(0,0,0,.65)}
.board-disc svg{width:100%; height:100%; display:block; border-radius:50%; overflow:hidden}

.cell{fill:#fff; stroke:var(--ink); cursor:pointer; transition:fill .15s ease, transform .12s ease;
  transform-box:fill-box; transform-origin:center}
.cell:hover{fill:#FFF3D6}
.cell.next-glow{fill:#FFF0D0; stroke:#E11D48; animation:nextPulse 1.1s ease-in-out infinite}
.cell.done{fill:#1D4ED8; cursor:default}
.cell.done:hover{fill:#1D4ED8}
.cell.hit{animation:cellpop .32s cubic-bezier(.2,1.4,.4,1)}
.cell.wrong{animation:cellshake .32s ease; fill:#FFE1E6; stroke:#E11D48}
@keyframes cellpop{0%{transform:scale(1)}40%{transform:scale(.86)}100%{transform:scale(1)}}
@keyframes cellshake{0%,100%{transform:translateX(0)}20%{transform:translateX(-4px)}60%{transform:translateX(4px)}}
@keyframes nextPulse{0%,100%{opacity:1}50%{opacity:.72}}

.num{font-family:Vazirmatn,Tahoma,sans-serif; font-weight:800; fill:var(--ink); pointer-events:none;
  user-select:none; transition:fill .15s; transform-box:fill-box; transform-origin:center}
.num.done{fill:#fff}
.num.next{fill:var(--red); font-weight:900}
.num.enter{animation:numIn .5s cubic-bezier(.2,1.3,.4,1) both}
.num.gone{animation:numOut .34s ease both}
@keyframes numIn{from{opacity:0; transform:scale(.2)}to{opacity:1; transform:scale(1)}}
@keyframes numOut{0%{opacity:1; transform:scale(1)}100%{opacity:0; transform:scale(1.75)}}

/* overlay */
.overlay{position:absolute; inset:0; z-index:6; display:flex; align-items:center; justify-content:center; padding:20px;
  background:radial-gradient(circle at 50% 45%, rgba(7,12,23,.55), rgba(7,12,23,.85));
  backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); transition:opacity .25s}
.overlay.hidden{opacity:0; pointer-events:none}
.ov-card{background:linear-gradient(180deg,#fff,#F7FAFF); border-radius:24px; padding:28px 26px; text-align:center;
  max-width:390px; width:100%; box-shadow:0 40px 80px -24px rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.7)}
.ov-icon{width:70px; height:70px; margin:0 auto 14px; border-radius:22px; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:24px; color:#fff; background:linear-gradient(135deg,var(--gold),#FF8A00);
  box-shadow:0 14px 30px -10px rgba(245,166,35,.7)}
.ov-card h2{font-size:24px; font-weight:900; color:var(--ink); margin:0 0 8px}
.ov-card p{color:#5b6b83; font-size:14.5px; margin:0 0 20px; line-height:1.95}
.ov-card p b{color:var(--ink)}
.ov-actions{display:flex; flex-direction:column; gap:10px}
.ov-actions .btn{width:100%}

.btn{border:0; border-radius:14px; padding:14px 18px; font:800 15px Vazirmatn,Tahoma,sans-serif; cursor:pointer;
  transition:transform .1s, filter .15s, box-shadow .15s; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px}
.btn:active{transform:translateY(1px)}
.btn.primary{background:linear-gradient(120deg,var(--blue),var(--blue2)); color:#fff; box-shadow:0 16px 32px -14px rgba(29,78,216,.85)}
.btn.primary:hover{filter:brightness(1.06)}
.btn.gold{background:linear-gradient(120deg,var(--gold),#FF8A00); color:#fff; box-shadow:0 16px 32px -14px rgba(245,166,35,.85)}
.btn.ghost{background:#EEF3FB; color:var(--blue)}
.btn.ghost:hover{background:#E2EBFA}
.btn:disabled{opacity:.5; cursor:not-allowed; box-shadow:none}

.perks{display:flex; gap:12px; margin:16px 0 0}
.perk{flex:1; display:flex; align-items:center; gap:12px; background:linear-gradient(180deg,#FBFDFF,#F3F7FD);
  border:1px solid var(--line); border-radius:18px; padding:13px 15px; cursor:pointer; text-align:right;
  transition:background .15s, border-color .15s, transform .1s}
.perk:hover:not(:disabled){background:#EEF4FD; border-color:#d3e0f5; transform:translateY(-1px)}
.perk:disabled{opacity:.5; cursor:not-allowed}
.perk-static{cursor:default}
.perk-static:hover{transform:none; background:linear-gradient(180deg,#FBFDFF,#F3F7FD)}
.perk-ico{width:40px; height:40px; border-radius:13px; background:#fff; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:20px; color:var(--blue); flex:none}
.perk-txt{display:flex; flex-direction:column; gap:2px}
.perk-txt b{font-size:14px; color:var(--ink); font-weight:800}
.perk-txt small{font-size:12px; color:var(--muted); font-weight:700}

.hoosh-status{margin-top:14px; text-align:center; font-size:13px; color:var(--muted); font-weight:600;
  display:flex; align-items:center; justify-content:center; gap:7px}
.hoosh-status i{width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; box-shadow:0 0 0 4px rgba(22,163,74,.15)}

/* rules */
.hoosh-rules{margin:26px 0 0; background:linear-gradient(180deg,#FFFFFF,#F7FAFF);
  border:1px solid var(--line); border-radius:26px; padding:28px 26px 24px;
  box-shadow:0 24px 60px -44px rgba(11,18,32,.55)}
.rules-head{text-align:center; margin-bottom:22px}
.rules-kicker{display:inline-block; background:#EDF3FE; color:var(--blue); font-size:12px; font-weight:800;
  padding:6px 14px; border-radius:999px; border:1px solid #DCE7FB}
.rules-head h2{margin:12px 0 8px; font-size:clamp(22px,3.4vw,30px); font-weight:900; color:var(--ink); letter-spacing:-.6px}
.rules-head p{margin:0 auto; max-width:560px; color:#5b6b83; font-size:14.5px; line-height:1.9}
.rules-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.rule{display:flex; gap:13px; background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px;
  box-shadow:0 14px 30px -26px rgba(11,18,32,.5); transition:transform .15s, box-shadow .15s}
.rule:hover{transform:translateY(-2px); box-shadow:0 22px 40px -26px rgba(29,78,216,.5)}
.rule-n{flex:none; width:34px; height:34px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:15px; color:#fff; background:linear-gradient(135deg,var(--gold),#FF8A00);
  box-shadow:0 10px 18px -10px rgba(245,166,35,.9)}
.rule-body{min-width:0}
.rule-body b{display:block; font-size:14.5px; font-weight:800; color:var(--ink); margin-bottom:3px}
.rule-body p{margin:0; font-size:13px; line-height:1.85; color:#5b6b83}
.rule-body p b{display:inline; color:var(--blue); font-weight:800}
.rule-ico{flex:none; width:46px; height:46px; border-radius:15px; display:flex; align-items:center; justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(11,18,32,.05)}
.rule-ico.ico-blue{background:#EDF3FE; color:var(--blue)}
.rule-ico.ico-gold{background:#FFF1CE; color:#B26A00}
.rule-ico.ico-green{background:#E7F8EE; color:var(--green)}
.rules-note{display:flex; align-items:center; gap:11px; margin-top:16px; background:#EAFBF0; border:1px solid #C7EFD5;
  color:#166534; border-radius:16px; padding:14px 16px; font-size:13px; font-weight:600; line-height:1.8}
.rules-note svg{width:22px; height:22px; flex:none; color:var(--green)}

/* winners */
.hoosh-winners{margin:22px 0 0; background:linear-gradient(180deg,#0E1B36,#0A1428);
  border-radius:26px; padding:26px 24px 24px; position:relative; overflow:hidden;
  box-shadow:0 40px 80px -50px rgba(11,18,32,.9)}
.hoosh-winners::before{content:""; position:absolute; inset:0; pointer-events:none; background:
  radial-gradient(circle at 12% 0%, rgba(59,130,246,.28), transparent 42%),
  radial-gradient(circle at 90% 100%, rgba(245,166,35,.24), transparent 46%)}
.win-head{text-align:center; position:relative; margin-bottom:20px}
.win-kicker{display:inline-flex; align-items:center; gap:7px; background:rgba(245,166,35,.16); color:#FFC24D;
  border:1px solid rgba(245,166,35,.35); border-radius:999px; padding:6px 14px; font-size:12px; font-weight:800}
.win-head h2{margin:12px 0 6px; font-size:clamp(20px,3.2vw,28px); font-weight:900; color:#fff; letter-spacing:-.5px}
.win-head p{margin:0 auto; max-width:520px; color:#9fb0cc; font-size:13.5px; line-height:1.9}
.win-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; position:relative}
.win-card{background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.12);
  border-radius:18px; padding:18px 14px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:7px;
  position:relative; transition:transform .15s, border-color .15s}
.win-card:hover{transform:translateY(-3px); border-color:rgba(245,166,35,.5)}
.win-medal{position:absolute; top:-10px; inset-inline-start:12px; font-size:20px; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}
.win-face{width:64px; height:64px; border-radius:50%; padding:3px; background:linear-gradient(135deg,var(--gold),#FF8A00);
  box-shadow:0 10px 22px -10px rgba(245,166,35,.8)}
.win-av{width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; background:#182642; color:#fff; font-weight:900; font-size:22px}
.win-av-ph{display:grid; place-items:center}
.win-name{color:#fff; font-size:14.5px; font-weight:800; margin-top:4px}
.win-reward{color:#FFC24D; font-size:13px; font-weight:800; background:rgba(245,166,35,.14); border:1px solid rgba(245,166,35,.3);
  border-radius:999px; padding:3px 12px}
.win-time{color:#8ea3c6; font-size:11.5px; font-weight:700}
.win-empty{grid-column:1/-1; text-align:center; color:#9fb0cc; font-size:13.5px; padding:24px;
  background:rgba(255,255,255,.05); border:1px dashed rgba(255,255,255,.18); border-radius:16px}

.hoosh-toast{position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; font:700 14px Vazirmatn,Tahoma,sans-serif; padding:13px 22px; border-radius:15px;
  opacity:0; pointer-events:none; transition:.25s; z-index:9999; box-shadow:0 20px 44px -16px rgba(0,0,0,.7)}
.hoosh-toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

@keyframes beat{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes breathe{0%,100%{transform:scale(1); opacity:.85}50%{transform:scale(1.06); opacity:1}}

@media(max-width:900px){
  .rules-grid{grid-template-columns:repeat(2,1fr)}
  .win-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:640px){
  .hoosh-panel{padding:12px; border-radius:22px}
  .hoosh-prizes{grid-template-columns:repeat(2,1fr); gap:10px}
  .prize{padding:11px 12px; gap:10px}
  .prize-ico{width:38px; height:38px; border-radius:12px}
  .prize-ico svg{width:20px; height:20px}
  .prize-body b{font-size:15px}
  .hud-timer{width:92px; height:92px}
  .ring-core b{font-size:24px}
  .hud-value{font-size:24px}
  .hud{gap:10px}
  .hud-timeline{padding:11px 13px 14px}
  .hud-tl-track{height:12px}
  .hud-tl-num b{font-size:19px}
  .rule-ico{width:40px; height:40px; border-radius:13px}
  .hud-next .next-value{font-size:32px}
  .stage{padding:16px; min-height:260px}
  .perks{flex-direction:column}
  .hoosh-hero h1{letter-spacing:-.5px}
  .hero-chip{font-size:12px; padding:7px 12px}
  .hoosh-rules{padding:20px 15px 18px; border-radius:22px}
  .rules-grid{grid-template-columns:1fr; gap:11px}
  .rule{padding:14px}
  .rules-note{font-size:12.5px; padding:13px 14px}
  .hoosh-winners{padding:20px 15px 18px; border-radius:22px}
  .win-grid{gap:11px}
  .win-face{width:56px; height:56px}
  .win-card{padding:16px 10px 14px}
}
