/*
 * Keep Roles Calculator's glass bubble hover appearance WITHOUT adding its
 * constant bobbing motion to DC icons that were stationary before PR #787.
 * The original animation and interaction rules of each component remain
 * authoritative: don't override animation, animation-delay, top or translate.
 *
 * Page-title, completed cycle, possible-next, and latest recorded DC icons
 * receive a hover-only glass highlight, never continuous movement.
 * No animation/transform is applied to the surrounding cards or text.
 */
body[data-theme="glass"] #content :is(
  .gtt-page-title-icon,
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule,
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule,
  .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule
){
  transition:border-color .26s ease,box-shadow .26s ease,background .26s ease!important;
}

/* Scope the hover to the bubble itself. A neighboring challenge name does
 * not make its icon glow; keyboard focus still identifies clickable icons. */
body[data-theme="glass"] #content .gtt-page-title-icon:hover,
body[data-theme="glass"][data-current-view="overview"] #content
:is(
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule:hover,
  .dc-unified-rotation .cycle-list .cycle-completed:focus-visible > .v3-icon-capsule,
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule:hover,
  .dc-unified-rotation .possible-grid .possible-item:focus-visible > .v3-icon-capsule,
  .v5-overview-latest .v5-latest-head .v50-bubble-link:is(:hover,:focus-visible) > .v3-icon-capsule
){
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}

/* Specificity parity with the existing static DC heading styles. Keep their
 * original animation:none / transform:none declarations intact. */
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover{
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!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{
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}

/* Older generic row-hover rules lit up the capsule even when the pointer was
 * only over its accompanying name. Restore the resting finish in that case. */
body[data-theme="glass"][data-current-view="overview"] #content
.dc-unified-rotation .cycle-list .cycle-completed:hover:not(:focus-visible) > .v3-icon-capsule:not(:hover),
body[data-theme="glass"][data-current-view="overview"] #content
.dc-unified-rotation .possible-grid .possible-item:hover:not(:focus-visible) > .v3-icon-capsule:not(:hover){
  border-color:rgba(198,229,255,.48)!important;
  box-shadow:inset 0 2px 1px rgba(250,254,255,.29),
             inset 0 -1px rgba(1,21,53,.54),
             0 8px 21px rgba(3,16,42,.22)!important;
}

/* Re-enable the ORIGINAL possible-next sprite-only hover (3px). The existing
 * dc-unified-rotation CSS handles it, including its reduced-motion rule.
 * No separate sprite scaling or new motion is added here. */
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content :is(
    .gtt-page-title-icon,
    .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule,
    .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule,
    .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule
  ){
    transition:none!important;
  }
}


/*
 * DC section-heading bubbles: match the Roles Calculator's HOVER lift and
 * inner-sprite zoom without reintroducing its idle floating animation.
 * Leave a real margin INSIDE the capsule for the 1.10x sprite zoom so art
 * stays visible (pixel-accurate and contained) even at the hover peak.
 */
