/* misje-28: seria = tydzień 7 dni (styl sprzed 30-dniowego paska); koło VIP większe; 1× countdown */

/* ===== Seria logowań: klasyczna siatka 7 dni (tydzień z 30) ===== */
#misBox > .mstreak,
.misBox > .mstreak,
.mstreak{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box;
}
#misBox > .mWheel,
.misBox > .mWheel,
.mWheel{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box;
  overflow-x:clip;
  scroll-margin-top:320px;
}
#mWheel,.mWheel .acWstage{scroll-margin-top:320px}

/* pages/v11 own tile sizes — only force 7-col week (never the 30-wide scroll strip) */
.mstreak .mcal,
.misBox .mstreak .mcal{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:clamp(6px,.8vw,12px)!important;
  width:100%!important;
  max-width:100%!important;
  margin:6px 0 8px;
  padding:0;
  flex-wrap:unset!important;
  flex-direction:unset!important;
}
.mstreak .mday{
  /* restore pre-scroll look: let pages/v11 padding/img sizes win */
  transform:none!important; /* keep strip height stable vs .now lift if desired — original had translateY(-4px) on .now; allow it */
  width:auto!important;min-width:0!important;max-width:none!important;
  flex:unset!important;
}
.mstreak .mday.now{transform:translateY(-4px)!important}
.mstreak .mWeekLbl{
  font:700 11px/1 Barlow,system-ui;letter-spacing:.04em;
  color:#c8d4ff;opacity:.9;padding:3px 8px;border-radius:999px;
  background:#ffffff12;border:1px solid #f5c54255;margin-left:6px;
  white-space:nowrap;
}
.mstreak .mMileTag{
  font:800 9px/1 Barlow,system-ui;padding:2px 5px;margin-top:2px;
  border-radius:6px;background:#f5c54222;color:#ffe08a;border:1px solid #f5c54255;
}
.mstreak .mday.locked{opacity:.42;filter:grayscale(.2)}
.mstreak .mday.past{opacity:.55}

