.material-symbols-outlined{
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  text-align: center;
  width: min(390px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  /* padding to prevent overlap with bottom bar */
  padding-bottom: 80px;
}

.wheel-wrapper {
  position: relative;
  width: 320px;
  margin: 0 auto;
  padding-bottom: 6px;
  line-height: 0;
}

.pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: white;
  z-index: 12;
}

.controls {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 0;
}

.wheel {
  transform: rotate(0deg);
  transition: transform 1.8s cubic-bezier(0.1, 0.9, 0.3, 1);
  transform-origin: 50% 50%;
  will-change: transform;
}

.wheel-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: block;
  margin: 0 auto;
  z-index: 20;
}

.rim-overlay { display: none; }

#spinAllBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

:root {
  --win-blue: #2563eb;
  --lose-red: #e11d48;
  --rim-gray: #9ca3af;
  --divider:  #111111;
  --track-height: 24px;
  --thumb-rest:   24px;
  --thumb-active: 30px;
  --thumb-color:  #003e60;
  --thumb-stroke: #ffffff;
}

.wheel .slice {
  stroke: none;
}

.wheel .outer-ring,
.wheel .hub-ring {
  fill: none;
  stroke: var(--rim-gray);
}
.wheel .outer-ring { stroke-width: 2; }
.wheel .hub-ring   { stroke-width: 1; }
.wheel > circle:first-of-type { fill: #65b360 !important; }

html { background: #ffffff !important; }

/* ===== Overlays ===== */
body.no-scroll { overflow: hidden; }

.overlay[hidden] { display: none !important; }

.overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;              /* above everything */
  display: grid;
  align-items: start;
  justify-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease;
}

.overlay.is-open{
  opacity: 1;
  visibility: visible;
}

.overlay__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.overlay__content{
  position: relative;
  width: min(390px, 100%);
  max-height: calc(100dvh - 24px);
  margin: 12px auto;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  overflow: auto;
  padding: 16px;
}

/* top-centered Close “X” (red) */
.overlay__close{
  position: sticky;
  top: 0;
  margin: -8px auto 8px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #c00;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* simple typography for overlay content */
.overlay__title{
  font-family: "Anton", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  color: #65b360;
  margin: 4px 0 8px;
}
.overlay__section-title{
  font-family: "Anton", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  color: #65b360;
  margin: 12px 0 6px;
}
.overlay__text{
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #174561;
  text-align: left;
  margin: 0 0 10px;
}
.overlay__hr{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 10px 0;
  border: 0;
}

/* Rules image scales to width */
.overlay__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* === Bottom Sticky Bar (Venmo-style with scoop) === */
.stickyBar.sticky-bottom{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 54px;
  background: transparent; /* SVG provides bar fill */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: visible;
  z-index: 100;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* SVG background shape */
.bar-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 -4px 8px rgba(0,0,0,0.15));
}

/* Zones */
.stickyBar .zone{
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1; /* above SVG */
}
/* Left: hamburger + destruct sit together on the left */
.stickyBar .zone.left{
  flex: 1 1 0;
  justify-content: flex-start;
  gap: 20px; /* wider spacing */
  margin-left: calc(24px + env(safe-area-inset-left));
}

#destructBtn {
  margin-left: 8px; /* extra nudge toward center */
}

.stickyBar .zone.right{
  flex: 1 1 0;
  justify-content: flex-end;
  gap: 16px; /* roomier space between Score and Share */
  margin-right: calc(24px + env(safe-area-inset-right));
}
.stickyBar .zone.center{
  flex: 0 0 74px;
  justify-content: center;
  position: relative;
}

/* Action slots */
.stickyBar .neu-slot{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.stickyBar .neu-slot .material-symbols-outlined{
  font-size: 28px;
  line-height: 1;
  color: #0b3c5d;
}

/* Floating Spin button inside scoop */
#simSeasonBtn{
  position: absolute;
  left: 50%;
  top: -56px;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  /* default = GREEN (armed/idle) */
  background: #65b360;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}
#simSeasonBtn.locked{
  /* POST-RUN LOCKED = BLUE */
  background: #173d5d;
}
#simSeasonBtn .mdi{
  font-size: 34px;
  color: #ffffff;
  line-height: 1;
}
#simSeasonBtn:active{ transform: translateX(-50%) scale(0.96); }
.stickyBar.spinning #simSeasonBtn{ opacity: .7; pointer-events: none; }

/* Score */
.stickyBar .score{
  font-weight: 600;
  font-size: 18px;
  color: #0b3c5d;
  background: transparent;
}
#lossCount {
  color: #e11d48; /* red for losses */
}

/* FAB menu */
.fab-menu{
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  min-width: 130px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
}
.fab-menu.open,
.fab-menu.visible{ display: flex; }
#fabMenu .fab-item,
#fabMenu button.fab-item,
#fabMenu a.fab-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #0b3c5d; /* force the blue */

  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#fabMenu .fab-item .mdi,
