:root{
  --occw-bg:#eef5fb;
  --occw-card:#fff;
  --occw-text:#071936;
  --occw-muted:#516a87;
  --occw-line:#cfe0f2;
  --occw-blue:#135fca;
  --occw-green:#17a64a;
  --occw-red:#e9422e;
  --occw-orange:#f28b1c;
  --occw-gold:#f4bb44;
  --occw-shadow:0 12px 34px rgba(18,52,86,.10);
}
*{box-sizing:border-box}
#occ-screen-wheel.occw-screen{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--occw-text);
  background:
    radial-gradient(circle at 10% -10%, rgba(56,133,220,.14), transparent 30%),
    radial-gradient(circle at 90% 100%, rgba(56,133,220,.10), transparent 28%),
    linear-gradient(180deg,#f9fcff 0%,var(--occw-bg) 100%);
}
.occw-screen{
  width:min(1720px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:16px 28px 16px;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:14px;
}
.occw-topbar{
  display:grid;
  grid-template-columns:minmax(280px,460px) 1fr minmax(220px,310px);
  align-items:center;
  gap:20px;
}
.occw-pill,.occw-count{
  background:rgba(255,255,255,.94);
  border:1px solid var(--occw-line);
  border-radius:18px;
  box-shadow:var(--occw-shadow);
}
.occw-student{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:78px;
  padding:12px 24px;
}
.occw-student img{width:56px;height:56px}
.occw-student span{
  display:block;
  color:#0d2b58;
  font-size:22px;
  line-height:1.1;
}
.occw-student strong{
  display:block;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.occw-count{
  justify-self:center;
  padding:15px 70px;
  font-size:36px;
  line-height:1;
  font-weight:900;
}
.occw-time{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 20px;
}
.occw-time img{width:38px;height:38px}
.occw-time span{
  color:#115db8;
  font-size:26px;
  font-weight:800;
}
.occw-time strong{
  color:#115db8;
  font-size:46px;
  line-height:1;
}
.occw-main{
  background:rgba(255,255,255,.78);
  border:1px solid var(--occw-line);
  border-radius:22px;
  box-shadow:var(--occw-shadow);
  padding:10px 40px 12px;
  min-height:0;
}
.occw-heading{
  text-align:center;
  margin-bottom:10px;
}
.occw-heading h1{
  margin:0;
  font-size:clamp(48px,5vw,72px);
  line-height:1;
  letter-spacing:-.05em;
  font-weight:950;
}
.occw-heading p{
  margin:8px 0 0;
  font-size:24px;
  color:#34506f;
}
.occw-content{
  display:grid;
  grid-template-columns:minmax(0,780px) minmax(0,420px);
  justify-content:center;
  align-items:center;
  gap:72px;
  width:100%;
  max-width:100%;
  min-width:0;
}
.occw-wheel-zone{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  max-width:100%;
  min-width:0;
}
.occw-pointer{
  position:absolute;
  top:-5px;
  left:50%;
  z-index:5;
  transform:translateX(-50%);
  width:60px;
  height:92px;
  background:linear-gradient(180deg,#ffe08a,#e5a91e);
  clip-path:path("M30 0 C45 0 55 10 55 25 C55 44 39 70 30 92 C21 70 5 44 5 25 C5 10 15 0 30 0 Z");
  filter:drop-shadow(0 5px 7px rgba(40,30,10,.22));
}
.occw-pointer::before{
  content:"";
  position:absolute;
  top:11px;
  left:50%;
  width:30px;
  height:30px;
  border-radius:50%;
  transform:translateX(-50%);
  background:#f7c652;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.35);
}
.occw-wheel{
  --size:min(58vh,560px);
  width:var(--size);
  height:var(--size);
  position:relative;
  border-radius:50%;
  background:var(--wheel-gradient, conic-gradient(from -30deg,#7fdc8b 0deg 60deg,#5aa9ee 60deg 120deg,#3bc3c0 120deg 180deg,#a8d955 180deg 240deg,#5ba6e8 240deg 300deg,#3fbdb2 300deg 360deg));
  border:14px solid var(--occw-gold);
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,.55),
    0 18px 36px rgba(18,52,86,.16);
  transform:rotate(0deg);
  transition:transform 4.2s cubic-bezier(.12,.72,.18,1);
  transform-origin:center center;
}
.occw-wheel::before{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%;
  border:2px solid rgba(162,106,18,.5);
  pointer-events:none;
}
.occw-wheel::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255,255,255,.95) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(30deg, transparent calc(50% - 1.5px), rgba(255,255,255,.95) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(-30deg, transparent calc(50% - 1.5px), rgba(255,255,255,.95) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  pointer-events:none;
}
.occw-wheel span{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  width:132px;
  max-width:min(132px, 18vw);
  transform:
    rotate(calc(var(--i) * 60deg + 30deg))
    translateY(calc(var(--size) * -0.31))
    rotate(calc((var(--i) * -60deg) - 30deg));
  transform-origin:center center;
  margin-left:-66px;
  margin-top:-26px;
  color:#071936;
  text-align:center;
  font-size:clamp(10px, 1.15vw, 24px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.02em;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.occw-wheel span::before{content:attr(data-label)}
.occw-center{
  position:absolute;
  z-index:6;
  left:50%;
  top:50%;
  width:130px;
  height:130px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:6px solid var(--occw-gold);
  background:#fff;
  color:#071936;
  font-size:30px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(18,52,86,.15);
}
.occw-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin-top:16px;
}
.occw-spin{
  min-width:360px;
  height:70px;
  border:0;
  border-radius:14px;
  color:#fff;
  font-size:30px;
  font-weight:900;
  cursor:pointer;
  background:linear-gradient(180deg,var(--action-top,#22b84e),var(--action-bottom,#0c9b3b));
  box-shadow:0 12px 24px rgba(15,154,60,.22);
}
.occw-spin span{font-size:36px;margin-right:10px}
.occw-next{
  height:58px;
  padding:0 34px;
  border-radius:12px;
  border:2px solid #afc9ea;
  background:#fff;
  color:#115db8;
  font-size:22px;
  font-weight:800;
  cursor:pointer;
}
.occw-next span{font-size:32px;vertical-align:-2px;margin-left:10px}
.occw-next:disabled,
.occw-spin:disabled,
.occw-center:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.occw-result{
  min-height:38px;
  margin-top:8px;
  color:#071936;
  font-size:30px;
  font-weight:900;
  text-align:center;
}
.occw-list-card{
  width:100%;
  max-width:420px;
  background:#fff;
  border:1px solid var(--occw-line);
  border-radius:18px;
  box-shadow:var(--occw-shadow);
  padding:26px 30px;
}
.occw-list-card h2{
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:2px solid #d4e1f0;
  text-align:center;
  font-size:32px;
  line-height:1;
  letter-spacing:-.03em;
}
.occw-list{
  display:flex;
  flex-direction:column;
}
.occw-list-item{
  min-height:64px;
  display:flex;
  align-items:center;
  gap:18px;
  border-bottom:1px solid #d9e4f2;
  font-size:25px;
  font-weight:850;
}
.occw-list-item:last-child{border-bottom:0}
.occw-list-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-size:24px;
  font-weight:900;
  background:var(--icon-bg,#1baa4e);
}
.occw-footer{
  min-height:78px;
  display:flex;
  align-items:center;
  gap:34px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--occw-line);
  border-radius:18px;
  box-shadow:var(--occw-shadow);
  padding:14px 44px;
}
.occw-score{
  display:flex;
  align-items:center;
  gap:18px;
  padding-right:36px;
  border-right:1px solid #b9cee5;
}
.occw-score img,.occw-info img{width:44px;height:44px}
.occw-score span{font-size:24px;font-weight:800;color:#115db8}
.occw-score strong{font-size:48px;color:#115db8;line-height:1}
.occw-info{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:24px;
  color:#115db8;
}
.occw-screen[data-wheel-type="penalty"]{
  --wheel-gradient:conic-gradient(from -30deg,#e74432 0deg 60deg,#c93030 60deg 120deg,#f47e1e 120deg 180deg,#ee9626 180deg 240deg,#f1b535 240deg 300deg,#eaae30 300deg 360deg);
  --action-top:#ff5b32;
  --action-bottom:#e64423;
}
.occw-screen[data-wheel-type="penalty"] .occw-spin{
  box-shadow:0 12px 24px rgba(232,68,35,.20);
}
@media (max-width:1180px){
  .occw-screen{
    width:100%;
    max-width:100%;
    padding:14px 14px 12px;
  }
  .occw-topbar{grid-template-columns:1fr;gap:10px}
  .occw-count{justify-self:stretch;text-align:center;padding:12px 20px;font-size:28px}
  .occw-content{grid-template-columns:1fr;gap:24px}
  .occw-list-card{max-width:none;width:100%}
  .occw-wheel{--size:min(78vw,520px)}
  .occw-student span{font-size:18px}
  .occw-student strong{font-size:24px}
  .occw-time span{font-size:20px}
  .occw-time strong{font-size:36px}
}
@media (max-width:768px){
  #occ-screen-wheel.occw-screen{
    overflow-x:hidden;
  }
  .occw-screen{
    padding:12px 12px 10px;
    gap:10px;
  }
  .occw-topbar{
    grid-template-columns:1fr;
    gap:8px;
  }
  .occw-pill,
  .occw-count{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .occw-student{
    min-height:auto;
    padding:10px 14px;
    gap:12px;
  }
  .occw-student img{
    width:44px;
    height:44px;
  }
  .occw-student span{font-size:15px}
  .occw-student strong{font-size:20px}
  .occw-count{
    padding:10px 16px;
    font-size:22px;
  }
  .occw-time{
    min-height:auto;
    padding:10px 14px;
  }
  .occw-time img{width:32px;height:32px}
  .occw-time span{font-size:16px}
  .occw-time strong{font-size:32px}
  .occw-main{
    padding:12px 14px 14px;
    min-width:0;
  }
  .occw-heading{
    margin-bottom:8px;
  }
  .occw-heading h1{
    font-size:clamp(32px,8vw,42px);
  }
  .occw-heading p{
    font-size:16px;
    line-height:1.35;
  }
  .occw-content{
    gap:18px;
  }
  .occw-wheel-zone{
    gap:4px;
    padding-top:8px;
  }
  .occw-pointer{
    width:48px;
    height:74px;
    top:-2px;
  }
  .occw-wheel{
    --size:min(86vw,420px);
    border-width:10px;
    max-width:100%;
  }
  .occw-wheel span{
    width:min(98px,22vw);
    max-width:min(98px,22vw);
    margin-left:calc(min(98px,22vw) / -2);
    font-size:clamp(11px,2.8vw,18px);
  }
  .occw-center{
    width:min(96px,22vw);
    height:min(96px,22vw);
    font-size:clamp(18px,4.5vw,24px);
    border-width:5px;
  }
  .occw-actions{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    width:100%;
    max-width:min(86vw,420px);
    margin-top:14px;
  }
  .occw-spin,
  .occw-next{
    width:100%;
    min-width:0;
    min-height:48px;
    height:auto;
    font-size:16px;
    padding:12px 18px;
  }
  .occw-spin span{
    font-size:20px;
    margin-right:8px;
  }
  .occw-next span{
    font-size:22px;
  }
  .occw-result{
    font-size:18px;
    line-height:1.35;
    max-width:min(86vw,420px);
    padding:0 8px;
  }
  .occw-list-card{
    padding:18px 16px;
  }
  .occw-list-card h2{
    font-size:22px;
    margin-bottom:12px;
    padding-bottom:10px;
  }
  .occw-list-item{
    min-height:52px;
    font-size:16px;
    gap:12px;
  }
  .occw-list-icon{
    width:36px;
    height:36px;
    font-size:18px;
    flex-shrink:0;
  }
  .occw-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:12px 16px;
    min-height:auto;
  }
  .occw-score{
    border-right:0;
    border-bottom:1px solid #b9cee5;
    padding:0 0 12px;
    width:100%;
  }
  .occw-score span{font-size:16px}
  .occw-score strong{font-size:28px}
  .occw-info{
    font-size:15px;
    line-height:1.35;
    align-items:flex-start;
  }
  .occw-info img{
    width:32px;
    height:32px;
  }
}
@media (max-width:480px){
  .occw-screen{
    padding:10px 10px 8px;
  }
  .occw-heading h1{
    font-size:28px;
  }
  .occw-heading p{
    font-size:15px;
  }
  .occw-wheel{
    --size:min(90vw,340px);
    border-width:8px;
  }
  .occw-wheel span{
    width:min(84px,24vw);
    max-width:min(84px,24vw);
    margin-left:calc(min(84px,24vw) / -2);
    font-size:clamp(10px,3vw,15px);
    -webkit-line-clamp:2;
  }
  .occw-center{
    width:min(80px,24vw);
    height:min(80px,24vw);
    font-size:17px;
  }
  .occw-pointer{
    width:42px;
    height:64px;
  }
  .occw-actions,
  .occw-result{
    max-width:min(90vw,340px);
  }
  .occw-count{
    font-size:20px;
  }
}