body[data-theme="glass"] #content .page-head:has(.gtt-dc-archive-heading-lockup),
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup{
  overflow:visible!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup{
  grid-template-columns:70px minmax(0,1fr)!important;
  column-gap:17px!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon{
  width:70px!important;
  min-width:70px!important;
  height:70px!important;
  padding:4px!important;
  border-radius:20px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  transform:translateY(0) scale(1)!important;
  transform-origin:center center;
  animation:none!important;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),border-color .26s ease,
             box-shadow .26s ease,background .26s ease!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon img{
  width:52px!important;
  height:52px!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  transform:scale(1)!important;
  transform-origin:center center;
  filter:none!important;
  animation:none!important;
  transition:transform .26s ease,filter .26s ease!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover{
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover img{
  transform:scale(1.10)!important;
  filter:drop-shadow(0 7px 7px rgba(0,13,37,.35))!important;
}

/* Fallback for a DC route with an inline h1 heading instead of .page-head. */
body[data-theme="glass"]:is(
  [data-current-view="overview"],[data-current-view="calendar"],
  [data-current-view="challenges"],[data-current-view="rankings"],
  [data-current-view="records"],[data-current-view="playerprofiles"],
  [data-current-view="comparison"],[data-current-view="history"]
) #content h1.gtt-icon-page-title > .gtt-page-title-icon{
  width:54px!important;
  min-width:54px!important;
  height:54px!important;
  flex-basis:54px!important;
  padding:5px!important;
  border-radius:16px!important;
  overflow:hidden!important;
  transform:none!important;
  animation:none!important;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),border-color .26s ease,
             box-shadow .26s ease!important;
}
body[data-theme="glass"]:is(
  [data-current-view="overview"],[data-current-view="calendar"],
  [data-current-view="challenges"],[data-current-view="rankings"],
  [data-current-view="records"],[data-current-view="playerprofiles"],
  [data-current-view="comparison"],[data-current-view="history"]
) #content h1.gtt-icon-page-title > .gtt-page-title-icon img{
  width:38px!important;
  height:38px!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  transform:none!important;
  transition:transform .26s ease,filter .26s ease!important;
}
body[data-theme="glass"]:is(
  [data-current-view="overview"],[data-current-view="calendar"],
  [data-current-view="challenges"],[data-current-view="rankings"],
  [data-current-view="records"],[data-current-view="playerprofiles"],
  [data-current-view="comparison"],[data-current-view="history"]
) #content h1.gtt-icon-page-title > .gtt-page-title-icon:hover{
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}
body[data-theme="glass"]:is(
  [data-current-view="overview"],[data-current-view="calendar"],
  [data-current-view="challenges"],[data-current-view="rankings"],
  [data-current-view="records"],[data-current-view="playerprofiles"],
  [data-current-view="comparison"],[data-current-view="history"]
) #content h1.gtt-icon-page-title > .gtt-page-title-icon:hover img{
  transform:scale(1.10)!important;
  filter:drop-shadow(0 7px 7px rgba(0,13,37,.35))!important;
}
@media(max-width:640px){
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup{
    grid-template-columns:58px minmax(0,1fr)!important;
    column-gap:12px!important;
  }
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon{
    width:58px!important;
    min-width:58px!important;
    height:58px!important;
    padding:3px!important;
    border-radius:16px!important;
  }
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon img{
    width:43px!important;
    height:43px!important;
  }
  body[data-theme="glass"]:is(
    [data-current-view="overview"],[data-current-view="calendar"],
    [data-current-view="challenges"],[data-current-view="rankings"],
    [data-current-view="records"],[data-current-view="playerprofiles"],
    [data-current-view="comparison"],[data-current-view="history"]
  ) #content h1.gtt-icon-page-title > .gtt-page-title-icon{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    flex-basis:48px!important;
    padding:4px!important;
  }
  body[data-theme="glass"]:is(
    [data-current-view="overview"],[data-current-view="calendar"],
    [data-current-view="challenges"],[data-current-view="rankings"],
    [data-current-view="records"],[data-current-view="playerprofiles"],
    [data-current-view="comparison"],[data-current-view="history"]
  ) #content h1.gtt-icon-page-title > .gtt-page-title-icon img{
    width:34px!important;
    height:34px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon img,
  body[data-theme="glass"] #content h1.gtt-icon-page-title > .gtt-page-title-icon,
  body[data-theme="glass"] #content h1.gtt-icon-page-title > .gtt-page-title-icon img{
    transition:none!important;
  }
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover img,
  body[data-theme="glass"] #content h1.gtt-icon-page-title > .gtt-page-title-icon:hover,
  body[data-theme="glass"] #content h1.gtt-icon-page-title > .gtt-page-title-icon:hover img{
    transform:none!important;
  }
}


