/* All V22 layout changes are mobile-only. Desktop >=761px is frozen. */
@media(max-width:760px){
.top .top-inner{padding-top:11px;padding-bottom:9px;align-items:center;gap:10px}
.top .brand{width:114px;height:38px;flex:none}.top .brand img{width:100%;height:100%;object-fit:contain}
.top .countdown{margin-left:auto;align-items:flex-end;gap:3px}.top .countdown>small{font-size:9px;line-height:1.3}.top #countdown{font-size:15px;gap:3px;align-items:center}.top .count-day{font-size:19px}.top .count-day small{font-size:10px}.top .count-cell{min-width:24px;height:25px;font-size:13px}.top #countdown>i{font-size:12px}
.top .account-wrap{padding-bottom:10px}.top .balances{min-height:44px;font-size:11px;padding:7px 10px;gap:8px}.top .balances>span{gap:4px}.top .balances b{font-size:19px}.top .balances .rewards-toggle{font-size:11px}.top .summary-emoji{display:none}
.campaign{background:radial-gradient(ellipse at 85% 48%,#95662b25,transparent 63%),linear-gradient(140deg,#17130e,#100f0d)}
.campaign .campaign-inner{display:grid;grid-template-columns:minmax(0,1fr) 136px;align-items:center;gap:10px 8px;min-height:0;height:auto;padding-top:16px;padding-bottom:14px}
.campaign .campaign-copy{grid-column:1;grid-row:1;width:auto;max-width:none;padding:0;z-index:2}
.campaign .mobile-title{font-size:25px;line-height:1.24;letter-spacing:-.025em;margin:0 0 10px}
.campaign .campaign-copy>p{font-size:11px;line-height:1.65;margin:0;color:#deceac;max-width:210px;text-wrap:pretty}
.campaign .campaign-cta{font-size:12px;min-height:40px;margin-top:13px;padding:8px 18px}
.campaign .rules-link{display:block;min-height:32px;margin:5px 0 0;padding:6px 0;font-size:11px;text-align:left}
.campaign .campaign-art{display:none}
.campaign .desktop-mascot{display:block;position:relative;grid-column:2;grid-row:1;left:auto;right:auto;bottom:auto;top:auto;align-self:end;justify-self:end;width:142px;height:190px;aspect-ratio:auto;z-index:1;pointer-events:none;filter:drop-shadow(-3px 7px 5px #0005)}
.campaign .desktop-mascot>img{display:block;width:100%;height:100%;object-fit:contain;filter:brightness(.98) saturate(.94)}
.campaign .mascot-contact-shadow{position:absolute;left:12%;right:6%;bottom:3%;height:6%;border-radius:50%;background:radial-gradient(ellipse,#0009,transparent 70%);filter:blur(3px)}
.campaign .wheel-benefits{grid-column:1/-1;grid-row:2;position:static;inset:auto;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:1px 0 0;padding:12px 0 0;min-height:49px;border-top:1px solid #80653540}
.campaign .benefit-item{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;padding:0 6px}.campaign .benefit-item svg{width:20px;height:20px;flex:none}.campaign .benefit-item small{font-size:10px;line-height:1.35}.campaign .benefit-item b{font-size:12px;line-height:1.5}.campaign .benefit-item>span{display:flex;flex-direction:column;gap:1px}
.activity-body>.hero{padding-top:0;padding-bottom:3px}.hero .hero-grid{gap:0}.hero .wheel-area{padding-top:16px;padding-bottom:7px}.hero .wheel{width:min(calc(100% - 14px),360px);margin:0 auto 8px}.hero .wheel-caption{margin-top:5px;min-height:30px}.hero .wheel-caption button{font-size:12px;min-height:30px;padding:4px 8px}
#tasks{padding-top:15px;padding-bottom:22px}#tasks h2{font-size:20px;margin-bottom:16px}
#tasks .tasks{gap:12px}#tasks .task{padding:16px;min-height:166px}#tasks .task>h3{font-size:16px;margin:0 0 8px;gap:7px}#tasks .task>h3 svg{width:20px;height:20px}#tasks .task>p{font-size:11px;line-height:1.6;max-width:calc(100% - 95px);margin:0 0 12px}
#tasks .task-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding-right:0;max-width:calc(100% - 119px)}
#tasks .task-bottom .orange{justify-self:start;min-height:38px;font-size:12px;padding:8px 16px}
#tasks .progress{min-width:0;width:100%;font-size:10px;line-height:1.4}#tasks .progress b{white-space:nowrap}#tasks .track{margin-top:6px;height:4px}
#tasks .task-scene{width:163px;height:163px;right:-13px;bottom:-15px;mask-image:linear-gradient(90deg,transparent,#000 25%)}
#tasks .secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#tasks .secondary button{min-height:76px;padding:12px 11px;display:grid;grid-template-columns:minmax(0,1fr) 8px;grid-template-rows:auto auto;gap:6px 5px;align-items:center}
#tasks .secondary button:last-child{grid-column:auto}
#tasks .secondary .task-label{grid-column:1;grid-row:1;font-size:13px;gap:6px;line-height:1.3;text-shadow:0 1px 4px #000}
#tasks .secondary .task-label svg,#tasks .secondary button:last-child .task-label svg{width:17px;height:17px;flex:none}
#tasks .secondary button>strong{grid-column:1;grid-row:2;justify-self:start;margin-left:23px;font-size:12px;line-height:1.3}
#tasks .secondary button>span:last-child{grid-column:2;grid-row:1/3;font-size:17px;align-self:center}
#tasks .secondary button[data-task-key] .task-row-scene{width:90px;height:90px;right:-13px;top:50%;opacity:.25;mask-image:linear-gradient(90deg,transparent,#000 50%)}
#ranking{padding-top:23px;padding-bottom:22px}.ranking-heading{margin-bottom:16px}#ranking .ranking-heading h2{font-size:20px;gap:7px}#ranking h2 small{display:none}.rank-sample-note{font-size:9px}
#ranking .champion-panel{padding:15px 16px 17px}#ranking .champion-panel:before{width:190px;height:130px;right:-50px;top:-99px;opacity:.24}
#ranking .champion-spotlight{grid-template-columns:108px minmax(0,1fr);min-height:132px;gap:12px;padding-bottom:14px}#ranking .champion-wreath{width:108px}#ranking .champion-copy{gap:6px}#ranking .champion-user{font-size:24px}#ranking .champion-earned{font-size:11px}#ranking .champion-money{font-size:29px;margin-top:3px}
#ranking .runner-list{padding-top:1px}#ranking .runner{min-height:79px;padding:13px 0;grid-template-columns:46px minmax(0,1fr) auto;gap:10px}#ranking .runner-medal{width:46px;height:51px}#ranking .runner-medal>b{font-size:26px}#ranking .runner-identity>b{font-size:16px}#ranking .runner-identity>small{font-size:11px}#ranking .runner>strong{font-size:23px}
#ranking .table-box{padding:14px}#ranking .ranks th{padding-top:8px;padding-bottom:8px}#ranking .ranks td{height:32px;padding-top:5px;padding-bottom:5px}#ranking .rank-personal{padding-top:17px}
.foot{padding-top:18px;padding-bottom:20px;font-size:11px}.foot button{font-size:11px;min-height:34px}
}
@media(max-width:370px){
.top .brand{width:100px}.top .balances{font-size:10px;gap:6px;padding-left:8px;padding-right:8px}.top .balances b{font-size:17px}.top #countdown{font-size:13px;gap:2px}.top .count-day{font-size:17px}.top .count-cell{min-width:21px;height:23px;font-size:12px}
.campaign .campaign-inner{grid-template-columns:minmax(0,1fr) 108px;gap:10px 6px}.campaign .mobile-title{font-size:20px}.campaign .campaign-copy>p{font-size:10px}.campaign .desktop-mascot{width:108px;height:160px}.campaign .benefit-item{gap:4px;padding:0 3px}.campaign .benefit-item svg{width:17px;height:17px}.campaign .benefit-item small{font-size:9px}.campaign .benefit-item b{font-size:11px}
#tasks .task{padding:14px;min-height:164px}#tasks .task>h3{font-size:15px}#tasks .task-bottom{max-width:calc(100% - 98px)}#tasks .task>p{max-width:calc(100% - 83px);font-size:10px}#tasks .task-scene{width:143px;height:143px;right:-19px;bottom:-9px}#tasks .secondary button{padding:11px 9px}#tasks .secondary .task-label{font-size:12px;gap:5px}#tasks .secondary button>strong{font-size:11px;margin-left:22px}
#ranking .champion-spotlight{grid-template-columns:90px minmax(0,1fr);gap:8px}#ranking .champion-wreath{width:90px}#ranking .champion-money{font-size:26px}#ranking .champion-user{font-size:22px}#ranking .runner{grid-template-columns:40px minmax(0,1fr) auto;gap:7px}#ranking .runner-medal{width:40px;height:46px}#ranking .runner-identity>b{font-size:15px}#ranking .runner>strong{font-size:21px}
}
@media(max-width:760px) and (hover:none) and (pointer:coarse){
#tasks .task:active,#tasks .secondary button:active{border-color:#d7b36b;background:#29241e}
#tasks .task:active .task-scene{opacity:1;filter:saturate(1.05) brightness(1.4)}
#tasks .secondary button[data-task-key]:active .task-row-scene{opacity:.96;filter:saturate(1.05) brightness(1.4)}
}
