/* extras.css — استایلِ قابلیت‌های جدید (شیشه‌ای، بدونِ حاشیه). بعد از glass.css لود میشه. */

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- ورود/ثبت‌نام: پیامک و فراموشیِ رمز ---------- */
.sms-row { display: flex; gap: 8px; align-items: stretch; width: 100%; }
.sms-row input { flex: 1; min-width: 0; text-align: left; }
.sms-btn, .g-primary {
  border: 0 !important; cursor: pointer; font-family: inherit; font-weight: 700; color: #fff; white-space: nowrap;
  padding: 0 16px; min-height: 44px; border-radius: 14px;
  background: linear-gradient(180deg, #ff7a4a, #e0322a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px rgba(255,74,43,.3);
  transition: transform .3s cubic-bezier(.34,1.4,.5,1), opacity .2s;
}
.sms-btn:active, .g-primary:active { transform: scale(.95); }
.sms-btn:disabled, .g-primary:disabled { opacity: .5; cursor: default; transform: none; }
.link-btn, .g-link {
  display: block; margin: 12px auto 0; background: none; border: 0 !important; color: rgba(255,255,255,.7);
  font-family: inherit; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 10px;
}
.link-btn:hover, .g-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.forgot-title { text-align: center; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.forgot-step { display: grid; gap: 12px; }
.fg-account { text-align: center; padding: 12px; border-radius: 14px; background: rgba(55,224,122,.14); }
#forgot-form.panel.active { display: block; }

/* ---------- مودال/پنجره‌ی شیشه‌ای ---------- */
.g-backdrop {
  position: fixed; inset: 0; z-index: 9700; display: grid; place-items: center; padding: 18px;
  background: rgba(6,10,22,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: g-fade .3s ease both;
}
.g-modal {
  width: min(420px, 100%); padding: 24px 20px; border-radius: 28px; text-align: center; display: grid; gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 70px rgba(0,0,0,.55);
  animation: g-sheet .6s cubic-bezier(.34,1.4,.5,1) both;
}
.g-modal h3 { margin: 0; font-size: 19px; }
.g-modal p { margin: 0; }
.g-note { font-size: 12.5px; color: rgba(255,255,255,.62); line-height: 1.8; }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- نوارِ خبریِ زنده ---------- */
.live-ticker {
  display: flex; align-items: center; gap: 10px; margin: 8px 14px 0; padding: 8px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14); overflow: hidden;
}
.live-ticker[hidden] { display: none; }
.lt-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff3b4a; box-shadow: 0 0 10px #ff3b4a; animation: lt-pulse 1.4s ease-in-out infinite; }
.lt-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.lt-text.in { animation: lt-in .6s cubic-bezier(.32,.72,0,1) forwards; }
@keyframes lt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lt-pulse { 50% { transform: scale(1.5); opacity: .55; } }

.chip-icon-btn { cursor: pointer; font-size: 16px; line-height: 1; padding-inline: 10px; font-family: inherit; color: inherit; }
.tab-emoji { font-size: 22px; line-height: 1; display: block; }

/* ---------- فرمانده‌ها ---------- */
.meta-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 12px; }
.meta-slot { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); font-size: 12px; color: rgba(255,255,255,.6); display: grid; gap: 4px; text-align: center; }
.meta-slot b { color: #fff; font-size: 15px; }
.meta-slot.locked { opacity: .55; }
.meta-bonus { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta-bonus span { padding: 6px 12px; border-radius: 999px; background: rgba(55,224,122,.15); font-size: 12.5px; }
.meta-pull { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pity { margin-top: 12px; }
.pity-bar, .bp-bar, .pool-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.pity-bar i, .bp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b06bff, #ff7a4a); transition: width .8s cubic-bezier(.32,.72,0,1); }
.pity small { color: rgba(255,255,255,.55); font-size: 11.5px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cmd-card { --rc: #9fb3d1; padding: 14px 10px; border-radius: 20px; text-align: center; display: grid; gap: 4px; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 24px color-mix(in srgb, var(--rc) 18%, transparent); transition: transform .35s cubic-bezier(.34,1.4,.5,1); }
.cmd-card:hover { transform: translateY(-3px); }
.cmd-card.r-rare { --rc: #4fa3ff; } .cmd-card.r-epic { --rc: #b06bff; } .cmd-card.r-legendary { --rc: #ffc247; }
.cmd-card.r-legendary { animation: cmd-glow 3s ease-in-out infinite; }
@keyframes cmd-glow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 34px rgba(255,194,71,.45); } }
.cmd-card.unowned { filter: grayscale(.85); opacity: .6; }
.cmd-emoji { font-size: 38px; } .cmd-name { font-weight: 800; } .cmd-rar { font-size: 11.5px; color: var(--rc); }
.cmd-perk { font-size: 12px; color: rgba(255,255,255,.75); min-height: 32px; }
.cmd-act { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.cmd-lock { font-size: 12px; color: rgba(255,255,255,.5); }
.reveal { --rc: #9fb3d1; } .reveal.r-rare { --rc: #4fa3ff; } .reveal.r-epic { --rc: #b06bff; } .reveal.r-legendary { --rc: #ffc247; }
.reveal { box-shadow: 0 0 60px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.2); }
.reveal-emoji { font-size: 84px; animation: g-pop-in .8s cubic-bezier(.34,1.56,.5,1) both; }
@keyframes g-pop-in { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- بتل‌پس ---------- */
.bp-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.bp-head .bp-bar { flex: 1 1 160px; }
.bp-prem.on { padding: 6px 12px; border-radius: 999px; background: rgba(255,194,71,.2); }
.bp-note { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.bp-track { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.bp-tier { flex: none; width: 92px; display: grid; gap: 6px; text-align: center; scroll-snap-align: start; opacity: .55; }
.bp-tier.reached { opacity: 1; }
.bp-n { font-weight: 800; font-size: 13px; }
.bp-claim { border: 0 !important; border-radius: 12px; min-height: 44px; font-size: 11.5px; font-family: inherit; color: #fff; cursor: pointer; padding: 4px; line-height: 1.5;
  background: rgba(255,255,255,.1); transition: transform .25s cubic-bezier(.34,1.4,.5,1), background .2s; }
.bp-claim.prem { background: rgba(255,194,71,.16); }
.bp-claim:not(:disabled):hover { background: rgba(55,224,122,.3); }
.bp-claim:not(:disabled):active { transform: scale(.94); }
.bp-claim:disabled { cursor: default; }

/* ---------- زنده / شرط‌بندی ---------- */
.war-card { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.06); margin-bottom: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.war-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.war-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.ws-side { display: grid; gap: 2px; } .ws-side b { font-size: 14px; word-break: break-word; } .ws-side em { font-style: normal; font-size: 34px; font-weight: 900; }
.ws-side small { font-size: 11px; color: rgba(255,255,255,.55); } .ws-vs { font-size: 22px; }
.pool-bar { margin: 10px 0 4px; } .pool-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fa3ff, #ff4a5a 100%); width: 50%; transition: width .8s cubic-bezier(.32,.72,0,1); }
.pool-txt { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); }
.bet-box { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.bet-box .bet-amt { flex: 1 1 110px; }
.feed-list { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.feed-item { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; animation: g-rise .5s cubic-bezier(.34,1.4,.5,1) both; }
.feed-item.k-doomsday { background: rgba(255,45,45,.2); } .feed-item.k-hit { background: rgba(41,200,255,.12); } .feed-item.k-blocked { background: rgba(90,169,255,.12); }

/* ---------- قیفِ ادمین ---------- */
.funnel-ctl { display: flex; gap: 8px; margin-bottom: 10px; }
.funnel-t { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: center; }
.funnel-t th { color: rgba(255,255,255,.6); font-weight: 600; padding: 8px 6px; }
.funnel-t td { padding: 9px 6px; background: rgba(255,255,255,.04); }
.funnel-t tr:last-child td { font-weight: 800; background: rgba(255,255,255,.1); }

/* ---------- آموزش ---------- */
.tut-root { position: fixed; inset: 0; z-index: 9500; }
.tut-spot { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(5,10,20,.74), 0 0 0 4px rgba(255,255,255,.28); transition: all .45s cubic-bezier(.32,.72,0,1); pointer-events: none; }
.tut-root { display: flex; justify-content: center; padding: 16px; box-sizing: border-box; }
.tut-root.pos-top { align-items: flex-start; } .tut-root.pos-bottom { align-items: flex-end; } .tut-root.pos-mid { align-items: center; }
.tut-card { position: relative; z-index: 1; width: min(380px, 100%); padding: 18px 16px; border-radius: 26px; display: grid; gap: 10px; text-align: center; max-height: calc(100vh - 32px); overflow-y: auto;
  background: rgba(24,34,58,.86); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 60px rgba(0,0,0,.55); animation: g-sheet .5s cubic-bezier(.34,1.4,.5,1) both; }
.tut-card h3 { margin: 0; } .tut-card p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.9; font-size: 14px; }
.tut-dots { display: flex; gap: 6px; justify-content: center; }
.tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: all .3s; }
.tut-dots i.on { width: 22px; border-radius: 999px; background: #ff7a4a; }
.tut-actions { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tut-reward { padding: 10px; border-radius: 14px; background: rgba(255,194,71,.16); font-weight: 700; }
.tut-range { position: relative; height: 130px; border-radius: 18px; background: linear-gradient(180deg, rgba(41,200,255,.08), rgba(55,224,122,.12)); overflow: hidden; }
.tr-target { position: absolute; right: 22px; top: 50%; font-size: 44px; transform: translateY(-50%); }
.tr-missile { position: absolute; left: 14px; bottom: 14px; font-size: 30px; transform: rotate(-35deg); }
.tr-missile.fly { animation: tr-fly .9s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes tr-fly { to { left: calc(100% - 78px); bottom: calc(50% - 14px); opacity: 0; } }
.tr-boom { position: absolute; right: 12px; top: 50%; font-size: 64px; transform: translateY(-50%) scale(0); opacity: 0; }
.tr-boom.on { animation: tr-boom .6s ease-out forwards; }
@keyframes tr-boom { 30% { transform: translateY(-50%) scale(1.5); opacity: 1; } to { transform: translateY(-50%) scale(1.1); opacity: 0; } }

/* ---------- جلوه‌ی سینمایی ---------- */
#fx-cine { position: fixed; inset: 0; z-index: 9800; pointer-events: none; width: 100vw; height: 100vh; }
body.fx-shake .game-stage, body.fx-shake .topbar { animation: fx-shake .5s cubic-bezier(.36,.07,.19,.97) both; }   /* روی خودِ body نه، تا المان‌های fixed نپرن */
@keyframes fx-shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }

@media (prefers-reduced-motion: reduce) { body.fx-shake .game-stage, body.fx-shake .topbar { animation: none; } }
