/* Tombo Total: bright candy party look. System fonts only: the sandboxed
   frame cannot fetch webfonts without a CORS exception (games/AGENTS.md). */
:root {
  --pink: #ff5d8f;
  --lemon: #ffe066;
  --mint: #4fd1b3;
  --grape: #8c6bff;
  --ink: #2b1a3d;
  --cream: #fff7ef;
  --shadow: 0 6px 0 rgba(43, 26, 61, 0.25);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(#7cc8ff, #ffe4f3);
  font-family: var(--font);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  display: block;
}
[hidden] {
  display: none !important;
}

/* ---- overlays ---------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.35), rgba(43, 26, 61, 0.35));
  z-index: 10;
  overflow: auto;
}
.menu-card {
  width: min(440px, 100%);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 10px 0 rgba(43, 26, 61, 0.35);
  padding: clamp(10px, 3vh, 22px) clamp(12px, 3vw, 24px);
  text-align: center;
}
.menu-card.small {
  width: min(360px, 100%);
}
.menu-card.wide {
  width: min(760px, 100%);
  max-height: 96vh;
  overflow: auto;
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: var(--grape);
}
h1 {
  margin: 2px 0 clamp(6px, 2vh, 14px);
  line-height: 0.9;
  font-size: clamp(34px, 9vh, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
h1 span {
  display: block;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
h1 .t1 {
  color: var(--lemon);
}
h1 .t2 {
  color: var(--pink);
}
h2 {
  margin: 6px 0;
  font-size: 20px;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 3px solid var(--ink);
  border-radius: 16px;
  font-weight: 900;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.08s;
}
button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(43, 26, 61, 0.25);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  width: 100%;
  padding: clamp(8px, 2.2vh, 14px);
  font-size: clamp(20px, 4vh, 28px);
  background: linear-gradient(#ffe066, #ffb84d);
  letter-spacing: 0.04em;
}
.secondary {
  padding: 8px 14px;
  font-size: 16px;
  background: #fff;
}
.small-btn {
  width: auto;
  font-size: 16px;
  padding: 8px 16px;
}
.icon-btn {
  padding: 4px 10px;
  font-size: 16px;
  background: #fff;
}
.menu-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.menu-row > button {
  flex: 1;
}
.status {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.hint {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.75;
}

/* ---- rank card and badges ------------------------------------------------ */
.rank-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 10px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  text-align: left;
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-info b {
  display: block;
  font-size: 18px;
}
.rank-info small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}
.rank-bar {
  height: 8px;
  margin-top: 4px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
  border: 2px solid var(--ink);
}
.rank-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--lemon));
}
.badge {
  width: 52px;
  height: 52px;
  flex: none;
}
.badge.small {
  width: 40px;
  height: 40px;
}
.badge svg {
  width: 100%;
  height: 100%;
  display: block;
}
.coins {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.coin {
  color: #ffb000;
  -webkit-text-stroke: 1px var(--ink);
}

/* ---- queue ---------------------------------------------------------------- */
.spinner {
  width: 54px;
  height: 54px;
  margin: 4px auto 8px;
  border-radius: 50%;
  border: 8px solid var(--lemon);
  border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- shop ----------------------------------------------------------------- */
.shop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.tab {
  flex: 1;
  padding: 8px;
  font-size: 16px;
  background: #fff;
}
.tab[aria-selected="true"] {
  background: var(--lemon);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.skin {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 8px;
  text-align: center;
}
.skin canvas {
  width: 96px;
  height: 96px;
}
.skin b {
  display: block;
  font-size: 15px;
}
.skin button {
  margin-top: 6px;
  width: 100%;
  padding: 6px;
  font-size: 14px;
  background: var(--mint);
}
.skin.equipped {
  background: #fff6c2;
}
.skin button.owned {
  background: #fff;
}
.powers {
  display: grid;
  gap: 10px;
}
.power-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 10px 12px;
  text-align: left;
}
.power-row .icon {
  font-size: 34px;
  width: 48px;
  text-align: center;
}
.power-row .text {
  flex: 1;
}
.power-row .text b {
  font-size: 17px;
}
.power-row .text p {
  margin: 2px 0 4px;
  font-size: 12px;
  opacity: 0.75;
}
.pips {
  display: flex;
  gap: 4px;
}
.pips i {
  width: 18px;
  height: 8px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  background: #eee;
}
.pips i.on {
  background: var(--pink);
}
.power-row button {
  padding: 8px 12px;
  font-size: 14px;
  background: var(--lemon);
  white-space: nowrap;
}

/* ---- HUD ------------------------------------------------------------------ */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
#hud button,
#hud .touch,
#hud .stick {
  pointer-events: auto;
}
.top-center {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.top-left {
  position: absolute;
  top: 8px;
  left: 8px;
}
.top-right {
  position: absolute;
  top: 8px;
  right: 8px;
}
.chip {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 99px;
  padding: 4px 14px;
  font-weight: 900;
  font-size: clamp(13px, 2.4vh, 18px);
  box-shadow: 0 4px 0 rgba(43, 26, 61, 0.25);
  white-space: nowrap;
}
.chip.small {
  font-size: 12px;
  padding: 2px 10px;
}
.chip:empty {
  display: none;
}
#feed {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
}
#feed li {
  background: rgba(255, 247, 239, 0.85);
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 3px;
  width: fit-content;
}
.banner {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(38px, 11vh, 92px);
  font-weight: 900;
  color: var(--lemon);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  pointer-events: none;
}
.banner.pop {
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.banner.bad {
  color: var(--pink);
}
@keyframes pop {
  from {
    transform: scale(0.3);
  }
  to {
    transform: scale(1);
  }
}
.intro {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 10px 22px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(43, 26, 61, 0.3);
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.intro small {
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--grape);
}
.intro b {
  display: block;
  font-size: clamp(22px, 5vh, 34px);
}
.intro p {
  margin: 4px 0 0;
  font-weight: 700;
}
.bottom-left {
  position: absolute;
  left: 14px;
  bottom: 14px;
}
.bottom-right {
  position: absolute;
  right: 14px;
  bottom: 14px;
}
.dj {
  position: relative;
  width: 58px;
  height: 58px;
}
.dj svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dj .track {
  fill: rgba(255, 247, 239, 0.9);
  stroke: rgba(43, 26, 61, 0.25);
  stroke-width: 5;
}
.dj .ring {
  fill: none;
  stroke: var(--mint);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 0;
}
.dj span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.power {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: var(--cream);
  border: 4px solid var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 5px 0 rgba(43, 26, 61, 0.3);
  font-size: 34px;
}
.power small {
  position: absolute;
  right: -6px;
  bottom: -6px;
  background: var(--lemon);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}
.power.empty {
  opacity: 0.5;
}
.power.ready {
  animation: glow 0.8s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    box-shadow: 0 5px 0 rgba(43, 26, 61, 0.3), 0 0 22px var(--lemon);
  }
}
.spectate {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 8px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}
.spectate p {
  margin: 0;
  font-weight: 800;
}
.debug {
  position: absolute;
  bottom: 90px;
  left: 8px;
  font: 11px ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: pre;
}
.nametag {
  position: fixed;
  left: 0;
  top: 0;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
/* Rank over the name (2026-11-01): emblem plus the rank name in its colour. */
.nametag .tag-rank {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}
.nametag .tag-rank svg {
  width: 18px;
  height: 18px;
}
.nametag.me .tag-name {
  color: #ffe066;
}

/* ---- touch ---------------------------------------------------------------- */
.touch {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stick {
  position: absolute;
  left: 22px;
  bottom: 86px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 3px solid rgba(43, 26, 61, 0.5);
  touch-action: none;
}
.stick i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--ink);
}
.t-btn {
  position: absolute;
  border-radius: 50%;
  font-size: 30px;
  background: var(--lemon);
  touch-action: none;
}
.jump-btn {
  right: 26px;
  bottom: 96px;
  width: 92px;
  height: 92px;
}
.power-btn {
  right: 130px;
  bottom: 40px;
  width: 66px;
  height: 66px;
  background: var(--pink);
  color: #fff;
}

