/*
 * Overview rotation tracker — balance countdown, progress and completed DCs.
 * Scope: the existing Liquid Glass view only. The upcoming-challenges
 * panel, challenge navigation, rotation calculations and Growtopia skin
 * remain unchanged.
 */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation > .cycle-tracker{
  grid-template-columns:minmax(265px,.82fr) minmax(0,1.38fr)!important;
  column-gap:18px!important;
  padding:17px 20px!important;
  align-items:center!important;
  container-type:inline-size;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-clock{
  padding:0!important;
  min-width:0;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .tracker-eyebrow{
  gap:9px!important;
  font-size:10px!important;
  letter-spacing:.8px!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .countdown{
  font-size:clamp(39px,3.1vw,55px)!important;
  letter-spacing:-1.6px!important;
  margin:7px 0 5px!important;
  line-height:1.05!important;
  font-variant-numeric:tabular-nums;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-next-time{
  font-size:12px!important;
  line-height:1.35!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .tracker-help{
  margin:5px 0 0!important;
  font-size:10px!important;
  line-height:1.4!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-status{
  grid-template-columns:minmax(104px,.3fr) minmax(0,1fr)!important;
  gap:16px!important;
  min-width:0;
  padding-left:20px!important;
  border-left:1px solid rgba(170,209,250,.22)!important;
  align-items:center!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-count{
  min-width:0;
  padding:0!important;
  margin:0!important;
  border:0!important;
  height:auto!important;
  align-self:center;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-count > span{
  font-size:11px!important;
  line-height:1.35;
  font-weight:750;
  color:#aec9e7!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-fraction{
  margin:5px 0 0!important;
  letter-spacing:-2px!important;
  white-space:nowrap;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-fraction strong{
  font-size:41px!important;
  line-height:1.05!important;
  letter-spacing:-2px!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-fraction em{
  font-size:29px!important;
  line-height:1.05!important;
  letter-spacing:-1px!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list.cycle-multi{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;
  grid-auto-flow:row!important;
  align-content:center!important;
  gap:7px 10px!important;
  min-width:0;
  max-height:none!important;
  padding:0!important;
  overflow:visible!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .dc-completed-heading{
  grid-column:1/-1;
  margin:0 0 1px!important;
  color:#b8d5f2!important;
  font-size:11px!important;
  font-weight:760!important;
  line-height:1.35;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list.cycle-multi .cycle-completed{
  width:100%;
  min-width:0;
  min-height:42px!important;
  height:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  padding:1px 0!important;
  margin:0!important;
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  transition:none!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed:is(:hover,:active,:focus,:focus-visible){
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-completed .v50-completed-name{
  font-size:10.5px!important;
  font-weight:760!important;
  line-height:1.28!important;
  color:#e4f0ff!important;
  white-space:normal!important;
  overflow-wrap:normal;
  min-width:0;
  text-align:left!important;
}
/* The whole row remains a button; the animated surface is only the
   real Growtopia item bubble. Hovering text has no visual effect. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule.v3-smallcap{
  flex:0 0 41px!important;
  width:41px!important;
  min-width:41px!important;
  height:41px!important;
  border-radius:12px;
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap img{
  width:35px!important;
  height:35px!important;
  max-width:35px!important;
  max-height:35px!important;
  object-fit:contain;
  image-rendering:pixelated;
  transform:none!important;
  animation:none!important;
}
/* Target the bubble itself, not the outer :hover state of the button. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap:hover,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed:focus-visible .v3-icon-capsule.v3-smallcap{
  transform:translateY(-2px)!important;
  background:linear-gradient(145deg,rgba(154,212,255,.30),rgba(58,105,186,.32))!important;
  border-color:rgba(189,229,255,.78)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.30),0 0 0 1px rgba(164,214,255,.26),0 5px 12px rgba(2,16,44,.27)!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list .cycle-completed:focus-visible{
  outline:none!important;
}
@container (max-width:860px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list.cycle-multi{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
/* The mobile shell already stacks the timer and status; only spacing and
   bubbles are tuned here so the 2-column challenge list stays readable. */
@media(max-width:860px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation > .cycle-tracker{
    padding:14px!important;
    gap:11px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-clock{
    padding:0 0 11px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-status{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:0!important;
    border:0!important;
    gap:10px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list.cycle-multi{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px 9px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    flex-basis:40px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap img{
    width:34px!important;
    height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
  }
}
@media(max-width:380px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list.cycle-multi .cycle-completed{
    gap:5px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    flex-basis:36px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap img{
    width:30px!important;
    height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-completed .v50-completed-name{
    font-size:10px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap{
    transition:none!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap:hover,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed:focus-visible .v3-icon-capsule.v3-smallcap{
    transform:none!important;
  }
}


/* 14 Nov: make the Overview timer, cycle counter and completed list read as
   one compact status, rather than three distant full-height columns.
   Restricted to Liquid Glass Overview: no change to schedules, public access,
   Growtopia skin, or the upcoming-challenges region. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-next-time{
  color:#e7f3ff!important;
  font-size:12px!important;
  font-weight:760!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .tracker-help{
  color:#a9c4df!important;
  font-size:10.5px!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-count > span{
  color:#c0d8f0!important;
  letter-spacing:.02em;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-fraction strong{
  color:#c1dcff!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-fraction em{
  color:#86aacf!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .dc-completed-heading{
  color:#c3e7e1!important;
  font-size:11px!important;
  font-weight:800!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-completed .v50-completed-name{
  color:#e9f3ff!important;
  line-height:1.25!important;
  font-weight:740!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-progress-track{
  display:block;
  width:100%;
  max-width:102px;
  height:5px;
  margin-top:9px;
  background:rgba(136,181,226,.18);
  border-radius:100px;
  overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(1,16,39,.25);
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-progress-fill{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#64dec0,#7cbefa);
  box-shadow:0 0 8px rgba(111,218,214,.2);
  transition:width .2s ease;
}
@media(min-width:861px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation > .cycle-tracker{
    grid-template-columns:minmax(250px,.63fr) minmax(0,1.37fr)!important;
    column-gap:0!important;
    align-items:center!important;
    padding:12px 17px 12px 18px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-clock{
    padding:0 12px 0 0!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .countdown{
    font-size:clamp(38px,2.6vw,49px)!important;
    margin:5px 0 4px!important;
    line-height:1.07!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-status,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-status:has(.v163-fresh-cycle){
    grid-template-columns:minmax(102px,112px) minmax(0,1fr)!important;
    gap:13px!important;
    padding-left:15px!important;
    border-left:1px solid rgba(170,209,250,.17)!important;
    align-items:center!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-count{
    align-self:center!important;
    padding:0!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-fraction{
    margin:4px 0 0!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-fraction strong{
    font-size:36px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-fraction em{
    font-size:23px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list.cycle-multi,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list:not(.cycle-multi){
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;
    gap:4px 8px!important;
    align-content:center!important;
    padding:0!important;
    overflow:visible!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list.cycle-multi .cycle-completed{
    min-height:39px!important;
    gap:7px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap{
    width:39px!important;
    height:39px!important;
    min-width:39px!important;
    flex-basis:39px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-list .cycle-completed .v3-icon-capsule.v3-smallcap img{
    width:34px!important;
    height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
  }
}
@media(max-width:860px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-count{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:10px!important;
    row-gap:4px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-progress-track{
    grid-column:1/-1;
    max-width:none;
    width:100%;
    height:4px;
    margin-top:1px;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .cycle-progress-fill{
    transition:none;
  }
}


/*
 * Completed-this-cycle rows: distribute from the current item count, not
 * auto-fit. A 5-item cycle becomes centered 3/2 and eight becomes 4/4
 * whenever four readable columns fit. Zoom and container changes update
 * --cycle-item-width through V5's ResizeObserver, without touching data.
 */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list.cycle-multi,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list:not(.cycle-multi){
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  column-gap:8px!important;
  row-gap:6px!important;
  padding:0!important;
  min-width:0!important;
  overflow:visible!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list > .dc-completed-heading{
  flex:0 0 100%!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 3px!important;
  justify-content:flex-start!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list > .cycle-completed,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list.cycle-multi > .cycle-completed{
  flex:0 0 var(--cycle-item-width,132px)!important;
  width:var(--cycle-item-width,132px)!important;
  max-width:var(--cycle-item-width,132px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:0!important;
  justify-content:flex-start!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .cycle-list > .cycle-empty{
  flex:1 1 100%!important;
  width:100%!important;
  max-width:100%!important;
}
