/* Single Overview-only rotation card.
   Reuse cycleTracker() + possibilities() without changing their schedules,
   counters, labels, icon sources, or click actions. */
body[data-theme="glass"] #content .dc-unified-rotation {
  display:grid;
  grid-template-columns:minmax(0,1.42fr) minmax(345px,1fr);
  align-items:stretch;
  min-width:0;
  overflow:hidden;
  isolation:isolate;
  border-radius:17px;
  padding:0;
  margin:0 0 18px;
  background:radial-gradient(ellipse at 0% 0%,rgba(100,151,205,.17),transparent 59%),linear-gradient(115deg,#122b50,#102748 57%,#0d2342);
  border:1px solid rgba(165,205,247,.35);
  box-shadow:inset 0 1px 0 rgba(223,240,255,.13),0 12px 24px rgba(1,10,29,.12);
}

/* Countdown and cycle progress form the first section of one panel. */
body[data-theme="glass"] #content .dc-unified-rotation > .cycle-tracker {
  display:grid!important;
  grid-template-columns:minmax(195px,.87fr) minmax(0,1.13fr)!important;
  min-height:0!important;
  height:auto!important;
  align-items:stretch;
  gap:0!important;
  margin:0!important;
  padding:16px 14px 16px 22px!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-clock {
  padding:7px 18px 7px 0;
  min-width:0;
  min-height:0;
  justify-content:center;
}
body[data-theme="glass"] #content .dc-unified-rotation .tracker-eyebrow {
  gap:9px;
  font-size:10px;
  letter-spacing:1.1px;
}
body[data-theme="glass"] #content .dc-unified-rotation .countdown {
  font-size:clamp(35px,3.2vw,60px);
  line-height:1.08;
  letter-spacing:-1.7px;
  margin:8px 0 7px;
  white-space:nowrap;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-next-time {
  font-size:12px;
  line-height:1.4;
}
body[data-theme="glass"] #content .dc-unified-rotation .tracker-help {
  font-size:10px;
  margin:8px 0 0;
  line-height:1.4;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-status,
