/* Wheel presentation only; teams and bracket retain their established layout. */
.tp-page .tp-tabs{margin-top:0}
.tp-page #tp-roster{margin:16px 0;border-bottom:1px solid var(--border)}
.tp-page #tp-roster>summary{padding:12px 0;min-height:48px;cursor:pointer;font-weight:700}
.tp-page #tp-roster>.field{padding-top:12px}
.tp-page #tp-panel-wheel{scroll-margin-top:90px}
.tp-page .tp-wheel-stage{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:32px;align-items:center;max-width:960px;margin:12px auto 24px;padding:24px;background:#fff2c7;color:#17223b;border-radius:24px}
.tp-page .tp-wheel-stage #tp-wheel{display:block;width:100%;height:auto;max-width:520px;margin:0 auto;filter:drop-shadow(0 8px 0 #17223b18)}
.tp-page .tp-wheel-decision{text-align:center;min-width:0}
.tp-page #tp-winner{display:grid;place-content:center;min-height:130px;margin:0 0 20px;font:750 clamp(28px,4vw,46px)/1.08 'Bricolage Grotesque',sans-serif;letter-spacing:-.035em;color:#17223b;overflow-wrap:anywhere}
.tp-page #tp-winner:empty:before{content:'?';font-size:80px;color:#80764a}
.tp-page #tp-spin{min-height:58px;width:100%;font-size:20px;background:#1e5bd6;color:white;border:1px solid #1e5bd6;border-radius:10px;white-space:normal}
.tp-page #tp-spin:disabled{opacity:.65}
.tp-page .tp-wheel-options{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;margin:12px auto;max-width:900px}
.tp-page .tp-wheel-options .tp-check{min-height:44px;max-width:520px}
.tp-page .tp-wheel-history{max-width:900px;margin:16px auto}
.tp-page .tp-wheel-history summary{padding:12px 0;min-height:44px;cursor:pointer}
.tp-page #tp-history{display:flex;gap:10px 26px;flex-wrap:wrap;max-height:200px;overflow:auto}
.tp-page #tp-history li{overflow-wrap:anywhere;max-width:260px;padding:6px}
.tp-page #tp-roster-summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:600px){
 .tp-page .tp-wheel-stage{grid-template-columns:1fr;gap:8px;padding:16px;margin-top:8px;border-radius:18px}
 .tp-page .tp-wheel-stage #tp-wheel{max-width:320px}
 .tp-page #tp-winner{min-height:68px;margin:0 0 12px;font-size:28px}
 .tp-page #tp-winner:empty:before{font-size:40px}
 .tp-page #tp-spin{font-size:18px;min-height:54px}
 .tp-page .tp-wheel-options{gap:8px}
}
@media(max-height:450px) and (orientation:landscape){
 .tp-page .tp-wheel-stage{grid-template-columns:1fr 1fr;padding:12px;gap:16px}
 .tp-page .tp-wheel-stage #tp-wheel{max-width:220px}
 .tp-page #tp-winner{font-size:26px;min-height:80px}
}
@media print{
 .tp-page #tp-roster,.tp-page .tp-wheel-options,.tp-page #tp-spin{display:none!important}
 .tp-page .tp-wheel-stage{display:block;background:white;padding:0}
 .tp-page .tp-wheel-history>ol{display:block!important;max-height:none}
}
.tp-page .tp-app{scroll-margin-top:84px}
.tp-page .tp-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tp-page .tp-tabs button{min-height:52px;white-space:normal;border-radius:8px}
@media(max-width:600px){.tp-page .tp-tabs button{font-size:12px;padding:8px 6px}}
.tp-page .tp-app :is(button,input:not([type=checkbox]),select){min-height:44px}
.tp-page .tp-tabs button[aria-selected=false]{color:var(--text);background:var(--surface)}
.tp-page a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
.tp-page .back-link{display:none}
.tp-page #theme-toggle{min-width:44px;min-height:44px}
.tp-page .tp-tabs button[aria-selected=true]{background:#1e5bd6;color:#fff;border-color:#1e5bd6}
@media (max-width:600px) {
  #tp-app .btn { min-height:44px; min-width:44px; }
}

@media (max-width:600px) {
  #tp-app label:has(input[type="checkbox"], input[type="radio"]) {
    display:inline-flex; align-items:center; gap:.5rem;
    min-height:44px; min-width:44px; padding:.5rem; box-sizing:border-box;
  }
}
