body[data-world="0"] {
  --kid-chest:url("assets/themed-boxes/01-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/01-open.webp");
}
body[data-world="1"] {
  --kid-chest:url("assets/themed-boxes/02-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/02-open.webp");
}
body[data-world="2"] {
  --kid-chest:url("assets/themed-boxes/03-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/03-open.webp");
}
body[data-world="3"] {
  --kid-chest:url("assets/themed-boxes/04-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/04-open.webp");
}
body[data-world="4"] {
  --kid-chest:url("assets/themed-boxes/05-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/05-open.webp");
}
body[data-world="5"] {
  --kid-chest:url("assets/themed-boxes/06-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/06-open.webp");
}
body[data-world="6"] {
  --kid-chest:url("assets/themed-boxes/07-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/07-open.webp");
}
body[data-world="7"] {
  --kid-chest:url("assets/themed-boxes/08-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/08-open.webp");
}
body[data-world="8"] {
  --kid-chest:url("assets/themed-boxes/09-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/09-open.webp");
}
body[data-world="9"] {
  --kid-chest:url("assets/themed-boxes/10-closed.webp");
  --kid-open-chest:url("assets/themed-boxes/10-open.webp");
}
body[data-world] .box .chest {
  width:100%; height:100%; max-width:100%; aspect-ratio:auto;
}
body[data-world] .box .lid {
  inset:2px 4px 6px;
  background:var(--kid-chest) no-repeat center bottom / contain;
}
body[data-world] .box.opened .lid {
  background-image:var(--kid-open-chest);
}
body[data-world] .box .number {
  left:50%; top:auto; bottom:0; transform:translateX(-50%);
  min-width:1.5em; padding:.11em .21em .1em;
  border:1.5px solid #654326; border-radius:999px;
  background:linear-gradient(#fff4c5,#ffdf91); color:#45301e;
  text-shadow:0 1px #fff7db;
  box-shadow:inset 0 0 0 1px #fff6ce,0 2px 2px #39220f60;
  text-align:center; font:900 clamp(14px,1.5vw,20px)/1.02 "Nunito",sans-serif;
}
body[data-world] .opened .token {
  top:45%; left:50%; width:clamp(29px,3.2vw,45px);
  height:clamp(18px,2.1vw,25px);
}
body[data-world] .opened .owner {
  bottom:0; font-size:clamp(10px,1vw,13px);
  padding:2px 6px; background:#283f39;
  border:1px solid #ffefcb; box-shadow:0 1px 2px #281a1c7f;
}
@media(max-width:650px) {
  body[data-world] .box .lid {inset:1px 1px 5px}
  body[data-world] .box .number {font-size:13px}
  body[data-world] .opened .owner {font-size:10px;padding:1px 3px}
}