body[data-theme="glass"] #content .dc-unified-rotation .cycle-status:has(.v163-fresh-cycle) {
  display:grid!important;
  grid-template-columns:minmax(96px,.36fr) minmax(0,1fr)!important;
  min-width:0;
  min-height:0;
  align-items:center;
  border-left:1px solid rgba(170,209,250,.19);
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-count {
  min-width:0;
  min-height:0;
  height:auto;
  padding:6px 11px!important;
  border-right:1px solid rgba(170,209,250,.13);
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-count > span{
  font-size:10px;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-fraction{
  margin:4px 0 3px;
  line-height:1;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-fraction strong{
  font-size:clamp(29px,2.75vw,48px);
  line-height:1.1;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-fraction em{
  font-size:clamp(20px,2vw,33px);
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-count p{
  margin:3px 0 4px;
  font-size:10px;
  line-height:1.35;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-count small{
  font-size:9px;
  line-height:1.3;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list,
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list.cycle-multi,
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list:not(.cycle-multi) {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(116px,1fr))!important;
  grid-auto-flow:row;
  align-content:center;
  justify-content:stretch;
  gap:7px 9px!important;
  min-width:0;
  max-height:none;
  overflow:hidden;
  padding:4px 4px 4px 11px!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-completed,
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list.cycle-multi .cycle-completed{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px!important;
  min-width:0;
  min-height:35px!important;
  padding:1px 0;
  font-size:10px!important;
  font-weight:700;
  line-height:1.24;
  white-space:normal!important;
  text-align:left;
  transform:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-completed .v3-icon-capsule,
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list.cycle-multi .cycle-completed .v3-icon-capsule{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  border-radius:10px;
  animation:none!important;
  transform:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-completed .v3-icon-capsule img{
  width:29px!important;
  height:29px!important;
  object-fit:contain;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-completed .v50-completed-name {
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
  line-height:1.25;
  font-size:10px!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-empty.v163-fresh-cycle {
  min-height:70px!important;
  padding:6px;
  gap:3px;
  font-size:10px;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-empty.v163-fresh-cycle > span {
  width:34px;
  height:34px;
  font-size:20px;
}

/* The next possibilities are the third region, no second enclosing card. */
body[data-theme="glass"] #content .dc-unified-rotation > .possible-section {
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  /* The grid must determine the merged panel's height, even when the
     countdown/cycle section to its left is shorter. */
  height:auto!important;
  min-height:max-content!important;
  align-self:stretch;
  padding:15px 17px 16px!important;
  margin:0!important;
  border:0!important;
  border-left:1px solid rgba(171,207,248,.22)!important;
  border-radius:0!important;
  background:linear-gradient(120deg,rgba(47,92,147,.08),rgba(11,31,61,.13))!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overflow:visible!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-title {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap;
  gap:5px 9px;
  min-height:0;
  margin:0 0 10px!important;
  padding:0!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-title h2{
  font-size:15px!important;
  line-height:1.25;
  letter-spacing:-.2px;
  margin:0;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-title p {
  margin:3px 0 0!important;
  font-size:10px;
  line-height:1.3;
  color:#9ebad6;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-title > .tag{
  flex:0 0 auto;
  font-size:9px;
  padding:4px 8px;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid {
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
  grid-auto-rows:minmax(max-content,auto);
  gap:7px!important;
  padding:0!important;
  margin:0!important;
  min-width:0;
  width:100%;
  height:auto!important;
  min-height:max-content!important;
  flex:0 0 auto!important;
  overflow:visible!important;
  align-items:stretch;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  gap:7px!important;
  min-width:0;
  min-height:112px!important;
  height:auto!important;
  flex-shrink:0;
  box-sizing:border-box;
  padding:11px 10px!important;
  margin:0!important;
  border-radius:11px!important;
  position:relative;
  overflow:hidden!important;
  isolation:isolate;
  transform:none!important;
  transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;
  box-shadow:inset 0 1px rgba(240,251,255,.08)!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item:hover,
body[data-theme="glass"] #content .dc-unified-rotation .possible-item:focus-visible{
  transform:none!important;
  z-index:auto!important;
  border-color:rgba(174,221,255,.64)!important;
  background:rgba(89,147,209,.19)!important;
  box-shadow:inset 0 0 0 1px rgba(159,212,255,.25)!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item .v3-icon-capsule,
body[data-theme="glass"] #content .dc-unified-rotation .possible-item:hover .v3-icon-capsule {
  flex:0 0 63px!important;
  min-width:67px!important;
  min-height:63px!important;
  width:67px!important;
  height:63px!important;
  margin:0!important;
  border-radius:19px;
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item .v3-icon-capsule img {
  width:48px!important;
  height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  object-fit:contain;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item b{
  display:block;
  min-width:0;
  margin:0;
  font-size:12px!important;
  line-height:1.3;
  text-align:center;
  overflow-wrap:anywhere;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-item:focus-visible{
  outline:2px solid #8bd3ff;
  outline-offset:-2px;
}

/* Two areas, still one card, when there isn't enough horizontal room. */
@media(max-width:1260px){
  body[data-theme="glass"] #content .dc-unified-rotation{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-theme="glass"] #content .dc-unified-rotation > .possible-section{
    border-left:0!important;
    border-top:1px solid rgba(171,207,248,.20)!important;
    padding:13px 17px!important;
  }
}
@media(max-width:740px){
  body[data-theme="glass"] #content .dc-unified-rotation > .cycle-tracker{
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    padding:14px!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-clock{
    padding:0 0 10px;
    border-bottom:1px solid rgba(171,207,248,.16);
  }
  body[data-theme="glass"] #content .dc-unified-rotation .countdown{
    font-size:clamp(38px,10vw,56px);
  }
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-status,
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-status:has(.v163-fresh-cycle){
    border-left:0;
    grid-template-columns:minmax(94px,.4fr) minmax(0,1fr)!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-count{
    padding-left:0!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .possible-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .possible-item{
    padding:10px 7px!important;
    gap:6px!important;
    min-height:103px!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .possible-item .v3-icon-capsule{
    width:62px!important;
    height:59px!important;
    min-width:62px!important;
    flex-basis:59px!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .possible-item .v3-icon-capsule img{
    width:44px!important;
    height:44px!important;
    max-width:44px!important;
    max-height:44px!important;
  }
}
@media(max-width:380px){
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-list,
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-list.cycle-multi{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .possible-item b{
    font-size:10px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content .dc-unified-rotation .possible-item,
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-completed{
    transition:none!important;
    animation:none!important;
  }
}

/* Keep both the full challenge card and the glass icon capsule stationary.
   Only the actual pixel-art image moves slightly on hover/focus. */
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item{
  transform:none!important;
  transition:background-color .16s ease,border-color .16s ease!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule{
  transform:none!important;
  transition:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule img{
  transform:translateY(0)!important;
  transition:transform .18s ease-out!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule img{
  transform:translateY(-2px)!important;
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule img,
  body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule img{
    transform:none!important;
    transition:none!important;
  }
}

/* 12 Nov: tighter countdown/cycle relationship and explicit completed labels. */
body[data-theme="glass"] #content .dc-unified-rotation > .cycle-tracker{
  grid-template-columns:minmax(320px,.71fr) minmax(0,1.29fr)!important;
  padding-right:13px!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-clock{
  padding-right:9px!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-count{
  padding:5px 9px!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .cycle-list > .dc-completed-heading{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  margin:0 0 2px;
  padding:0 1px;
  color:#afd2f7;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.15px;
}
body[data-theme="glass"] #content .dc-unified-rotation .dc-completed-heading > span{
  display:inline-grid;
  place-items:center;
  width:15px;
  height:15px;
  border-radius:50%;
  color:#103c36;
  background:#81e9c4;
  font-size:11px;
  font-weight:900;
  flex:0 0 15px;
}
/* Exactly one moving element: the sprite inside each possible-next icon.
   Remove transforms/animations from the card and all its decorative layers. */
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible,:active){
  transform:none!important;
  translate:none!important;
  scale:none!important;
  animation:none!important;
  transition:none!important;
  background:linear-gradient(145deg,rgba(156,204,253,.12),rgba(24,46,85,.34))!important;
  border-color:rgba(171,211,252,.31)!important;
  box-shadow:inset 0 1px rgba(240,251,255,.08)!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item::before,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item::after,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible)::before,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible)::after{
  animation:none!important;
  transform:none!important;
  translate:none!important;
  transition:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule,
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule{
  transform:none!important;
  translate:none!important;
  scale:none!important;
  animation:none!important;
  transition:none!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule > img{
  transform:translateY(0)!important;
  animation:none!important;
  transition:transform .18s ease-out!important;
}
body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule > img{
  transform:translateY(-3px)!important;
}
@media(max-width:740px){
  body[data-theme="glass"] #content .dc-unified-rotation > .cycle-tracker{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-theme="glass"] #content .dc-unified-rotation .cycle-clock{
    padding-right:0!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content .dc-unified-rotation .possible-grid .possible-item:is(:hover,:focus-visible) > .v3-icon-capsule > img{
    transform:none!important;
    transition:none!important;
  }
}