/*
 * Overview bubble motion contract (14 Nov):
 * Roles Calculator parity on HOVER for every visible item bubble.
 * All capsules rest motionless except the actual "What could be next?"
 * icon capsules. Keep those gently floating without animating their cards,
 * names, the rest of the Overview, or neighboring page headers.
 *
 * Animation changes only relative 'top', not transform: the inherited V5
 * CSS uses transform:none!important and has previously caused conflicting
 * transform animations to appear stuck or jitter during hover.
 */
@keyframes gtt-dc-next-bubble-float{
  0%,100%{top:0px}
  50%{top:-5px}
}

/* First, normalize the non-floating bubbles, including the mini-calendar
 * question marks and the empty-results illustration. All glass hover motion
 * is driven by the same explicit :hover/focus selectors below. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
:is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
  h1.gtt-icon-page-title > .gtt-page-title-icon,
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule,
  .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule,
  .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule,
  .v5-overview-calendar .calendar-panel .calendar-random-bubble
){
  animation:none!important;
  translate:none!important;
  scale:none!important;
  top:0!important;
  transform:none!important;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),
             box-shadow .26s ease,border-color .26s ease,background .26s ease!important;
  transform-origin:center center;
  will-change:auto!important;
}

/* This is the ONLY bubble that moves at rest on Overview.
 * No animation is attached to .possible-item (which contains the text).
 * nth-child offsets mimic the gentle asynchronous Roles bubbles. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule{
  position:relative!important;
  top:0;
  animation:gtt-dc-next-bubble-float 5.9s ease-in-out infinite!important;
  transform:none!important;
  translate:none!important;
  scale:none!important;
  overflow:hidden!important;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),
             box-shadow .26s ease,border-color .26s ease,background .26s ease!important;
  transform-origin:center center;
  will-change:top,transform!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .possible-grid .possible-item:nth-child(3n+2) > .v3-icon-capsule{
  animation-delay:-2.2s!important;
  animation-duration:6.5s!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.dc-unified-rotation .possible-grid .possible-item:nth-child(3n+3) > .v3-icon-capsule{
  animation-delay:-3.5s!important;
  animation-duration:5.3s!important;
}

/* All sprite zooms start at the same scale. Override the older possible-next
 * sprite-only -3px motion and the completed row's special hover art. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
:is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon img,
  h1.gtt-icon-page-title > .gtt-page-title-icon img,
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule img,
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule img,
  .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule img,
  .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule img,
  .v5-overview-calendar .calendar-panel .calendar-random-bubble img
){
  transform:none!important;
  animation:none!important;
  transition:transform .26s ease,filter .26s ease!important;
  transform-origin:center center;
  object-fit:contain!important;
  image-rendering:pixelated;
}

/* Override earlier row-hover rules. When hovering text or empty card space,
 * bubbles remain at rest (except the next-DC idle float). Keyboard-focused
 * challenge buttons receive the exact same visible effect as mouse hover. */
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
:is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
  h1.gtt-icon-page-title > .gtt-page-title-icon:hover,
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule:hover,
  .dc-unified-rotation .cycle-list .cycle-completed:focus-visible > .v3-icon-capsule,
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule:hover,
  .dc-unified-rotation .possible-grid .possible-item:focus-visible > .v3-icon-capsule,
  .v5-overview-latest .v5-latest-head .v50-bubble-link:is(:hover,:focus-visible) > .v3-icon-capsule,
  .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule:hover,
  .v5-overview-calendar .calendar-panel .calendar-random-bubble:hover,
  .v5-overview-calendar .calendar-panel .day-cell:focus-visible .calendar-random-bubble
){
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
:is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover img,
  h1.gtt-icon-page-title > .gtt-page-title-icon:hover img,
  .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule:hover img,
  .dc-unified-rotation .cycle-list .cycle-completed:focus-visible > .v3-icon-capsule img,
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule:hover img,
  .dc-unified-rotation .possible-grid .possible-item:focus-visible > .v3-icon-capsule img,
  .v5-overview-latest .v5-latest-head .v50-bubble-link:is(:hover,:focus-visible) > .v3-icon-capsule img,
  .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule:hover img,
  .v5-overview-calendar .calendar-panel .calendar-random-bubble:hover img,
  .v5-overview-calendar .calendar-panel .day-cell:focus-visible .calendar-random-bubble img
){
  transform:scale(1.10)!important;
  filter:drop-shadow(0 7px 7px rgba(0,13,37,.35))!important;
}