/* phone: sticky .top covers scroll targets — room below header; 4+3 like old pages.css ≤700px */
.mstreak, #misBox > .mstreak, .misBox > .mstreak{scroll-margin-top:200px}
@media (max-width:700px){
  .mstreak .mcal,.misBox .mstreak .mcal{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .mstreak .mday img{width:48px!important;height:48px!important}
  .mstreak .mday.big img{width:56px!important;height:56px!important}
  .mstreak .mday{padding:8px 4px!important}
  .mstreak .mWeekLbl{font-size:10px;padding:2px 7px;margin-left:4px}
}
@media (max-width:380px){
  .mstreak .mday img{width:42px!important;height:42px!important}
  .mstreak .mday.big img{width:50px!important;height:50px!important}
}


/* ===== Koło VIP: większe + większe kafelki; bez %; 1× countdown; przycisk pod obręczą ===== */
.mWheel .mWbody{
  grid-template-columns:minmax(420px,1.2fr) minmax(360px,1fr)!important;
  gap:12px 28px!important;
  max-width:1180px!important;
  width:100%!important;
  margin:4px auto 0!important;
  align-items:stretch!important;
  justify-content:center!important;
  padding:0 4px!important;
}
.mWheel .acWleft{width:100%;max-width:100%;justify-content:center!important}
.mWheel .acWheel{
  --wr:200px;
  --wf:72px;
  --wi:72px;
  --ws:52px;
  --spin:0deg;
  width:min(520px,100%)!important;
  height:auto!important;
  aspect-ratio:1;
  max-width:100%!important;
}
/* rim hangs ~14px below wheel — keep stage bottom pad + button margin so button clears rim (~16px gap) */
.mWheel .acWstage{padding:18px 14px 8px!important}
.mWheel .mWbtns{
  max-width:340px!important;
  margin-top:16px!important; /* ~12–20px clear below rim */
}
.mWheel .acWleg{max-width:none!important;width:100%!important;gap:8px!important;justify-content:center!important;align-self:stretch!important}
.mWheel .acWleg h4{font-size:14px!important;margin:0 0 4px!important}
.mWheel .acWlegList{gap:10px 12px!important}
.mWheel .acWlegRow{
  grid-template-columns:44px minmax(0,1fr)!important;
  gap:9px!important;padding:11px 12px!important;border-radius:12px!important;
  min-height:68px;
}
.mWheel .acWlegIco{width:44px!important;height:44px!important}
.mWheel .acWlegIco .acWicoImg{width:38px!important;height:36px!important}
.mWheel .acWlegIco .acWicoSym,
.mWheel .acWlegIco .acWicoMys,
.mWheel .acWlegIco .acWicoMys.mysAva,
.mWheel .acWlegIco .acWicoMys.ava{width:38px!important;height:38px!important;border-radius:10px!important}
.mWheel .acWlegIco .acWicoMys i{font-size:16px!important}
.mWheel .acWlegTxt b{font:800 14.5px/1.2 Barlow,system-ui!important}
.mWheel .acWlegTxt small{font:600 12.5px/1.35 Barlow,system-ui!important}
.mWheel .acWlegPct{display:none!important}
.mWheel .acWleg .acWlegCd{display:none!important}
.mWheel .mWcd,.mWheel .mWres{text-align:center}

@media (max-width:820px){
  .mWheel .mWbody{grid-template-columns:1fr!important;gap:10px!important;max-width:100%!important}
  .mWheel .acWheel{
    --wr:140px;
    width:min(360px,94vw)!important;
    max-width:100%!important;
  }
  .mWheel .acWstage{padding:16px 12px 10px!important}
  .mWheel .mWbtns{margin-top:16px!important}
  .mWheel .acWlegRow{min-height:50px;padding:9px 10px!important}
  .mWheel .acWlegIco{width:40px!important;height:40px!important}
  .mWheel .acWlegTxt b{font-size:13px!important}
  .mWheel .acWlegTxt small{font-size:11px!important}
}
@media (max-width:420px){
  .mWheel .acWheel{width:min(350px,94vw)!important;--wr:130px;max-width:100%!important}
  .mWheel .mWbtns{margin-top:16px!important}
  .mWheel .acWlegRow{min-height:48px;padding:8px 9px!important;grid-template-columns:38px minmax(0,1fr)!important}
  .mWheel .acWlegTxt b{font-size:12px!important}
  .mWheel .acWlegTxt small{font-size:10.5px!important}
}


/* ===== Koło widoczne dla wszystkich; non-VIP: overlay + Zostań VIP ===== */
.mWheelWrap{position:relative;isolation:isolate}
.mWheelGate{
  position:absolute;inset:0;z-index:6;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:18px 16px;text-align:center;
  border-radius:14px;
  background:linear-gradient(165deg,#0b0828b8 0%,#1a1048c4 55%,#2a1858b0 100%);
  backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);
  box-shadow:inset 0 0 0 1px #f5c54244;
  pointer-events:auto;
}
.mWheelBadge{
  font:800 15px/1.35 Barlow,system-ui;letter-spacing:.03em;
  color:#ffe9a8;text-wrap:balance;max-width:22em;
  padding:12px 18px;border-radius:14px;
  background:linear-gradient(180deg,#f5c54233,#f5c54214);
  border:1px solid #f5c54299;
  box-shadow:0 8px 28px #000a,0 0 24px #f5c54233;
}
.mWheelVipBtn{font-weight:800!important;min-width:10em}
.mWheelLock #mWheelMount{pointer-events:none}
/* dim wheel+legend only — never filter the spin slot (filter was ghosting the btn) */
.mWheelLock #mWheelMount .acWleft,
.mWheelLock #mWheelMount .acWheel,
.mWheelLock #mWheelMount .acWleg{
  filter:saturate(.75) brightness(.88);
}
.mWheelLock .mWbtns,
.mWheelLock .acWspinBtn{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.mWheelLock .mWbtns *{visibility:hidden!important;opacity:0!important}
@media (max-width:700px){
  .mWheelBadge{font-size:13px;padding:10px 14px}
  .mWheelGate{gap:12px;padding:14px 12px}
}


.mWbonus{margin:8px 0 0;font-size:13px;font-weight:800;color:#f5a542;letter-spacing:.02em}
.mWbonus b{color:#ffe08a;font-variant-numeric:tabular-nums}
.acWicoFree{font-size:calc(var(--ws,52px) * 0.55);filter:drop-shadow(0 0 6px #f5a542aa)}
.acWicoSh{display:grid;place-items:center;background:linear-gradient(160deg,#7ec8ff55,#1a3a68);border-color:#7ec8ff;color:#cfefff}
.acWicoSh svg{display:block;filter:drop-shadow(0 0 4px #7ec8ffaa)}
.acWface .acWicoFree{font-size:calc(var(--ws,52px) * 0.55)}
@media(max-width:720px){
  .mWgrid{grid-template-columns:1fr;gap:16px}
  .acWheel{width:min(100%,340px)}
}


/* wheelfix-29: jeden toast Koła – nie zasłania tytułu/wskaźnika */
#toast div.acWheelToast{
  position:relative;
  margin-top:0;
}
body:has(.mWheel) #toast{
  top:auto!important;
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  left:50%;
  transform:translateX(-50%);
  align-items:stretch;
  width:min(420px,calc(100vw - 24px));
  max-width:min(420px,calc(100vw - 24px));
  z-index:80;
  box-sizing:border-box;
}
body:has(.mWheel) #toast div:not(:last-child){display:none!important}
/* ekwToast: mobile.css nowrap+ellipsis psuje wrap – nadpisz; nie zasłaniaj koła/przycisku */
body:has(.mWheel) #toast div.ekwToast,
#toast div.ekwToast{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:unset!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box;
  flex-wrap:wrap;
  gap:8px 10px;
  padding:8px 10px!important;
}
#toast div.ekwToast span{
  flex:1 1 140px;
  min-width:0;
  max-width:100%;
}
#toast div.ekwToast b,
#toast div.ekwToast small{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:unset!important;
  word-break:break-word;
  overflow-wrap:anywhere;
}
#toast div.ekwToast .btn{flex:0 0 auto}
@media (max-width:820px){
  body:has(.mWheel) #toast{
    bottom:calc(78px + env(safe-area-inset-bottom,0px));
    width:calc(100vw - 16px);
    max-width:calc(100vw - 16px);
    z-index:90;
  }
  body:has(.mWheel) #toast div.ekwToast{
    padding:6px 8px!important;
    gap:6px 8px;
    align-items:center;
    flex-wrap:nowrap;
  }
  body:has(.mWheel) #toast div.ekwToast img{width:36px;height:36px;flex:none}
  body:has(.mWheel) #toast div.ekwToast span{flex:1 1 auto;min-width:0}
  body:has(.mWheel) #toast div.ekwToast b{font-size:13px!important;line-height:1.2!important}
  body:has(.mWheel) #toast div.ekwToast small{font-size:11px!important;line-height:1.2!important}
  body:has(.mWheel) #toast div.ekwToast .btn{min-height:32px;padding:0 10px;font-size:12px;flex:none}
}


@media (max-width:820px){
  .mWheel .acWstage{padding:12px 8px 8px!important;width:100%!important;max-width:100%!important}
  .mWheel .acWleft{width:100%!important;max-width:100%!important}
  #mWheelMount .acWheel,.mWheel #mWheelMount .acWheel,.mWheel .acWheel{
    width:min(360px,94vw)!important;
    max-width:100%!important;
    height:auto!important;
  }
}
@media (max-width:420px){
  #mWheelMount .acWheel,.mWheel .acWheel{width:min(340px,94vw)!important}
}


/* ekwToast / Koło toast – w flow pod SUPER SPIN (nigdy fixed nad kołem) */
.mWheel .ekwToastInline,
.mWheel .acWheelToastInline{
  position:relative!important;
  left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
  transform:none!important;
  display:flex!important;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
  width:100%!important;
  max-width:min(420px,100%)!important;
  margin:10px auto 6px!important;
  z-index:2;
  box-sizing:border-box;
  padding:8px 10px!important;
  border:2px solid #f5c542;
  background:linear-gradient(#1c2d74,#14255e);
  box-shadow:0 0 18px #f5c54244,0 6px 16px #000a;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:unset!important;
  text-align:left;
  pointer-events:auto;
}
.mWheel .acWheelToastInline{
  display:block!important;
  font:800 13px/1.3 Barlow,system-ui;
  color:#ffe08a;
  text-align:center;
}
.mWheel .ekwToastInline img{width:40px;height:40px;object-fit:contain;flex:none;filter:drop-shadow(0 0 6px #f5c54288)}
.mWheel .ekwToastInline span{display:flex;flex-direction:column;gap:2px;flex:1 1 120px;min-width:0}
.mWheel .ekwToastInline b{color:#ffe08a;font:800 14px/1.25 Baloo,system-ui;white-space:normal!important;overflow:visible!important;word-break:break-word}
.mWheel .ekwToastInline small{color:#cfd6ff;font:500 11.5px/1.25 system-ui;white-space:normal!important;overflow:visible!important;word-break:break-word}
.mWheel .ekwToastInline .btn{flex:none;min-height:34px;padding:0 12px;font-size:13px}
@media (max-width:820px){
  .mWheel .ekwToastInline,.mWheel .acWheelToastInline{max-width:100%!important;padding:7px 9px!important;margin:8px auto 4px!important}
  .mWheel .ekwToastInline img{width:34px;height:34px}
  .mWheel .ekwToastInline b{font-size:13px!important}
  .mWheel .ekwToastInline small{font-size:11px!important}
}
/* na Misjach nigdy nie pinuj #toast na dole nad kołem – nagrody idą inline */
body:has(.mWheel) #toast{
  /* zostaw tylko gdy NIE ma inline karty; i tak trzymaj z dala od koła */
  pointer-events:none;
}
body:has(.mWheel .ekwToastInline) #toast,
body:has(.mWheel .acWheelToastInline) #toast{display:none!important}
.mWheel .mWcd{scroll-margin-bottom:96px}
.mWheel .mWbtns{scroll-margin-bottom:80px}
.mWheel .acWheel{scroll-margin-top:64px;scroll-margin-bottom:120px}


/* NAGRODY tiles: crisp rarity borders (desk+phone), no size change */
.mWheel .acWlegRow{border:1.75px solid #c5cce0!important;box-shadow:inset 0 1px 0 #ffffff28!important}
.mWheel .acWlegRow.r-leg{border:2px solid #c77dff!important;box-shadow:inset 0 1px 0 #e8b0ff66,0 0 10px #c77dff33!important}
.mWheel .acWlegRow.r-epic{border:2px solid #f5c542!important;box-shadow:inset 0 1px 0 #ffe08a66,0 0 8px #f5c54233!important}
.mWheel .acWlegRow.r-rare{border:2px solid #5ec8ff!important;box-shadow:inset 0 1px 0 #a8e4ff55,0 0 8px #5ec8ff33!important}
.mWheel .acWlegRow.r-buuu{border:1.75px solid #9aa0b0!important;box-shadow:inset 0 1px 0 #ffffff22!important}
.mWheel .acWlegRow.r-ok{border:1.75px solid #ffe08a!important;box-shadow:inset 0 1px 0 #ffe08a44!important}


/* desk+phone: nigdy fixed #toast z wynikiem koła nad kartą */
body:has(.mWheel) #toast .acWheelToast,
body:has(.mWheel) #toast .ekwToast,
body:has(.mWheel) #toast .tAct{display:none!important}
/* acWheelToast-fixed-hide */

/* === wheelfix-29 polish: legend icons = chest box; no ellipsis on legend text === */
.mWheel .acWlegIco{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  display:grid!important;place-items:center!important;overflow:visible!important;
  flex:0 0 44px!important;
}
.mWheel .acWlegIco .acWicoImg,
.mWheel .acWlegIco img.acWicoImg{
  width:38px!important;height:36px!important;max-width:38px!important;max-height:36px!important;
  object-fit:contain!important;display:block!important;
}
.mWheel .acWlegIco .acWicoSym,
.mWheel .acWlegIco .acWicoKeys,
.mWheel .acWlegIco .acWicoGame,
.mWheel .acWlegIco .acWicoKey,
.mWheel .acWlegIco .acWicoPg,
.mWheel .acWlegIco .acWicoBuuu,
.mWheel .acWlegIco .acWicoEn,
.mWheel .acWlegIco .acWicoEntry,
.mWheel .acWlegIco .acWicoFree,
.mWheel .acWlegIco .acWicoSh{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  max-width:38px!important;max-height:38px!important;
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  contain:none!important;overflow:visible!important;
  font-size:22px!important;line-height:1!important;
  border-radius:10px!important;
}
.mWheel .acWlegIco .acWicoPg{font-size:14px!important;letter-spacing:.02em!important;font-weight:900!important}
.mWheel .acWlegIco .acWicoSym svg,
.mWheel .acWlegIco span svg{
  width:100%!important;height:100%!important;display:block!important;
  max-width:100%;max-height:100%;
}
.mWheel .acWlegIco .acWicoMys,
.mWheel .acWlegIco .acWicoMys.mysAva,
.mWheel .acWlegIco .acWicoMys.ava{
  width:38px!important;height:38px!important;border-radius:10px!important;
}
.mWheel .acWlegIco .acWicoMys i{font-size:18px!important}
.mWheel .acWlegRow{
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
}
.mWheel .acWlegTxt{
  min-width:0;overflow:visible!important;
}
.mWheel .acWlegTxt b,
.mWheel .acWlegTxt small{
  display:block!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  -webkit-line-clamp:unset!important;
  line-clamp:unset!important;
  -webkit-box-orient:unset!important;
  max-height:none!important;
}
.mWheel .acWlegTxt small{
  font:600 12.5px/1.35 Barlow,system-ui!important;color:#c4ceee!important;opacity:1!important;
}
@media (max-width:820px){
  .mWheel .acWlegTxt small{display:block!important;font-size:11px!important;}
  .mWheel .acWlegRow{grid-template-columns:40px minmax(0,1fr)!important;padding:9px 10px!important;}
  .mWheel .acWlegIco{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important;}
  .mWheel .acWlegIco .acWicoSym,
  .mWheel .acWlegIco .acWicoKey,
  .mWheel .acWlegIco .acWicoPg,
  .mWheel .acWlegIco .acWicoBuuu,
  .mWheel .acWlegIco .acWicoEn,
  .mWheel .acWlegIco .acWicoFree,
  .mWheel .acWlegIco .acWicoSh,
  .mWheel .acWlegIco .acWicoImg,
  .mWheel .acWlegIco img.acWicoImg,
  .mWheel .acWlegIco .acWicoMys,
  .mWheel .acWlegIco .acWicoMys.mysAva,
  .mWheel .acWlegIco .acWicoMys.mysHero,
  .mWheel .acWlegIco .acWicoMys.mysSkin,
  .mWheel .acWlegIco .acWicoMys.ava{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
    max-width:34px!important;max-height:34px!important;
    font-size:20px!important;
  }
  .mWheel .acWlegIco .acWicoPg{font-size:12px!important}
}
@media (max-width:340px){
  .mWheel .acWlegRow{grid-template-columns:34px minmax(0,1fr)!important;padding:4px 5px!important;}
  .mWheel .acWlegIco{width:34px!important;height:34px!important;min-width:34px!important;flex-basis:34px!important;}
  .mWheel .acWlegIco .acWicoSym,
  .mWheel .acWlegIco .acWicoImg,
  .mWheel .acWlegIco img.acWicoImg,
  .mWheel .acWlegIco .acWicoMys{width:30px!important;height:30px!important;font-size:18px!important;}
  .mWheel .acWlegTxt small{display:block!important;font-size:9px!important;}
}
/* result card under SUPER SPIN — same look as ekwToastInline */
.mWheel .acWheelResultInline.ekwToastInline,
.mWheel .ekwToastInline.acWheelResultInline{
  display:flex;align-items:center;gap:10px;margin:8px auto 0;padding:10px 12px;
  max-width:min(340px,94%);width:100%;box-sizing:border-box;
  background:linear-gradient(180deg,#1a2448ee,#121a36f2);border:1px solid #f5c54266;
  border-radius:14px;box-shadow:0 8px 24px #0008;
}
.mWheel .acWheelResultInline img,
.mWheel .acWheelResultInline .acWicoImg{width:40px;height:40px;object-fit:contain;flex:0 0 auto}
.mWheel .acWheelResultInline .acWicoSym{width:40px;height:40px;font-size:26px;display:grid;place-items:center;flex:0 0 auto;padding:0;contain:none}
.mWheel .acWheelResultInline span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mWheel .acWheelResultInline b{font:800 13px/1.2 Barlow,system-ui;color:#fff}
.mWheel .acWheelResultInline small{font:600 11px/1.2 Barlow,system-ui;color:#c4ceee}
.mWheel .mWres:empty,
.mWheel .mWres[hidden]{display:none!important;margin:0!important;padding:0!important;min-height:0!important}