#fabMenu .fab-item .material-symbols-outlined{
  font-size: 20px;
  pointer-events: none; /* clicks go to the whole item, like before */
}
.fab-label{ font-size: 15px; font-weight: 500; }
#destructBtn span{ color: #c00; }
.stickyBar .zone.left{ position: relative; }
.stickyBar .zone.left:has(#fabMenu.open) .neu-slot:first-of-type {
  box-shadow: none;
}

.stickyBar .zone.left:has(#fabMenu.open) .neu-slot:first-of-type .material-symbols-outlined {
  color: #78b169; /* green */
}

/* ===== Season Header ===== */
.season-header{
  background: #ffffff;
  text-align: center;
  padding: 10px 16px 14px;
  margin: 6px auto 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  max-width: 680px;
}
.season-header__brand{
  margin: 0 0 6px 0;
  font-family: "Anton", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(22px, 7vw, 32px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: #65b360;
  text-shadow:
    0 8px 0 rgba(255,255,255,0.45),
    0 -1px 0 rgba(0,0,0,0.12);
}
.season-header__team{
  margin: 0 0 6px 0;
  font-family: "Anton", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(18px, 6vw, 28px);
  line-height: 1.05;
  letter-spacing: 0.6px;
  color: #0b3c5d;
  text-transform: uppercase;
}
.season-header__blurb{
  margin: 0;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 4.2vw, 18px);
  line-height: 1.3;
  color: #174561;
}

/* ===== Slider ===== */
.probability-slider {
  position: relative;
  z-index: 60;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 0;
  padding-bottom: 28px;
}
.probability-slider input[type="range"]{
  width: calc(100% + var(--thumb-rest));
  margin: 0 calc(-1 * var(--thumb-rest) / 2);
  position: absolute;
  top: 0;
  left: 0;
  height: var(--track-height);
  z-index: 2;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.probability-slider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-rest);
  height: var(--thumb-rest);
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid var(--thumb-stroke);
  transition: all .15s ease;
  margin-top: calc((var(--track-height) - var(--thumb-rest)) / 2);
}
.probability-slider input[type="range"]::-moz-range-thumb{
  width: var(--thumb-rest);
  height: var(--thumb-rest);
  border-radius: 50%;
  background: var(--thumb-color);
  border: 2px solid var(--thumb-stroke);
  transition: all .15s ease;
}
.probability-slider input[type="range"]::-webkit-slider-thumb:active{
  width: var(--thumb-active);
  height: var(--thumb-active);
  margin-top: calc((var(--track-height) - var(--thumb-active)) / 2);
}
.probability-slider input[type="range"]::-moz-range-thumb:active{
  width: var(--thumb-active);
  height: var(--thumb-active);
}
.probability-slider input[type="range"]{ accent-color: var(--thumb-color); }

/* Decorative rail */
.decor-rail {
  position: relative;
  height: var(--track-height);
  background: #dbdbdb;
  z-index: 1;
}
.decor-rail::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background-image: linear-gradient(to right, #ffffff 0 1px, transparent 1px 100%);
  background-size: calc(100% / 20) 100%;
  background-repeat: repeat-x;
}
.decor-rail::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff);
  background-size: 2px 8px, 2px 8px;
  background-position: 25% 50%, 75% 50%;
  background-repeat: no-repeat;
}
.decor-rail .cap {
  position: absolute;
  top: 0;
  width: 8px;
  height: var(--track-height);
}
.decor-rail .cap.left  { left: 0;  background: #ff4d4d; }
.decor-rail .cap.right { right: 0; background: #65b360; }
.decor-rail .center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: var(--track-height);
  background: #003e60;
  transform: translateX(-50%);
}

/* Vegas line */
.vegas-line {
  position: relative;
  height: 0;
  margin-top: 1px;
}
.vegas-line::before {
  content: "";
  position: absolute;
  left: var(--vegas, 60%);
  top: 0;
  height: 14px;
  transform: translateX(-50%);
  border-left: 2px dashed #65b360;
}

/* Labels */
.slider-labels {
  position: relative;
  margin-top: 4px;
  height: 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.slider-labels .label-0 { position: absolute; left: 0; color: #ff4d4d; }
.slider-labels .label-100 {
  position: absolute;
  right: 0;
  color: #65b360;
}
.slider-labels .label-100::after {
  content: "W";
  display: block;
  position: absolute;
  top: -48px;   /* higher, closer to slider */
  right: -1px;  /* nudged right, over green bar */
  font-size: 14px;
  color: #65b360;
}
.slider-labels .label-vegas {
  position: absolute;
  top: 11px;
  left: var(--vegas, 60%);
  transform: translateX(-35%);
  color: #65b360;
}

/* Decorative pointer + hook */
.wheel-container .decorative-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 53.5px;
  z-index: 30;
}
.wheel-container .decorative-hook {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 53.2px;
  z-index: 10;
}
.wheel { position: relative; z-index: 20; }

/* Center disc */
.wheel-container .center-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 30;
}
.wheel-container .center-disc__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1 / 1;
  background: #65b360;
  border-radius: 50%;
}

/* Wheel header */
/* Wheel header */
.wheel-header {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 10px;  /* top/right/left + small bottom */
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 18px;    /* real gap between header and wheel */
}

