:root{
  --red:#9f2926;
  --red-dark:#761d1b;
  --red-soft:#c95d58;
  --pink:#f8dedb;
  --cream:#fffaf4;
  --paper:#fffdf9;
  --ink:#342826;
  --muted:#746a66;
  --line:#ead9d2;
  --gold:#c99a45;
  --shadow:0 18px 42px rgba(89,49,43,.10);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Verdana,Arial,sans-serif;color:var(--ink);background:var(--cream)}
body{
  background-image:
    linear-gradient(rgba(159,41,38,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(159,41,38,.028) 1px,transparent 1px);
  background-size:18px 18px;
}
button,select,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.topbar{
  padding:18px 28px;
  color:var(--red-dark);
  background:
    linear-gradient(rgba(255,253,249,.97),rgba(255,247,242,.97)),
    repeating-linear-gradient(0deg,rgba(159,41,38,.11) 0 1px,transparent 1px 5px),
    repeating-linear-gradient(90deg,rgba(159,41,38,.11) 0 1px,transparent 1px 5px);
  border-bottom:5px solid var(--red);
}
.brand{display:flex;align-items:center;gap:13px}
.mark{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  color:var(--red);background:#fff0ed;border:1px solid #d9aaa5;font-size:26px
}
.brand h1{margin:0;font-size:28px}
.brand p{margin:4px 0 0;color:var(--muted);font-size:11px}

.shell{max-width:1180px;margin:20px auto;padding:0 14px 40px}
.hero,.card{
  border:1px solid var(--line);border-radius:20px;background:rgba(255,253,249,.98);
  box-shadow:var(--shadow)
}
.hero{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:22px;border-top:5px solid var(--red);margin-bottom:14px
}
.hero h2{margin:8px 0 6px;color:#63312d;font-size:32px}
.hero p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.hero-score{
  width:112px;height:112px;flex:0 0 112px;border-radius:26px;
  display:grid;place-items:center;text-align:center;color:#fff;
  background:linear-gradient(145deg,var(--red-dark),var(--red));border:4px solid var(--gold)
}
.hero-score span{font-size:35px;font-weight:900;color:#ffe1a6}
.hero-score small{font-size:8px;font-weight:900;letter-spacing:.7px}

.card{padding:18px;margin-bottom:14px}
.section-title,.result-summary-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px
}
.section-title h3,.result-summary-head h3{margin:4px 0 0;color:#63312d;font-size:20px}
.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:900;color:var(--red-soft)}
.muted{color:var(--muted)}

.filters{
  display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px
}
label span{
  display:block;margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:900
}
select,input{
  width:100%;height:42px;padding:0 10px;border:1px solid #dfcbc4;border-radius:11px;
  background:#fffefa;color:var(--ink);outline:none
}
select:focus,input:focus{border-color:var(--red-soft);box-shadow:0 0 0 4px rgba(159,41,38,.08)}
button{
  border:0;border-radius:11px;padding:10px 14px;font-weight:900
}
.primary,.launch-spin-btn{
  color:#fff;background:linear-gradient(135deg,var(--red-dark),var(--red));
  box-shadow:0 8px 18px rgba(118,29,27,.14)
}
.ghost{color:#782f2b;background:#fffdf9;border:1px solid #dfc7c0}
.primary{align-self:end;height:42px}

.result-summary-head p{margin:5px 0 0;font-size:11px}
.launch-spin-btn{font-size:14px;padding:13px 18px}
.challenge-summary-grid{
  display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;margin:10px 0 16px
}
.challenge-summary-grid>div{
  padding:10px;border-radius:12px;background:#fff0ed;border:1px solid #e8ccc5
}
.challenge-summary-grid span{display:block;color:var(--muted);font-size:7px;font-weight:900;text-transform:uppercase}
.challenge-summary-grid strong{display:block;margin-top:4px;color:#63312d;font-size:12px}

.finalist-preview h4{margin:0 0 8px;color:#63312d}
.finalist-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px}
.finalist{
  display:flex;justify-content:space-between;gap:8px;padding:8px;border-radius:10px;
  background:#fff0ed;border:1px solid #e8ccc5
}
.finalist strong{font-size:9px;color:#63312d}
.finalist span{font-size:8px;color:var(--red)}

.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;background:#fffdf9}
th,td{padding:9px;border-bottom:1px solid #eee1dc;text-align:left;font-size:9px}
th{
  color:#74231f;background:#fff0ed;text-transform:uppercase;font-size:7px;letter-spacing:.7px
}
.rank-1 td{background:#fff3df}

.empty-state{text-align:center;padding:42px 18px}
.empty-icon{font-size:48px;color:var(--red)}
.empty-state h3{color:#63312d}
.message{
  position:fixed;right:16px;bottom:16px;z-index:2000;padding:12px 14px;border-radius:11px;
  color:#fff;background:var(--red-dark);box-shadow:var(--shadow)
}

/* FULLSCREEN EVENT SPIN */
.spin-modal-open{overflow:hidden}
.event-spin-modal{
  position:fixed;inset:0;z-index:1500;
  display:grid;place-items:center;
  color:#fff;background:
    radial-gradient(circle at 50% 30%,rgba(201,93,88,.24),transparent 30%),
    linear-gradient(145deg,#35110f,#5e1816 55%,#761d1b);
}
.event-spin-modal::before{
  content:"";position:absolute;inset:0;opacity:.16;pointer-events:none;
  background:
    repeating-linear-gradient(0deg,rgba(255,255,255,.3) 0 1px,transparent 1px 7px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.3) 0 1px,transparent 1px 7px)
}
.event-spin-close{
  position:absolute;right:18px;top:14px;z-index:3;width:44px;height:44px;padding:0;
  border-radius:50%;font-size:28px;color:#fff;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.3)
}
.event-spin-stage{
  position:relative;z-index:2;width:min(96vw,1500px);height:96vh;
  display:grid;grid-template-rows:auto minmax(0,1fr);align-items:center;text-align:center
}
.event-spin-header{padding:8px 70px 0}
.event-spin-kicker{font-size:12px;letter-spacing:4px;font-weight:900;color:#ffd99a}
.event-spin-header h1{
  margin:8px 0 4px;font-size:clamp(30px,4.5vw,68px);line-height:1;color:#fff
}
.event-spin-header p{margin:0;color:#f5cfca;font-size:clamp(12px,1.5vw,22px)}

.countdown-stage{
  display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0
}
.anticipation-text{
  font-size:clamp(22px,3vw,46px);font-weight:900;color:#ffe7df;animation:pulseText 1s ease-in-out infinite alternate
}
.countdown-number{
  margin-top:14px;font-size:clamp(100px,20vw,280px);line-height:.8;font-weight:900;color:#ffd99a;
  text-shadow:0 14px 55px rgba(0,0,0,.35)
}
@keyframes pulseText{from{opacity:.6;transform:scale(.98)}to{opacity:1;transform:scale(1.02)}}

.fullscreen-wheel-stage{
  min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,28%);
  align-items:center;gap:20px;padding:0 36px 20px
}
.fullscreen-wheel-wrap{
  position:relative;justify-self:center;height:min(72vh,820px);aspect-ratio:1
}
#wheel{width:100%;height:100%;filter:drop-shadow(0 18px 45px rgba(0,0,0,.35))}
.fullscreen-pointer{
  position:absolute;top:-8px;left:50%;transform:translateX(-50%);z-index:3;
  color:#ffd99a;font-size:44px
}
.fullscreen-wheel-center{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:86px;height:86px;border-radius:50%;display:grid;place-items:center;
  background:#fffaf4;color:var(--red-dark);font-size:34px;font-weight:900;border:8px solid #6d211e
}
.wheel-status{
  align-self:center;padding:22px;border:1px solid rgba(255,255,255,.2);border-radius:20px;
  background:rgba(255,255,255,.08);font-size:clamp(18px,2.2vw,34px);font-weight:900;color:#ffe7df
}

.fullscreen-winner-stage{
  display:flex;min-height:0;height:100%;flex-direction:column;align-items:center;justify-content:center
}
.winner-star{
  width:110px;height:110px;border-radius:34px;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--gold),var(--red));font-size:58px;
  box-shadow:0 18px 55px rgba(0,0,0,.3)
}
.fullscreen-winner-stage h1{
  margin:16px 0 8px;font-size:clamp(44px,7vw,110px);line-height:.95
}
.fullscreen-winner-stage p{margin:0;color:#f6cec8;font-size:clamp(14px,2vw,28px)}
.event-spin-again{
  margin-top:22px;color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.35)
}

.confetti-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:1900}
.confetti{
  position:absolute;top:-20px;width:12px;height:20px;border-radius:2px;
  animation:fall 3s linear forwards
}
@keyframes fall{
  from{transform:translateY(-20px) rotate(0);opacity:1}
  to{transform:translateY(110vh) rotate(960deg);opacity:0}
}

/* Event-display target: fit without scrolling at 1366x768 and 17" displays. */
@media(max-height:820px) and (min-width:900px){
  .event-spin-stage{height:97vh}
  .event-spin-header h1{font-size:44px}
  .event-spin-header p{font-size:14px}
  .fullscreen-wheel-wrap{height:min(68vh,590px)}
  .fullscreen-wheel-center{width:64px;height:64px;border-width:5px;font-size:25px}
  .fullscreen-pointer{font-size:32px}
}

@media(max-width:800px){
  .topbar{padding:12px}
  .mark{width:40px;height:40px;font-size:20px}
  .brand h1{font-size:19px}
  .brand p{font-size:8px}
  .shell{margin:9px auto;padding:0 7px 22px}
  .hero{padding:11px;border-radius:14px}
  .hero h2{font-size:20px}
  .hero p{font-size:8px}
  .hero-score{width:62px;height:62px;flex-basis:62px;border-radius:16px}
  .hero-score span{font-size:20px}
  .hero-score small{font-size:6px}
  .card{padding:11px;border-radius:14px}
  .filters{grid-template-columns:1fr 1fr;gap:6px}
  label span{font-size:7px}
  select,input,.primary{height:36px;font-size:9px}
  .challenge-summary-grid{grid-template-columns:1fr 1fr}
  .result-summary-head{align-items:flex-start;flex-direction:column}
  .launch-spin-btn{width:100%}
  .finalist-list{grid-template-columns:1fr 1fr}
  .event-spin-header{padding:10px 45px 0}
  .fullscreen-wheel-stage{
    grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:0 8px 12px;gap:5px
  }
  .fullscreen-wheel-wrap{height:min(64vh,520px)}
  .wheel-status{padding:8px 12px;font-size:13px}
}

#umoorFilterWrap.hidden,#committeeFilterWrap.hidden,#topNWrap.hidden,#eventFilterWrap.hidden,#dateFilterWrap.hidden{display:none!important}
.topbar{position:relative;padding-top:112px!important}.topbar::before{content:"";position:absolute;left:0;right:0;top:0;height:100px;background:repeating-linear-gradient(0deg,rgba(159,41,38,.7) 0 2px,transparent 2px 7px),repeating-linear-gradient(90deg,rgba(159,41,38,.7) 0 2px,transparent 2px 7px),#fff0ed;opacity:.34;pointer-events:none}
@media(max-width:700px){.topbar{padding-top:50px!important}.topbar::before{height:42px}}