/* ---- results ------------------------------------------------------------- */
.place {
  margin: 0;
  font-size: clamp(40px, 10vh, 72px);
  font-weight: 900;
  color: var(--lemon);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.result-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}
.rank-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.rank-change .badge {
  width: 64px;
  height: 64px;
}
.arrow {
  font-size: 30px;
  font-weight: 900;
}

@media (max-height: 420px) {
  .hint {
    display: none;
  }
  .rank-card {
    margin-top: 6px;
    padding: 4px 8px;
  }
  .badge {
    width: 40px;
    height: 40px;
  }
  .stick {
    bottom: 40px;
    width: 100px;
    height: 100px;
  }
  .jump-btn {
    bottom: 50px;
    width: 76px;
    height: 76px;
  }
  .power-btn {
    right: 112px;
    bottom: 20px;
  }
}
.watch-btn {
  margin-top: 8px;
  width: 100%;
  font-size: 14px;
}

/* ---- friends (2026-11-01) ---------------------------------------------- */
.badge-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
}
.party-line {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--grape);
}
.friends-card {
  text-align: left;
}
.friend-box {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 10px;
  margin-top: 8px;
}
.friend-box small {
  font-weight: 800;
  opacity: 0.75;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.row input,
#chat-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  user-select: text;
  -webkit-user-select: text;
}
.my-name {
  white-space: nowrap;
}
.people {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.people li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 12px;
  background: var(--cream);
}
.people li .who {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people li .who small {
  font-weight: 700;
  opacity: 0.6;
}
.people li .mini {
  width: 28px;
  height: 28px;
  flex: none;
}
.people li button {
  padding: 4px 10px;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(43, 26, 61, 0.25);
}
.people li .go {
  background: var(--mint);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--ink);
  background: #bbb;
}
.dot.online {
  background: #2fd07f;
}
.dot.playing {
  background: #ffb000;
}
.unread {
  color: var(--pink);
  font-weight: 900;
}
.chat-log {
  list-style: none;
  margin: 8px 0;
  padding: 8px;
  height: min(48vh, 320px);
  overflow-y: auto;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: text;
  -webkit-user-select: text;
}
.chat-log li {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  font-weight: 700;
  word-break: break-word;
}
.chat-log li.mine {
  align-self: flex-end;
  background: #fff6c2;
}
.invite-pop {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(380px, 94vw);
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(43, 26, 61, 0.3);
  animation: pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.invite-pop p {
  margin: 0;
  font-weight: 900;
}
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  max-width: 90vw;
  text-align: center;
}