/* Sprite clearance: smallest completed caps and compact random-calendar
 * caps have enough edge inset to remain fully visible when scaled to 110%. */
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
.v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule.v3-headingcap img{
  width:52px!important;
  height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
}
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
:is(.dc-unified-rotation .cycle-list,.dc-unified-rotation .cycle-list .cycle-completed,
    .v5-overview-latest .v5-latest-head,.v5-overview-latest .v3-latest-heading){
  overflow:visible!important;
}
@media(max-width:650px){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule.v3-headingcap img{
    width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .v5-overview-calendar .calendar-panel .calendar-random-bubble > img{
    max-height:24px!important;height:24px!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 > .v3-icon-capsule.v3-smallcap img{
    width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule{
    animation:none!important;top:0!important;will-change:auto!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  :is(.page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
      h1.gtt-icon-page-title > .gtt-page-title-icon,
      .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule,
      .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule,
      .v5-overview-latest .v5-latest-head .v50-bubble-link > .v3-icon-capsule,
      .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule,
      .v5-overview-calendar .calendar-panel .calendar-random-bubble){
    transition:none!important;
  }
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  :is(.page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
      h1.gtt-icon-page-title > .gtt-page-title-icon:hover,
      .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule:hover,
      .dc-unified-rotation .cycle-list .cycle-completed:focus-visible > .v3-icon-capsule,
      .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule:hover,
      .dc-unified-rotation .possible-grid .possible-item:focus-visible > .v3-icon-capsule,
      .v5-overview-latest .v5-latest-head .v50-bubble-link:is(:hover,:focus-visible) > .v3-icon-capsule,
      .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule:hover,
      .v5-overview-calendar .calendar-panel .calendar-random-bubble:hover,
      .v5-overview-calendar .calendar-panel .day-cell:focus-visible .calendar-random-bubble),
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  :is(.page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover img,
      h1.gtt-icon-page-title > .gtt-page-title-icon:hover img,
      .dc-unified-rotation .cycle-list .cycle-completed > .v3-icon-capsule:hover img,
      .dc-unified-rotation .cycle-list .cycle-completed:focus-visible > .v3-icon-capsule img,
      .dc-unified-rotation .possible-grid .possible-item > .v3-icon-capsule:hover img,
      .dc-unified-rotation .possible-grid .possible-item:focus-visible > .v3-icon-capsule img,
      .v5-overview-latest .v5-latest-head .v50-bubble-link:is(:hover,:focus-visible) > .v3-icon-capsule img,
      .v5-overview-latest .v5-upcoming-state > .v3-icon-capsule:hover img,
      .v5-overview-calendar .calendar-panel .calendar-random-bubble:hover img,
      .v5-overview-calendar .calendar-panel .day-cell:focus-visible .calendar-random-bubble img){
    transform:none!important;
  }
}


/* The compact completed pills and the random calendar cells have extra-high
 * legacy specificity. Match it explicitly so they cannot keep their old
 * -2px-only or border-only hover when the unified Roles hover is active. */
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,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.v5-overview-calendar .calendar-panel .calendar-week .day-cell .day-art > .calendar-random-bubble.v3-icon-capsule:hover,
body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
.v5-overview-calendar .calendar-panel .calendar-week .day-cell:focus-visible .day-art > .calendar-random-bubble.v3-icon-capsule{
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!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: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,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .v5-overview-calendar .calendar-panel .calendar-week .day-cell .day-art > .calendar-random-bubble.v3-icon-capsule:hover,
  body[data-theme="glass"][data-current-view="overview"]:not([data-dc-skin="growtopia"]) #content
  .v5-overview-calendar .calendar-panel .calendar-week .day-cell:focus-visible .day-art > .calendar-random-bubble.v3-icon-capsule{
    transform:none!important;
  }
}


/*
 * DC PAGE-HEADING PARITY — Calendar, Challenges, Rankings, Records,
 * Player Profiles, Comparison and History.
 *
 * Overview had the final, high-specificity Rules Calculator-style treatment,
 * but these sibling views still inherited earlier static header styling.
 * Reuse Overview's exact desktop/mobile capsule dimensions and hover geometry.
 * Never animate idle headings; do not affect the Overview's own possible-next
 * floating bubbles or the Growtopia UI skin.
 */
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content .page-head,
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content .page-head .gtt-dc-archive-heading-lockup{
  overflow:visible!important;
}
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content .page-head .gtt-dc-archive-heading-lockup{
  grid-template-columns:70px minmax(0,1fr)!important;
  column-gap:17px!important;
}
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content :is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
  h1.gtt-icon-page-title > .gtt-page-title-icon
){
  display:grid!important;
  place-items:center!important;
  flex:0 0 70px!important;
  width:70px!important;
  min-width:70px!important;
  height:70px!important;
  padding:4px!important;
  box-sizing:border-box!important;
  border-radius:20px!important;
  overflow:hidden!important;
  top:0!important;
  translate:none!important;
  scale:none!important;
  transform:none!important;
  transform-origin:center center;
  animation:none!important;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),
             border-color .26s ease,box-shadow .26s ease,
             background .26s ease!important;
}
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content :is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
  h1.gtt-icon-page-title > .gtt-page-title-icon
) img{
  display:block!important;
  width:52px!important;
  height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  object-fit:contain!important;
  image-rendering:pixelated;
  animation:none!important;
  transform:none!important;
  transform-origin:center center;
  transition:transform .26s ease,filter .26s ease!important;
}
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content :is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
  h1.gtt-icon-page-title > .gtt-page-title-icon:hover
){
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}
body[data-theme="glass"]:is(
  [data-current-view="calendar"],[data-current-view="challenges"],
  [data-current-view="rankings"],[data-current-view="records"],
  [data-current-view="playerprofiles"],[data-current-view="comparison"],
  [data-current-view="history"]
):not([data-dc-skin="growtopia"]) #content :is(
  .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
  h1.gtt-icon-page-title > .gtt-page-title-icon:hover
) img{
  transform:scale(1.10)!important;
  filter:drop-shadow(0 7px 7px rgba(0,13,37,.35))!important;
}

