.activities-heading{padding:8px 0 25px}.activities-heading h1{font-size:clamp(30px,4vw,48px);line-height:1.1;margin:12px 0}.activities-heading p{max-width:650px;color:var(--muted)}.activity-filter{display:flex;gap:12px;margin-bottom:22px;flex-wrap:wrap}.activity-filter input{flex:2;min-width:160px}.activity-filter select{flex:1;min-width:160px}.activity-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.activity-cards .surface,.prize-list,.wheel-stage,.activity-history{padding:25px;min-width:0}.activity-cards h2{font-size:28px;margin:12px 0}.activity-cards p,.activity-cards small{color:var(--muted)}.activity-cards form{display:grid;gap:15px;margin-top:20px}.product-emblem{height:95px;display:grid;place-items:center;background:linear-gradient(120deg,transparent,#2084bd20);margin:16px 0;border-block:1px solid var(--border)}.product-emblem svg{width:48px;height:48px;color:var(--cyan)}.activity-history{margin:24px 0}.activity-history summary{cursor:pointer;font-weight:700}.activity-history p{overflow-wrap:anywhere}.activity-wheel-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.wheel-stage{text-align:center}.wheel-disc{width:min(260px,75vw);aspect-ratio:1;margin:22px auto;border:10px solid var(--border);border-radius:50%;background:repeating-conic-gradient(#1785bd 0deg 45deg,#11354d 45deg 90deg);display:grid;place-items:center;box-shadow:0 0 0 8px #349fe516}.wheel-disc span{display:grid;place-content:center;width:105px;aspect-ratio:1;border-radius:50%;background:#081624;color:white;font-size:22px;font-weight:800;border:3px solid #65c4ff}.wheel-disc.resolved{animation:reward-turn 2s ease-out}.prize-list>div{display:grid;grid-template-columns:30px 1fr;gap:4px 12px;padding:15px 0;border-bottom:1px solid var(--border)}.prize-list small{grid-column:2;color:var(--muted)}.prize-list>div>span{color:var(--cyan)}.activity-result{padding:12px;border:1px solid var(--cyan)}.task-counter{font-size:38px;display:block;color:var(--cyan)}.task-counter small{font-size:20px}.activity-task progress{display:block;width:100%;height:9px;margin:18px 0;accent-color:#30a9ed}.activity-empty{grid-column:1/-1;padding:50px!important;text-align:center}.game-admin-form{display:grid;gap:14px;margin:18px 0}.game-admin-form .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-admin-form details{padding:12px;border:1px solid var(--border)}.game-admin-form summary{cursor:pointer}.game-admin-form input,.game-admin-form select{max-width:100%}.control-panel .game-note{color:var(--muted);font-size:13px}.game-table{overflow:auto}.game-table td{max-width:240px;overflow-wrap:anywhere}.control-sidebar nav{max-height:65vh;overflow-y:auto}.game-selected{border:1px solid var(--cyan);padding:18px;margin:20px 0}.game-admin-row{border-bottom:1px solid var(--border);padding:12px 0}.game-admin-row summary{cursor:pointer;font-weight:700}.game-admin-row .fields label{font-size:13px}.activity-cards button:disabled,.wheel-stage button:disabled{opacity:.5;cursor:not-allowed}@keyframes reward-turn{from{transform:rotate(-720deg)}to{transform:rotate(0)}}@media(prefers-reduced-motion:reduce){.wheel-disc.resolved{animation:none}}@media(max-width:760px){.activity-cards,.activity-wheel-layout,.game-admin-form .fields{grid-template-columns:1fr}.activity-cards .surface,.wheel-stage,.prize-list{padding:20px}.control-sidebar nav{max-height:none}.activity-filter>*{width:100%}.game-table td{min-width:100px}}

.product-emblem img{max-width:100%;height:90px;object-fit:contain}.table-wrap{max-width:100%;overflow-x:auto}.table-wrap table{min-width:640px;width:100%}

.wheel-prize-image{grid-column:2;width:160px;max-width:100%;height:80px;object-fit:contain;object-position:center}

.prize-preview{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.prize-preview img{width:160px;max-width:100%;height:80px;object-fit:contain}
.wheel-won-image{display:block;width:min(320px,100%);height:auto;aspect-ratio:2/1;object-fit:contain;margin:14px auto}.wheel-image-missing{font-size:11px;color:var(--muted)}

.prize-preview img[hidden]{display:none!important}

/* Wheel icons represent rewards; server weights remain authoritative. */
.wheel-stage .wheel-disc{position:relative;width:min(340px,75vw,100%);isolation:isolate}.wheel-disc>span{position:relative;z-index:3}.wheel-marker{position:absolute;z-index:2;transform:translate(-50%,-50%);width:50px;height:36px;display:grid;place-items:center;pointer-events:none}.wheel-marker img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #000)}.wheel-marker strong{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#092337;color:#f7dc85;border:1px solid #65c4ff;font-size:14px}.wheel-marker svg{width:24px;height:24px;color:#bdeaff}.wheel-visual-note{font-size:10px;color:var(--muted);line-height:1.5;margin:5px auto;max-width:320px}
@media(max-width:420px){.wheel-marker{width:46px;height:32px}.wheel-disc>span{width:82px}}


/* Equal decorative segments; actual odds stay on the server. */
.wheel-disc.wheel-count-1{background:conic-gradient(#1686bd 0.00000% 100.00000%)}
.wheel-disc.wheel-count-2{background:conic-gradient(#1686bd 0.00000% 50.00000%, #10354c 50.00000% 100.00000%)}
.wheel-disc.wheel-count-3{background:conic-gradient(#1686bd 0.00000% 33.33333%, #10354c 33.33333% 66.66667%, #1686bd 66.66667% 100.00000%)}
.wheel-disc.wheel-count-4{background:conic-gradient(#1686bd 0.00000% 25.00000%, #10354c 25.00000% 50.00000%, #1686bd 50.00000% 75.00000%, #10354c 75.00000% 100.00000%)}
.wheel-disc.wheel-count-5{background:conic-gradient(#1686bd 0.00000% 20.00000%, #10354c 20.00000% 40.00000%, #1686bd 40.00000% 60.00000%, #10354c 60.00000% 80.00000%, #1686bd 80.00000% 100.00000%)}
.wheel-disc.wheel-count-6{background:conic-gradient(#1686bd 0.00000% 16.66667%, #10354c 16.66667% 33.33333%, #1686bd 33.33333% 50.00000%, #10354c 50.00000% 66.66667%, #1686bd 66.66667% 83.33333%, #10354c 83.33333% 100.00000%)}
.wheel-disc.wheel-count-7{background:conic-gradient(#1686bd 0.00000% 14.28571%, #10354c 14.28571% 28.57143%, #1686bd 28.57143% 42.85714%, #10354c 42.85714% 57.14286%, #1686bd 57.14286% 71.42857%, #10354c 71.42857% 85.71429%, #1686bd 85.71429% 100.00000%)}
.wheel-disc.wheel-count-8{background:conic-gradient(#1686bd 0.00000% 12.50000%, #10354c 12.50000% 25.00000%, #1686bd 25.00000% 37.50000%, #10354c 37.50000% 50.00000%, #1686bd 50.00000% 62.50000%, #10354c 62.50000% 75.00000%, #1686bd 75.00000% 87.50000%, #10354c 87.50000% 100.00000%)}
.wheel-count-1 .wheel-marker-1{left:50.000%;top:10.000%}
.wheel-count-2 .wheel-marker-1{left:90.000%;top:50.000%}
.wheel-count-2 .wheel-marker-2{left:10.000%;top:50.000%}
.wheel-count-3 .wheel-marker-1{left:84.641%;top:30.000%}
.wheel-count-3 .wheel-marker-2{left:50.000%;top:90.000%}
.wheel-count-3 .wheel-marker-3{left:15.359%;top:30.000%}
.wheel-count-4 .wheel-marker-1{left:78.284%;top:21.716%}
.wheel-count-4 .wheel-marker-2{left:78.284%;top:78.284%}
.wheel-count-4 .wheel-marker-3{left:21.716%;top:78.284%}
.wheel-count-4 .wheel-marker-4{left:21.716%;top:21.716%}
.wheel-count-5 .wheel-marker-1{left:73.511%;top:17.639%}
.wheel-count-5 .wheel-marker-2{left:88.042%;top:62.361%}
.wheel-count-5 .wheel-marker-3{left:50.000%;top:90.000%}
.wheel-count-5 .wheel-marker-4{left:11.958%;top:62.361%}
.wheel-count-5 .wheel-marker-5{left:26.489%;top:17.639%}
.wheel-count-6 .wheel-marker-1{left:70.000%;top:15.359%}
.wheel-count-6 .wheel-marker-2{left:90.000%;top:50.000%}
.wheel-count-6 .wheel-marker-3{left:70.000%;top:84.641%}
.wheel-count-6 .wheel-marker-4{left:30.000%;top:84.641%}
.wheel-count-6 .wheel-marker-5{left:10.000%;top:50.000%}
.wheel-count-6 .wheel-marker-6{left:30.000%;top:15.359%}
.wheel-count-7 .wheel-marker-1{left:67.355%;top:13.961%}
.wheel-count-7 .wheel-marker-2{left:88.997%;top:41.099%}
.wheel-count-7 .wheel-marker-3{left:81.273%;top:74.940%}
.wheel-count-7 .wheel-marker-4{left:50.000%;top:90.000%}
.wheel-count-7 .wheel-marker-5{left:18.727%;top:74.940%}
.wheel-count-7 .wheel-marker-6{left:11.003%;top:41.099%}
.wheel-count-7 .wheel-marker-7{left:32.645%;top:13.961%}
.wheel-count-8 .wheel-marker-1{left:65.307%;top:13.045%}
.wheel-count-8 .wheel-marker-2{left:86.955%;top:34.693%}
.wheel-count-8 .wheel-marker-3{left:86.955%;top:65.307%}
.wheel-count-8 .wheel-marker-4{left:65.307%;top:86.955%}
.wheel-count-8 .wheel-marker-5{left:34.693%;top:86.955%}
.wheel-count-8 .wheel-marker-6{left:13.045%;top:65.307%}
.wheel-count-8 .wheel-marker-7{left:13.045%;top:34.693%}
.wheel-count-8 .wheel-marker-8{left:34.693%;top:13.045%}
/* Counter-rotate the prize art so it stays level while the wheel spins. */
.wheel-disc.resolved .wheel-marker{animation:wheel-prize-counterturn 2s ease-out}
@keyframes wheel-prize-counterturn{from{transform:translate(-50%,-50%) rotate(720deg)}to{transform:translate(-50%,-50%) rotate(0deg)}}
@media(prefers-reduced-motion:reduce){.wheel-disc.resolved .wheel-marker{animation:none}}