/* ---- livelier screens (2026-11-01) ------------------------------------- */
/* The menu leaves the 3D lobby visible: card on the right on wide screens. */
.menu-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgba(43, 26, 61, 0.18));
}
@media (min-width: 760px) {
  .menu-overlay {
    justify-items: end;
    padding-right: 5vw;
  }
}
h1 .t1 {
  animation: bob 1.6s ease-in-out infinite;
}
h1 .t2 {
  animation: bob 1.6s ease-in-out 0.25s infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(1.5deg);
  }
}
#play {
  position: relative;
  overflow: hidden;
  animation: pulse 1.4s ease-in-out infinite;
}
#play::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shine 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes shine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.level-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  text-align: left;
}
.level-star {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff6c2, var(--lemon) 45%, #ffb000);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}
.level-star small {
  font-size: 10px;
}
.level-star b {
  font-size: 20px;
}
.xp-bar i {
  background: linear-gradient(90deg, #8c6bff, #ff5d8f);
  transition: width 0.8s ease;
}
.music-toggle {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 25;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
  border-radius: 50%;
  background: var(--cream);
}
.music-toggle.off {
  opacity: 0.5;
  text-decoration: line-through;
}
#hud .top-right {
  right: 54px;
}
.xp-line {
  color: var(--grape);
}
.level-up {
  margin: 6px 0 0;
  padding: 6px 10px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff6c2, #ffe0f0);
  border: 3px solid var(--ink);
  font-weight: 900;
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.overlay#results {
  background: radial-gradient(circle at 50% 30%, rgba(255, 230, 102, 0.35), rgba(43, 26, 61, 0.45));
}

/* ---- rewards, emotes, exciting screens (2026-11-01) ------------------ */
.rewards-row {
  margin-top: 8px;
}
.reward-btn {
  font-size: 14px;
  padding: 6px 8px;
  background: linear-gradient(#fff, #ffeef6);
}
.rarity {
  display: inline-block;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  -webkit-text-stroke: 0;
}
.skin.r-raro {
  box-shadow: inset 0 0 0 3px #3a86ff;
}
.skin.r-epico {
  box-shadow: inset 0 0 0 3px #9b5de5;
}
.skin.r-lendario {
  box-shadow: inset 0 0 0 3px #ffb000;
  background: linear-gradient(#fff, #fff4d1);
}
.skin .big-icon {
  font-size: 54px;
  line-height: 96px;
  height: 96px;
}
.exclusive {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.7;
}
.pass-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 12px;
}
.pass-tier {
  flex: none;
  width: 108px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 6px;
  text-align: center;
}
.pass-tier .ic {
  font-size: 34px;
}
.pass-tier small {
  display: block;
  font-weight: 800;
  opacity: 0.7;
}
.pass-tier b {
  display: block;
  font-size: 13px;
  min-height: 34px;
}
.pass-tier.locked {
  opacity: 0.55;
}
.pass-tier.claimed {
  background: #e9ffe9;
}
.pass-tier button {
  width: 100%;
  margin-top: 4px;
  padding: 4px;
  font-size: 13px;
  background: var(--mint);
}
.wheel-wrap {
  position: relative;
  width: min(320px, 70vw);
  margin: 6px auto 10px;
}
#wheel {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
}
.wheel-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--ink);
}
.mission-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.mission-list li {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}
.mission-list li b {
  font-size: 15px;
}
.mission-list li small {
  font-weight: 800;
  opacity: 0.7;
}
.mission-list li .rank-bar {
  grid-column: 1 / -1;
}
.mission-list li button {
  padding: 6px 10px;
  font-size: 13px;
  background: var(--lemon);
}
.emote-open {
  position: absolute;
  right: 96px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  background: var(--cream);
  pointer-events: auto;
}
.emote-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(4, 74px);
  gap: 8px;
  padding: 12px;
  background: rgba(255, 247, 239, 0.95);
  border: 4px solid var(--ink);
  border-radius: 22px;
  pointer-events: auto;
  z-index: 8;
}
.emote-wheel button {
  height: 74px;
  font-size: 30px;
  background: #fff;
  border-radius: 18px;
  position: relative;
}
.emote-wheel button small {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 11px;
}
.emote-bubble {
  position: fixed;
  left: 0;
  top: 0;
  font-size: 34px;
  pointer-events: none;
  z-index: 4;
  animation: pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
  filter: drop-shadow(0 3px 0 rgba(43, 26, 61, 0.35));
}
.big-count {
  position: absolute;
  top: 18%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(48px, 14vh, 120px);
  font-weight: 900;
  color: #4fd1b3;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
  pointer-events: none;
  opacity: 0;
}
.big-count.show {
  animation: count-pop 1.1s ease-out;
}
@keyframes count-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  15% {
    opacity: 1;
    transform: scale(1.15);
  }
  30% {
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.05) translateY(-20px);
  }
}
/* A burla found (2026-11-01): smaller than a round banner, sly purple. */
.banner.secret {
  color: #c77dff;
  font-size: clamp(26px, 6vh, 52px);
}
.banner.count3 {
  color: #ff5d8f;
}
.banner.count2 {
  color: #ffb000;
}
.banner.count1 {
  color: #4fd1b3;
}
.banner.go {
  font-size: clamp(60px, 18vh, 150px);
  color: var(--lemon);
}
.podium-title {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(30px, 8vh, 64px);
  font-weight: 900;
  color: var(--lemon);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  pointer-events: none;
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
#hud.on-podium .top-center,
#hud.on-podium .top-left,
#hud.on-podium .top-right,
#hud.on-podium .bottom-left,
#hud.on-podium .bottom-right,
#hud.on-podium .emote-open,
#hud.on-podium .spectate {
  display: none;
}