@media(max-width:640px){
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content .page-head .gtt-dc-archive-heading-lockup{
    grid-template-columns:58px minmax(0,1fr)!important;
    column-gap:12px!important;
  }
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
    h1.gtt-icon-page-title > .gtt-page-title-icon
  ){
    flex-basis:58px!important;
    width:58px!important;
    min-width:58px!important;
    height:58px!important;
    padding:3px!important;
    border-radius:16px!important;
  }
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
    h1.gtt-icon-page-title > .gtt-page-title-icon
  ) img{
    width:43px!important;
    height:43px!important;
    max-width:43px!important;
    max-height:43px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
    h1.gtt-icon-page-title > .gtt-page-title-icon
  ),
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon,
    h1.gtt-icon-page-title > .gtt-page-title-icon
  ) img{
    transition:none!important;
  }
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
    h1.gtt-icon-page-title > .gtt-page-title-icon:hover
  ),
  body[data-theme="glass"]:is(
    [data-current-view="calendar"],[data-current-view="challenges"],
    [data-current-view="rankings"],[data-current-view="records"],
    [data-current-view="playerprofiles"],[data-current-view="comparison"],
    [data-current-view="history"]
  ):not([data-dc-skin="growtopia"]) #content :is(
    .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon:hover,
    h1.gtt-icon-page-title > .gtt-page-title-icon:hover
  ) img{
    transform:none!important;
  }
}