/* Left */
.wheel-header__odds {
  flex: 0 0 auto;
  white-space: nowrap;

  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 16px);
  color: #65b360;
}

/* Center */
.wheel-header__matchup {
  position: absolute;
  left: 50%;
  top: 6px;                     /* aligns with header padding */
  transform: translateX(-50%);
  width: calc(100% - 140px);    /* reserve ~70px each side for odds/date */
  min-width: 0;

  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;

  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;

  font-family: "Anton", sans-serif;
  font-size: clamp(16px, 5.2vw, 22px);
  line-height: 1.05;
  color: #0b3c5d;
  text-transform: uppercase;

  pointer-events: none;         /* don’t block taps on odds/date */
  z-index: 1;                   /* above header content */
}

/* Right */
.wheel-header__date {
  flex: 0 0 auto;
  white-space: nowrap;

  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: clamp(12px, 3.4vw, 16px);
  color: #b3b3b3;
  line-height: 1;
}

/* Matchup separator (“v.” / “vs” / “@” / “at”) */
.matchup-sep {
  font-weight: 300;
  font-size: 0.85em;
  opacity: 0.90;
  margin: 0; /* gap on parent handles spacing */
}

/* Hide legacy Spin button in the controls block */
#spinBtn { display: none; }

/* Destruct button sizing */
#destructBtn {
  width: 20px;   /* adjust from 44px */
  height: 40px;
}

#destructBtn .material-symbols-outlined {
  font-size: 23px;  /* adjust from 22px */
}

/* Hide Vegas marker + label if prob is 0 */
.game-card[data-vegas-prob="0"] .vegas-line::before,
.game-card[data-vegas-prob="0"] .slider-labels .label-vegas {
  display: none;
}

.game-card {
  margin-bottom: 28px; /* adjust spacing between cards */
}

/* Scale Effect for Active Game Card During Scroll */
.game-card.is-active {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* === Floating Season Status Emoji === */
.season-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 40; /* above center-disc (30) and wheel (20) */

  background: #f0f0f0;  /* backing color */
  border-radius: 50%;   /* circular */
  padding: 6px;         /* space around emoji */
}

.season-status.visible {
  opacity: 1;
  transform: translate(-50%, -49%); /* subtle pop-up */
}

/* Destruct: shrink & pop */
#destructBtn .material-symbols-outlined { transform-origin: 50% 50%; }

@keyframes destructPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.85); }
  70%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}
#destructBtn.destruct-pop .material-symbols-outlined {
  animation: destructPop 240ms ease-out;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #destructBtn.destruct-pop .material-symbols-outlined {
    animation: none;
  }
}

/* PICK A TEAM PAGE STYLES */
@media (max-width: 360px){
  .conf-col{min-width:100%;}
}

body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background:#fff; }
.container { width:min(390px,100%); margin:0 auto; padding:16px 16px 80px; box-sizing:border-box; }

/* Header */
.picker-header{text-align:center;padding:10px 4px 14px;margin:6px auto 10px;box-shadow:0 1px 0 rgba(0,0,0,0.06);}
.picker-title{margin:0 0 6px;font-family:"Anton",sans-serif;font-size:clamp(22px,7vw,32px);line-height:1.05;letter-spacing:.5px;color:#65b360;text-shadow:0 8px 0 rgba(255,255,255,0.45),0 -1px 0 rgba(0,0,0,0.12);}
.picker-blurb{margin:0;font-family:"Oswald",sans-serif;font-weight:300;font-size:clamp(14px,4.2vw,18px);line-height:1.3;color:#174561;}

/* Two-column layout */
.conf-columns{display:flex;flex-wrap:wrap;gap:27px;}
.conf-col{flex:1 1 0;min-width:160px;}
.conf-title{margin:12px 0 6px;font-family:"Oswald",sans-serif;font-weight:600;font-size:14px;letter-spacing:.6px;color:#0b3c5d;text-transform:uppercase;text-align:center;}

/* Divisions */
.division{margin:8px 0 12px;}
.division-title{margin:0 0 4px;font-family:"Oswald",sans-serif;font-weight:300;font-size:12px;color:#9aa7b2;letter-spacing:.4px;text-transform:uppercase;text-align:center;}

/* Teams */
.team-list{display:flex;flex-direction:column;gap:6px;}
.team-card{
  display:block;
  width:85%;          /* narrower box to create more gutter between AFC/NFC */
  margin:0 auto;      /* center within each column */
  padding:8px 10px;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,0.06);
  border:1px solid #eee;
  text-decoration:none;
}
.team-name{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-family:"Anton",sans-serif;
  font-size:15px;
  letter-spacing:.3px;
  color:#0b3c5d;
  text-transform:uppercase;
  line-height:1.1;
}
.team-emoji{font-size:15px;line-height:1;opacity:.9;}

.team-card:active{transform:scale(.98);}
@media(hover:hover){.team-card:hover{box-shadow:0 2px 12px rgba(0,0,0,0.08);}}

/* Stack columns on very narrow screens if needed (safety) */
@media (max-width: 360px){
  .conf-col{min-width:100%;}
}