/* ---- power shop and new rarities (2026-11-02) ----------------------------- */
.power-shop-head p {
  margin: 2px 0 6px;
  font-size: 12px;
  opacity: 0.75;
}
.rarity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rarity-chips .chip {
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 99px;
  border: 3px solid var(--ink);
  background: #fff;
}
.rarity-chips .chip.on {
  background: var(--lemon);
}
.power-shop-sub {
  margin-top: 6px;
  font-size: 15px;
}
.power-card .power-desc {
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.25;
  opacity: 0.8;
  min-height: 42px;
}
.skin.r-incomum {
  box-shadow: inset 0 0 0 3px #52b788;
}
.skin.r-mitico {
  box-shadow: inset 0 0 0 3px #e5383b, 0 0 12px rgba(229, 56, 59, 0.45);
  background: linear-gradient(#fff, #ffe3e3);
}
.skin.r-divino {
  box-shadow: inset 0 0 0 3px #f7d046, 0 0 16px rgba(247, 208, 70, 0.7);
  background: linear-gradient(#fffdf0, #fff3b0);
}
.skin.r-especial {
  border-image: linear-gradient(90deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93) 1;
  background: linear-gradient(135deg, #ffe5ec, #fff8d6, #e3fcef, #e0f0ff, #f1e6ff);
  animation: especial-glow 2.4s linear infinite;
}
@keyframes especial-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 89, 94, 0.6);
  }
  33% {
    box-shadow: 0 0 10px rgba(138, 201, 38, 0.6);
  }
  66% {
    box-shadow: 0 0 10px rgba(25, 130, 196, 0.6);
  }
}
/* Power loadout (2026-11-02): three slots, equip toggles. */
.loadout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff6c2;
}
.loadout b {
  flex: 1;
  font-size: 14px;
}
.loadout .slot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border: 3px dashed var(--ink);
  border-radius: 12px;
  background: #fff;
}
button.equip {
  background: #e0f0ff;
}
button.equip.on {
  background: var(--mint, #b9f5d8);
}
.power-row button.equip {
  margin-right: 6px;
}