/* Compact two-line Daily Challenge page titles, with the text centered beside
   the existing Growtopia title capsule. The shared V5 head() no longer renders
   a redundant eyebrow, so the lockup must span TWO rows instead of three. */
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup{
  grid-template-rows:auto auto!important;
  align-content:center!important;
  align-items:center!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > .gtt-dc-archive-icon{
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:center!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > h1{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  margin:0 0 3px!important;
  line-height:1.12!important;
}
body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > p{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  margin:0!important;
  line-height:1.45!important;
}
body[data-theme="glass"] #content .page-head > div:not(.gtt-dc-archive-heading-lockup) > h1{
  margin-top:0!important;
}
/* Home title: one stable, nonfloating bubble with the exact same Roles/DC
   lift, glow and sprite zoom. Hovering nearby copy does not animate it. */
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-heading-lockup{
  display:grid!important;
  grid-template-columns:70px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  align-items:center!important;
  column-gap:17px!important;
  min-width:0!important;
  overflow:visible!important;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-heading-copy{
  grid-column:2;
  grid-row:1 / 3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-heading-copy h1{
  margin:0 0 4px!important;
  line-height:1.12!important;
  min-width:0;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-heading-copy p{
  margin:0!important;
  line-height:1.45!important;
  max-width:100%;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble{
  display:grid!important;
  place-items:center!important;
  isolation:isolate;
  grid-column:1!important;
  grid-row:1 / 3!important;
  width:70px!important;
  min-width:70px!important;
  height:70px!important;
  padding:4px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(192,224,255,.48)!important;
  border-radius:20px!important;
  background:radial-gradient(circle at 28% 5%,rgba(250,254,255,.29),transparent 47%),
             linear-gradient(145deg,rgba(125,183,245,.32),rgba(33,70,130,.30))!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.27),
             inset 0 -1px rgba(4,21,48,.35),
             0 7px 19px rgba(3,15,40,.23)!important;
  overflow:hidden!important;
  animation:none!important;
  transform:translateY(0) scale(1)!important;
  transform-origin:center center;
  transition:transform .26s cubic-bezier(.2,.7,.2,1),
             border-color .26s ease,box-shadow .26s ease,background .26s ease!important;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble > img{
  display:block!important;
  width:52px!important;
  height:52px!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  image-rendering:pixelated!important;
  transform:scale(1)!important;
  transform-origin:center center;
  animation:none!important;
  transition:transform .26s ease,filter .26s ease!important;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble:hover{
  transform:translateY(-5px) scale(1.06)!important;
  border-color:rgba(235,246,255,.87)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.38),
             0 15px 25px rgba(5,24,61,.35),
             0 0 20px rgba(109,186,255,.14)!important;
}
body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble:hover > img{
  transform:scale(1.10)!important;
  filter:drop-shadow(0 7px 7px rgba(0,13,37,.35))!important;
}
@media(max-width:640px){
  body[data-theme="glass"] #content .page-head .gtt-dc-archive-heading-lockup > h1{
    margin:0 0 2px!important;
  }
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-heading-lockup{
    grid-template-columns:58px minmax(0,1fr)!important;
    column-gap:12px!important;
  }
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble{
    width:58px!important;
    min-width:58px!important;
    height:58px!important;
    padding:3px!important;
    border-radius:16px!important;
  }
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble > img{
    width:43px!important;
    height:43px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble,
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble > img{
    transition:none!important;
  }
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble:hover,
  body[data-theme="glass"][data-current-view="home"] #content .h162-header .gtt-home-title-bubble:hover > img{
    transform:none!important;
  }
}
