/* Carnaby Classes / Kitchen only.
   Keep ingredient buttons stationary, center their labels, and preserve a
   genuine circular plate with unobstructed text across phone and desktop. */
body.compact-rhythm .class-worlds .kitchen-pantry{
  width:100%;
  min-width:0;
  justify-items:stretch;
  align-items:center;
}
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:none!important;
  border:1px solid rgba(122,32,62,.22);
  background:#fff;
  color:#3d3733;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient:hover,
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient:active,
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient:focus-visible{
  transform:none!important;
}
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient.is-picked,
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient.is-picked:hover,
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient.is-picked:active{
  transform:none!important;
  background:#f4c957!important;
  color:#7a203e!important;
  border-color:#9a6e24!important;
}
body.compact-rhythm .class-worlds .kitchen-pantry .ingredient:focus-visible{
  outline:2px solid #7a203e;
  outline-offset:2px;
}
body.compact-rhythm .class-worlds .kitchen-play{min-width:0;}
body.compact-rhythm .class-worlds .kitchen-table{
  box-sizing:border-box!important;
  width:min(100%,310px)!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  justify-self:center!important;
  align-self:center!important;
  flex-shrink:0!important;
  border-width:clamp(9px,1vw,14px);
}
body.compact-rhythm .class-worlds .kitchen-plate{
  box-sizing:border-box!important;
  width:65%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  min-height:0!important;
  max-height:none!important;
  border-radius:50%!important;
  padding:clamp(7px,1.2vw,15px)!important;
  font-size:clamp(15px,1.24vw,23px)!important;
  line-height:1.12!important;
  overflow-wrap:break-word;
  word-break:normal;
  text-wrap:balance;
  overflow:hidden;
  transform:translateY(-5%);
}
body.compact-rhythm .class-worlds .kitchen-reset{
  left:50%!important;
  right:auto!important;
  bottom:5%!important;
  transform:translateX(-50%)!important;
  max-width:84%!important;
  padding:9px 14px;
  font-size:9px;
  z-index:2;
}
body.compact-rhythm .class-worlds .kitchen-reset:hover,
body.compact-rhythm .class-worlds .kitchen-reset:active{
  transform:translateX(-50%)!important;
}
@media(max-width:1080px){
  body.compact-rhythm .class-worlds .kitchen-table{
    width:min(78%,270px)!important;
  }
}
@media(max-width:760px){
  body.compact-rhythm .class-worlds .kitchen-pantry{
    width:100%!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    justify-items:stretch!important;
    gap:6px!important;
  }
  body.compact-rhythm .class-worlds .kitchen-pantry .ingredient{
    min-height:35px;
    padding:7px 2px!important;
    font-size:clamp(10px,2.65vw,12px)!important;
    white-space:nowrap;
  }
  body.compact-rhythm .class-worlds .kitchen-table{
    width:min(84%,350px)!important;
  }
  body.compact-rhythm .class-worlds .kitchen-plate{
    font-size:clamp(14px,3.8vw,20px)!important;
    padding:7px!important;
  }
  body.compact-rhythm .class-worlds .kitchen-reset{
    font-size:8px;
    padding:7px 10px;
  }
}
@media(max-width:359px){
  body.compact-rhythm .class-worlds .kitchen-pantry{gap:4px!important;}
  body.compact-rhythm .class-worlds .kitchen-pantry .ingredient{font-size:9px!important;}
  body.compact-rhythm .class-worlds .kitchen-plate{font-size:13px!important;}
}
@media(min-width:1081px){
  /* More space for the actual circular plate inside the desktop square. */
  body.compact-rhythm .class-worlds .kitchen-play{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)!important;
  }
}
