:root {
  font-family: Nunito, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: #25134d;
  background: #f9f3ff;
  font-synthesis: none;
  --purple: #6b34d5;
  --purple-dark: #41208c;
  --pink: #ff4f9a;
  --yellow: #ffd84d;
  --mint: #52dfb5;
  --ink: #25134d;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 8%, #fff 0 5%, transparent 28%),
    linear-gradient(145deg, #efe4ff, #fff7dd);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}
* {
  -webkit-user-select: none;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 4px solid #16bfea;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
.ui-art-icon {
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
  user-select: none;
  pointer-events: none;
}
#app {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 82px 18px 22px;
  overflow: visible;
}
#game-scroll {
  width: 100%;
  height: 100dvh;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
}
#game-scroll::-webkit-scrollbar { display: none; }
.platform-paused #app { pointer-events: none; }
.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) 10px
    max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(84, 40, 158, 0.12);
  backdrop-filter: blur(15px);
  overflow: visible;
}
.brand,
.icon-btn {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sound-toggle {
  position: absolute;
  z-index: 4;
  left: 67px;
  top: -16px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5a3, #ffc947);
  box-shadow: 0 3px 0 #d49a2f, 0 5px 10px rgba(86, 45, 120, .18);
  cursor: pointer;
}
.sound-toggle .ui-art-icon { width: 29px; height: 29px; }
.sound-toggle.is-muted { filter: grayscale(.9); opacity: .72; }
.brand {
  position: relative;
  width: 210px;
  height: 48px;
  overflow: visible;
}
.brand-logo {
  position: absolute;
  z-index: 2;
  left: -3px;
  top: -7px;
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 4px 4px rgba(70, 26, 125, .2));
}
.brand b {
  position: absolute;
  z-index: 1;
  left: 59px;
  top: 23px;
  padding: 6px 12px 6px 18px;
  border: 2px solid #fff;
  border-radius: 8px 13px 13px 8px;
  background: linear-gradient(135deg, #ffe87a, #ffc947);
  color: #4e2a70;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 0 #d49a2f, 0 7px 14px rgba(86, 45, 120, .18);
  transform: rotate(-1.5deg);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drop-counter {
  position: relative;
  width: 82px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
}
.drop-counter.is-static {
  cursor: default;
  opacity: .62;
  filter: saturate(.55);
}
.drop-counter span {
  font-size: 23px;
}
.drop-counter .ui-art-icon {
  width: 49px;
  height: 49px;
  filter: drop-shadow(0 4px 5px rgba(74, 31, 133, .24));
}
.drop-counter b {
  position: absolute;
  right: 0;
  bottom: 10px;
  min-width: 27px;
  height: 27px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(#ff6684, #e82d5b);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 3px 0 #a91c45;
}
.icon-btn {
  height: 44px;
  min-width: 48px;
  justify-content: center;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #d9c9f5;
  font-weight: 900;
}
.panel-screen {
  min-height: calc(100dvh - 104px);
  display: grid;
  place-items: center;
}
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(63, 27, 126, 0.18);
}
.home {
  grid-template-columns: minmax(280px, 520px) minmax(320px, 570px);
  max-width: 1160px;
  margin: auto;
  gap: 30px;
}
.hero-copy h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.92;
  margin: 10px 0 18px;
  letter-spacing: -0.055em;
}
.hero-copy p {
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 800;
  color: #684b91;
  max-width: 520px;
}
.community-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.community-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 7px 0 rgba(65, 32, 140, .22), 0 12px 20px rgba(63, 27, 126, .16);
  transition: transform .16s ease, filter .16s ease;
}
.community-link:hover,
.community-link:focus-visible {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
  outline: 3px solid #ffd84d;
  outline-offset: 2px;
}
.telegram-link { background: linear-gradient(145deg, #35b9ee, #168acd); }
.telegram-link svg { width: 27px; height: 27px; fill: currentColor; }
.max-link { background: linear-gradient(145deg, #00bfff, #471aff 48%, #9500ff); }
.max-link span { font-size: 12px; font-weight: 1000; letter-spacing: -.06em; }
.eyebrow,
.step,
.mission-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffe36b;
  color: #5b3b00;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.primary {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(#ff6aaa, #ff328b);
  color: #fff;
  font-weight: 1000;
  box-shadow:
    0 7px 0 #ba2166,
    0 13px 24px rgba(218, 36, 120, 0.3);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.primary:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 #ba2166;
}
.jumbo {
  min-height: 50px;
  padding: 9px 76px 9px 22px;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.button-icon {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: -5px;
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 7px 7px rgba(71, 25, 126, .25));
}
.primary.jumbo {
  position: relative;
  overflow: visible;
}
.hero-copy .primary {
  margin-top: 34px;
  min-width: 240px;
}
.text-btn {
  display: block;
  border: 0;
  background: transparent;
  padding: 22px 10px;
  color: #5c3c9a;
  font-weight: 900;
  text-decoration: underline;
}
.hero-stage {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
}
.blob-a {
  width: 430px;
  height: 430px;
  background: #dbc7ff;
}
.blob-b {
  width: 270px;
  height: 270px;
  background: #a9f2dc;
  right: 0;
  bottom: 20px;
}
.target-peek {
  position: absolute;
  right: 8%;
  bottom: 7%;
  font-size: 100px;
  filter: drop-shadow(0 12px 10px #6b3b9366);
}
.target-peek span {
  position: absolute;
  right: -8px;
  top: -10px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffdd4d;
  font-size: 30px;
  font-weight: 1000;
}
.monster {
  position: relative;
  width: 250px;
  height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 20px 16px rgba(55, 20, 88, 0.25));
  animation: breathe 2.8s ease-in-out infinite;
}
.monster-body {
  position: relative;
  width: 180px;
  height: 185px;
  border-radius: 45% 52% 42% 50%;
  background: var(--monster, #8e5ae8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 7px solid rgba(62, 24, 106, 0.4);
  overflow: hidden;
}
.pattern-spots .monster-body {
  background-color: var(--monster);
  background-image: radial-gradient(#ffffff55 11%, transparent 12%);
  background-size: 36px 36px;
}
.pattern-stripes .monster-body {
  background: repeating-linear-gradient(
    120deg,
    var(--monster) 0 24px,
    #ffffff44 25px 38px
  );
}
.pattern-stars .monster-body {
  background-color: var(--monster);
  background-image: radial-gradient(#fff8 3px, transparent 4px);
  background-size: 27px 27px;
}
.color-grape {
  --monster: #8e5ae8;
}
.color-mint {
  --monster: #42d2a3;
}
.color-berry {
  --monster: #ef5694;
}
.color-sun {
  --monster: #f4bd39;
}
.monster-eyes {
  font-size: 55px;
  line-height: 1;
}
.monster-mouth {
  font-size: 47px;
  line-height: 1;
  margin-top: 11px;
}
.monster-special {
  font-size: 55px;
  height: 45px;
  z-index: 2;
}
.monster-arms {
  font-size: 65px;
  position: absolute;
  z-index: -1;
  top: 128px;
}
.monster-legs {
  font-size: 62px;
  height: 62px;
  margin-top: -8px;
}
.how-dialog {
  border: 0;
  border-radius: 26px;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 30px 100px #28144788;
}
.how-dialog::backdrop {
  background: #29154c99;
  backdrop-filter: blur(5px);
}
.how-dialog h2 {
  font-size: 31px;
  margin: 0 35px 10px 0;
}
.how-dialog p {
  font-size: 19px;
  line-height: 1.5;
}
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: #eee3ff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 29px;
}
.how-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 35px;
}
.how-flow .ui-art-icon {
  width: 47px;
  height: 47px;
}
.how-flow i {
  font-size: 20px;
}
.brief-card,
.result-card {
  width: min(680px, 100%);
  padding: 28px;
  text-align: center;
}
.brief-card h1,
.result-card h1 {
  font-size: clamp(32px, 6vw, 53px);
  margin: 12px;
}
.brief-content {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(245px, 1.15fr);
  align-items: center;
  gap: 16px;
  margin: 8px 0 18px;
}
.brief-content .guest {
  height: 245px;
  margin: 0;
}
.brief-content .fear-groups {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
}
.brief-content .fear-groups > div {
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.brief-content .fear-groups h2 {
  margin: 0 0 5px 4px;
  text-align: left;
}
.brief-content .fear-list {
  justify-content: flex-start;
}
.guest {
  font-size: clamp(100px, 18vw, 160px);
  margin: 5px;
  filter: drop-shadow(0 12px 10px #65408a30);
}
.fear-groups {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15px;
  margin: 15px 0 24px;
}
.fear-groups > div {
  background: #f3edff;
  padding: 12px;
  border-radius: 20px;
}
.fear-groups h2 {
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #765d9c;
}
.fear-list {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
}
.trait-card {
  position: relative;
  flex: 0 0 102px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}
.trait-card > span {
  display: grid;
  place-items: center;
}
.trait-card .ui-art-icon {
  width: 70px;
  height: 70px;
}
.trait-card small {
  position: absolute;
  left: 50%;
  bottom: 4px;
  max-width: calc(100% - 8px);
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #5e4387;
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.trait-card.strong {
  background: #ffe269;
}
.fear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 1000;
}
.fear .ui-art-icon {
  width: 43px;
  height: 43px;
}
.fear.strong {
  background: #ffe269;
}
.brief-card .primary,
.result-card .primary {
  margin: 32px auto 0;
  min-width: 250px;
}
.build-screen {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.25fr);
  gap: 18px;
}
.build-stage,
.customizer {
  padding: 20px;
}
.section-heading,
.show-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-heading h1,
.show-heading h1 {
  font-size: clamp(28px, 4vw, 45px);
  margin: 7px 0;
}
.mini-brief {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 28px;
  background: #fff2a9;
  padding: 8px 12px;
  border-radius: 16px;
}
.mini-brief .ui-art-icon {
  width: 43px;
  height: 43px;
}
.mini-brief small {
  font-size: 11px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.monster-workbench {
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #e8dfff 0 44%, transparent 45%),
    linear-gradient(#f8f3ff, #ebfff8);
  border-radius: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.stats > div {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #f2ecff;
  border-radius: 13px;
}
.stats span {
  display: grid;
  place-items: center;
}
.stats span .ui-art-icon {
  width: 62px;
  height: 62px;
}
.stats b {
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 29px;
  height: 29px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(#ff6684, #e82d5b);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 0 #ad2149;
}
.stats small {
  position: absolute;
  left: 50%;
  bottom: 3px;
  max-width: calc(100% - 8px);
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 7px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  color: #745c94;
}
.category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 2px 2px 9px;
  scrollbar-width: none;
}
.category-tab {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: #eee7fa;
  font-weight: 900;
  white-space: nowrap;
}
.category-tab.active {
  background: var(--purple);
  color: #fff;
}
.part-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  min-height: 168px;
  max-height: 335px;
  overflow-y: auto;
  padding: 3px;
}
.part-option {
  min-height: 150px;
  border: 3px solid transparent;
  border-radius: 19px;
  background: #f6f1ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.part-option > span {
  font-size: 56px;
}
.part-option.selected {
  border-color: #ff4f9a;
  background: #fff0f7;
  box-shadow: 0 7px 18px #e3488b2e;
}
.part-option.locked {
  filter: grayscale(0.7);
  opacity: 0.6;
}
.part-option small {
  font-size: 11px;
  font-weight: 900;
}
.mini-stats {
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-stat {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
}
.mini-stat .ui-art-icon {
  width: 38px;
  height: 38px;
}
.mini-stat b {
  position: absolute;
  right: -10px;
  top: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef3f67;
  color: #fff;
  font-size: 10px;
  box-shadow: 0 2px 0 #a91c45;
}
.part-option small .ui-art-icon {
  width: 18px;
  height: 18px;
}
.part-option small em {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  font-style: normal;
}
.part-option.locked {
  position: relative;
  filter: none;
  opacity: 1;
  padding-bottom: 39px;
}
.part-option.locked > .part-thumb {
  filter: grayscale(.72);
  opacity: .5;
}
.try-part {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  bottom: -5px;
  min-height: 34px;
  padding: 5px 42px 5px 9px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(#ff6aaa, #ff328b);
  color: #fff;
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 4px 0 #ba2166, 0 7px 12px rgba(218,36,120,.24);
}
.try-part .try-icon {
  position: absolute;
  right: 1px;
  bottom: -5px;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 4px rgba(66, 24, 113, .25));
}
.unlock-progress {
  width: min(220px, 100%);
  margin-top: 7px;
}
.unlock-track {
  height: 13px;
  padding: 2px;
  border: 2px solid #d7c5f1;
  border-radius: 999px;
  background: #eee7f7;
  overflow: hidden;
}
.unlock-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8e5ae8, #ff4f9a, #ffd84d);
  transition: width .45s ease;
}
.unlock-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.unlock-numbers b {
  color: #4e2b7d;
  font-size: 12px;
}
.unlock-numbers small {
  color: #755b95;
  font-size: 10px;
  font-weight: 900;
}
.unlock-progress.compact {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 35px;
  width: auto;
  margin: 0;
}
.unlock-progress.compact .unlock-track {
  height: 8px;
  padding: 1px;
  border-width: 1px;
}
.unlock-progress.compact .unlock-numbers {
  margin-top: 1px;
}
.unlock-progress.compact .unlock-numbers b,
.unlock-progress.compact .unlock-numbers small {
  font-size: 8px;
}
.paint-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.paint-row label {
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  margin-left: 5px;
}
.swatch,
.pattern {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #d5c5ef;
  font-weight: 1000;
}
.swatch {
  position: relative;
}
.swatch i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-style: normal;
}
.swatch i .ui-art-icon,
.pattern .ui-art-icon {
  width: 23px;
  height: 23px;
}
.paint-row .locked {
  opacity: 0.65;
}
.swatch.selected,
.pattern.selected {
  box-shadow: 0 0 0 4px var(--purple);
}
.swatch.grape {
  background: conic-gradient(#8e5ae8 0 62%, #5f2ba7 0 78%, #d9fff3 0);
}
.swatch.mint {
  background: conic-gradient(#42d2a3 0 62%, #207c6b 0 78%, #fff19b 0);
}
.swatch.berry {
  background: conic-gradient(#ef5694 0 62%, #9f2d69 0 78%, #d9fff3 0);
}
.swatch.sun {
  background: conic-gradient(#f4bd39 0 62%, #e57836 0 78%, #8a5ae8 0);
}
.swatch.ocean {
  background: conic-gradient(#32b9df 0 62%, #2363b0 0 78%, #b5fff0 0);
}
.swatch.candy {
  background: conic-gradient(#fa70c2 0 62%, #824ee8 0 78%, #72ebd0 0);
}
.pattern {
  background: #f3ecff;
}
.customizer > .primary {
  width: min(310px, calc(100% - 34px));
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}
.room-picker {
  margin: 4px 0 17px;
}
.room-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0 3px 8px;
}
.room-title b {
  text-transform: uppercase;
  font-size: 12px;
}
.room-title small {
  color: #755b99;
  font-weight: 800;
}
.room-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 3px 8px;
  scrollbar-width: thin;
}
.room-option {
  position: relative;
  flex: 0 0 112px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px #d5c5ef;
  overflow: hidden;
}
.room-option.selected {
  box-shadow: 0 0 0 4px var(--purple);
}
.room-option.locked {
  filter: grayscale(0.65);
}
.room-unlock-track {
  position: absolute;
  z-index: 1;
  inset: 4px 6px auto;
  height: 7px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(40, 23, 67, 0.72);
  box-shadow: 0 1px 3px rgba(32, 14, 61, 0.35);
}
.room-unlock-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55e7ff, #9cff73);
}
.room-option span {
  position: absolute;
  inset: auto 3px 3px;
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(37, 19, 77, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 1000;
}
.room-option span .ui-art-icon {
  width: 15px;
  height: 15px;
}
.show-screen {
  max-width: 940px;
  margin: auto;
}
.arena {
  position: relative;
  padding: 19px;
  min-height: calc(100dvh - 107px);
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(rgba(52, 20, 99, 0.1), rgba(52, 20, 99, 0.18)), var(--room-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.show-heading {
  position: relative;
  z-index: 2;
}
.guest-emotion {
  position: relative;
  width: 76px;
  height: 76px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe27a, #ff9dcd);
  overflow: hidden;
  box-shadow: 0 4px 0 #9b6fc3, 0 8px 18px rgba(52, 24, 96, .2);
}
.guest-emotion .guest-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.65);
  transform-origin: 50% 13%;
}
.guest-emotion i {
  position: absolute;
  z-index: 2;
  right: 2px;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ff416f;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 1000;
}
.guest-emotion.reacting {
  animation: guestReaction .45s ease both;
}
.show-heading::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -7px -10px;
  border-radius: 17px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
}
.show-heading h1 {
  margin-top: 2px;
}
.show-heading span {
  font-weight: 1000;
  color: #62468c;
}
.guest-small {
  font-size: 62px;
}
.scene {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}
.show-monster {
  transform-origin: bottom;
}
.guest-side {
  font-size: 120px;
  padding-bottom: 42px;
  filter: drop-shadow(0 14px 10px #36216855);
  animation: guestIdle 2s ease-in-out infinite;
}
.scare-burst {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 38%;
  font-size: 45px;
  font-weight: 1000;
  background: #fff8b9;
  border: 5px solid #fff;
  border-radius: 25px;
  padding: 12px 18px;
  opacity: 0;
}
.scare-burst.visible {
  animation: burst 0.5s ease-out both;
}
.jar-wrap {
  position: absolute;
  z-index: 4;
  right: 25px;
  top: 105px;
  display: flex;
  align-items: center;
  width: 120px;
  min-height: 94px;
  background: #fff;
  padding: 7px 48px 7px 8px;
  border-radius: 17px;
  box-shadow: 0 8px 20px #25134833;
}
.jar-wrap > div:last-child {
  display: flex;
  flex-direction: column;
}
.jar {
  position: relative;
  width: 64px;
  height: 82px;
  border: 5px solid #6a4a8c;
  border-radius: 11px 11px 20px 20px;
  overflow: hidden;
  background: #ebe5ff;
}
.jar-fill {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(#ff77bd, #9d46e9);
  transition: height 0.45s;
}
.jar > span {
  position: absolute;
  inset: 20px 0 auto;
  text-align: center;
  font-size: 22px;
}
.jar > span .ui-art-icon {
  width: 36px;
  height: 36px;
}
.jar-score {
  position: absolute;
  right: 5px;
  top: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#ff6684, #e82d5b);
  color: #fff;
  box-shadow: 0 4px 0 #a91c45;
}
.jar-score b {
  font-size: 19px;
  line-height: .9;
}
.jar-score small {
  font-size: 9px;
  line-height: 1;
}
.jar-label {
  position: absolute;
  right: 3px;
  bottom: 7px;
  width: 52px;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
}
.timing {
  background: #fff;
  border-radius: 18px;
  padding: 10px 16px;
  margin-bottom: 10px;
}
.timing p {
  margin: 0 0 7px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}
.timing-track {
  position: relative;
  height: 17px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    #ef6476,
    #ffd85a 28%,
    #58d996 43% 57%,
    #ffd85a 72%,
    #ef6476
  );
  overflow: visible;
}
.sweet {
  position: absolute;
  left: 43%;
  width: 14%;
  inset-block: 0;
  border-inline: 2px solid #fff;
}
.timing-dot {
  position: absolute;
  top: -5px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #5721c3;
  animation: timing 1.8s linear infinite alternate;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.action {
  position: relative;
  min-height: 104px;
  padding: 3px 4px 25px;
  border: 0;
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 #c9b4e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.action:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c9b4e8;
}
.action span {
  font-size: 27px;
}
.action span .ui-art-icon {
  width: 74px;
  height: 74px;
}
.scare-burst .ui-art-icon {
  width: 54px;
  height: 54px;
}
.action b {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  max-width: calc(100% - 8px);
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0e7ff;
  color: #513282;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.action small {
  font-size: 10px;
  color: #765b9c;
}
.confetti {
  font-size: 32px;
  color: #ffb316;
}
.jars {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 64px;
  margin: 12px;
}
.score-jar .ui-art-icon {
  width: 38px;
  height: 38px;
}
.jars span {
  filter: grayscale(1);
  opacity: 0.28;
}
.jars .filled {
  filter: none;
  opacity: 1;
  animation: jarWin 0.45s backwards;
}
.jars .filled:nth-child(2) {
  animation-delay: 0.15s;
}
.jars .filled:nth-child(3) {
  animation-delay: 0.3s;
}
.earned {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  background: #e9ddff;
  border-radius: 20px;
  padding: 14px;
  margin: 12px auto;
  max-width: 280px;
  font-size: 14px;
}
.earned-icon {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
}
.earned .ui-art-icon {
  width: 72px;
  height: 72px;
}
.earned-icon b {
  position: absolute;
  right: -9px;
  bottom: 1px;
  min-width: 38px;
  height: 38px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(#ff6684, #e82d5b);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 3px 0 #a91c45;
}
.earned > small {
  color: #6d5294;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}
.next-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff5c7;
  border-radius: 18px;
  padding: 11px;
  margin: 12px auto;
  max-width: 360px;
}
.next-unlock > span {
  font-size: 45px;
}
.next-unlock > span > img,
.next-unlock .reward-room {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 12px;
}
.next-unlock .reward-palette {
  display: block;
  width: 48px;
  height: 48px;
}
.next-unlock div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.next-unlock > div {
  flex: 1;
  max-width: 235px;
}
.next-unlock small {
  font-weight: 900;
  color: #795f28;
}
@keyframes breathe {
  50% {
    translate: 0 -7px;
    scale: 1.025;
  }
}
@keyframes guestIdle {
  50% {
    transform: rotate(2deg) translateY(-5px);
  }
}
@keyframes guestReaction {
  30% { transform: scale(1.12) rotate(-4deg); }
  65% { transform: scale(1.06) rotate(3deg); }
}
@keyframes timing {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 27px);
  }
}
@keyframes burst {
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -80%) scale(1);
  }
}
@keyframes jarWin {
  from {
    transform: scale(0.2) rotate(-20deg);
  }
  to {
    transform: none;
  }
}
@media (max-width: 760px) {
  .community-links { justify-content: center; margin-top: 13px; }
  .community-link { width: 40px; height: 40px; border-radius: 13px; }
  #app {
    padding: 76px 10px 12px;
  }
  .brand b {
    display: block;
    left: 48px;
    top: 25px;
    padding: 5px 8px 5px 14px;
    font-size: 10px;
  }
  .brand {
    width: 145px;
  }
  .sound-toggle { left: 51px; top: -11px; width: 32px; height: 32px; }
  .sound-toggle .ui-art-icon { width: 25px; height: 25px; }
  .brand-logo {
    left: -5px;
    top: -4px;
    width: 68px;
    height: 68px;
  }
  .home {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    gap: 0;
  }
  .hero-copy h1 {
    font-size: 47px;
    margin: 0 0 10px;
  }
  .hero-copy p {
    font-size: 18px;
    margin: 8px auto;
  }
  .hero-stage {
    min-height: 310px;
  }
  .blob-a {
    width: 270px;
    height: 270px;
  }
  .blob-b {
    width: 150px;
    height: 150px;
  }
  .target-peek {
    font-size: 66px;
    right: 13%;
    bottom: 4%;
  }
  .build-screen {
    display: block;
  }
  .build-stage,
  .customizer {
    padding: 12px;
  }
  .build-stage {
    margin-bottom: 10px;
  }
  .section-heading h1 {
    font-size: 27px;
  }
  .monster-workbench {
    min-height: 265px;
  }
  .builder-monster {
    margin: -28px 0;
  }
  .stats {
    margin-top: -12px;
  }
  .stats small {
    display: block;
  }
  .part-options {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 15px;
  }
  .part-option {
    flex: 0 0 42%;
    min-height: 145px;
    scroll-snap-align: start;
  }
  .part-option > span {
    font-size: 48px;
  }
  .paint-row {
    margin: 10px 0;
  }
  .arena {
    padding: 12px;
    min-height: calc(100dvh - 90px);
  }
  .show-heading h1 {
    font-size: 26px;
  }
  .guest-small {
    font-size: 48px;
  }
  .scene {
    min-height: 255px;
  }
  .show-monster {
    margin-left: -35px;
  }
  .guest-side {
    font-size: 83px;
    padding-bottom: 48px;
  }
  .jar-wrap {
    right: 12px;
    top: 83px;
  }
  .action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .action {
    min-height: 98px;
  }
  .action b {
    font-size: 11px;
  }
  .action small {
    display: none;
  }
  .timing {
    margin-top: auto;
  }
  .fear-groups {
    grid-template-columns: 1fr;
  }
  .brief-content {
    grid-template-columns: minmax(105px, .78fr) minmax(170px, 1.22fr);
    gap: 8px;
  }
  .brief-content .guest {
    height: 190px;
  }
  .brief-content .fear-groups {
    gap: 7px;
  }
  .brief-content .trait-card {
    flex-basis: 79px;
    height: 68px;
  }
  .brief-content .trait-card .ui-art-icon {
    width: 57px;
    height: 57px;
  }
  .brief-content .trait-card small {
    font-size: 6px;
    padding-inline: 5px;
  }
  .brief-card,
  .result-card {
    padding: 18px;
  }
  .jars {
    font-size: 54px;
  }
}
@media (max-height: 680px) and (min-width: 761px) {
  #app {
    padding-top: 72px;
    padding-bottom: 10px;
  }
  .home {
    min-height: calc(100dvh - 82px);
  }
  .hero-stage {
    min-height: 430px;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .monster-workbench {
    min-height: 280px;
  }
  .builder-monster {
    margin: -30px;
  }
  .part-option {
    min-height: 116px;
  }
  .arena {
    min-height: calc(100dvh - 86px);
  }
  .scene {
    min-height: 210px;
  }
  .guest-side {
    font-size: 88px;
  }
  .action {
    min-height: 70px;
  }
}
/* Keep the landing screen self-contained on short portrait viewports. Other
   screens may use the internal #game-scroll container when their content is
   intentionally longer than the viewport. */
@media (max-width: 760px) and (max-height: 680px) {
  #app { padding-top: 70px; padding-bottom: 8px; }
  .home { min-height: calc(100dvh - 78px); }
  .hero-stage { height: 218px; min-height: 0; }
  .blob-a { width: 198px; height: 198px; }
  .blob-b { width: 112px; height: 112px; bottom: 8px; }
  .hero-monster { transform: scale(.62); transform-origin: center; }
  .target-peek { font-size: 48px; right: 8%; bottom: 2%; }
  .target-peek span { width: 30px; height: 30px; right: -5px; top: -7px; font-size: 21px; }
  .hero-copy h1 { font-size: 35px; line-height: .95; margin: 0 0 5px; }
  .hero-copy p { font-size: 15px; line-height: 1.15; margin: 4px auto; }
  .hero-copy .primary { margin-top: 10px; }
  .hero-copy .jumbo { min-height: 44px; padding-block: 6px; font-size: 17px; }
  .hero-copy .button-icon { width: 58px; height: 58px; bottom: -4px; }
  .text-btn { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Rebirth keeps the lifetime leaderboard score while restarting unlock progression. */
.active-multiplier {
  display: none;
}
.active-multiplier.visible {
  display: grid;
  width: max-content;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  box-sizing: border-box;
  margin-right: -13px;
  place-items: center;
  border: 3px solid #fff4a3;
  border-radius: 11px;
  background: radial-gradient(circle at 35% 25%, #fff99b, #ffc42e 58%, #e66e24);
  color: #5b2589;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-7deg);
  box-shadow: 0 4px 0 #9a4b20, 0 7px 14px rgba(73,31,108,.24);
}
.rebirth-button {
  position: relative;
  width: max-content;
  min-width: 225px;
  min-height: 55px;
  margin: 12px auto 0;
  padding: 8px 70px 8px 22px;
  border: 4px solid #fff2a1;
  border-radius: 19px;
  background: linear-gradient(145deg, #8d55e5, #5a2db9);
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 0 7px 0 #3e1b87, 0 13px 24px rgba(69,28,120,.3);
  animation: rebirthInvite 1.65s ease-in-out infinite;
}
.rebirth-icon {
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 5px solid #fff3a0;
  border-radius: 28% 52% 31% 48%;
  background:
    radial-gradient(circle at 34% 25%, #fffca3 0 12%, transparent 13%),
    conic-gradient(from -35deg, #ffed58, #ff8b35, #d950c8, #844bea, #ffed58);
  color: #fff;
  font-style: normal;
  transform: translateY(-50%) rotate(9deg);
  box-shadow: 0 5px 0 #76318f, 0 9px 19px rgba(57,22,96,.32);
}
.rebirth-icon::before,
.rebirth-icon::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff074;
  box-shadow: 0 0 0 3px #fff;
}
.rebirth-icon::before { left: -8px; top: 8px; }
.rebirth-icon::after { right: -7px; bottom: 9px; }
.rebirth-icon b {
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 3px 0 #6d268a, 0 0 7px #fff08c;
}
.rebirth-icon.large {
  position: relative;
  right: auto;
  top: auto;
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  transform: rotate(7deg);
}
.rebirth-icon.large b { font-size: 31px; }
.rebirth-dialog { text-align: center; }
.rebirth-dialog h2 { margin-right: 0; }
.rebirth-dialog .primary { min-width: 190px; min-height: 48px; }
@keyframes rebirthInvite {
  50% { transform: translateY(-3px) scale(1.035); filter: brightness(1.1); box-shadow: 0 9px 0 #3e1b87, 0 0 28px rgba(255,213,73,.62); }
}

/* Keep the desktop show readable and fully inside the viewport. */
.show-screen .arena .sequence-slots {
  justify-content: safe center;
}
.show-screen .arena > .hint-button {
  flex: 0 0 auto;
  margin: 2px auto 7px;
}
@media (min-width: 901px) {
  .show-screen .arena {
    height: min(750px, calc(100dvh - 104px));
    min-height: 0;
  }
  .show-screen .action-grid {
    flex: 0 0 auto;
    padding-top: 8px;
    padding-bottom: 16px;
  }
}
@media (min-width: 901px) and (max-height: 760px) {
  .show-screen .arena { padding: 8px 13px; }
  .show-screen .show-heading h1 { font-size: 27px; }
  .show-screen .guest-emotion { width: 54px; height: 54px; }
  .show-screen .arena .sequence-slots { gap: 7px; padding: 11px 8px 5px; }
  .show-screen .arena .sequence-card { flex-basis: 50px; min-height: 53px; }
  .show-screen .arena .sequence-card .action-art { width: 31px; height: 31px; }
  .show-screen .scene { min-height: 118px; }
  .show-screen .show-monster { height: 180px; }
  .show-screen .guest-side { height: 145px; }
  .show-screen .arena > .hint-button { min-height: 40px; margin: 0 auto 5px; padding-block: 4px; }
  .show-screen .arena > .hint-button .ui-art-icon { width: 52px; height: 52px; }
  .show-screen .timing { padding: 5px 12px; }
  .show-screen .action { min-height: 76px; }
  .show-screen .action .action-art { width: 53px; height: 53px; }
}
@media (max-width: 760px) {
  .active-multiplier.visible { width: max-content; min-width: 29px; height: 29px; padding: 0 5px; margin-right: -12px; font-size: 11px; }
  .rebirth-button { min-width: 205px; min-height: 51px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rebirth-button { animation: none; }
}
.part-option small {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.part-option small em {
  font-size: 9px;
  color: #5d3b9e;
  font-style: normal;
}
.score-jar {
  position: relative;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-jar i {
  display: none;
}
.score-jar b {
  position: relative;
  filter: grayscale(1);
  opacity: 0.28;
}
.score-jar.filled b {
  filter: none;
  opacity: 1;
}
.score-jar .ui-art-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 7px 8px rgba(64, 27, 121, .22));
}
.jars .score-jar {
  filter: none;
  opacity: 1;
}
.jars .score-jar.filled {
  animation: jarWin 0.45s backwards;
}
.monster {
  display: block;
}
.monster-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.monster-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.layer-arms {
  z-index: 3;
  left: -35%;
  width: 100%;
  top: -41%;
}
.layer-legs {
  z-index: 3;
  top: 90%;
}
.layer-body {
  z-index: 3;
}
.layer-eyes {
  z-index: 4;
  width: 50%;
  left: 25%;
  top: -25%;
}
.layer-mouth {
  z-index: 5;
  width: 50%;
  top: 35%;
  left: 25%;
}
.layer-special {
  z-index: 2;
    width: 100%;
    top: -90%;
}
.monster-layer .fallback-part {
  font-size: 64px;
  filter: drop-shadow(0 7px 5px #371a6b45);
}
.layer-body .fallback-part {
  font-size: 150px;
}
.layer-eyes .fallback-part {
  transform: translateY(-28px);
}
.layer-mouth .fallback-part {
  transform: translateY(36px);
}
.layer-arms .fallback-part {
  font-size: 78px;
  transform: translateX(-105px);
}
.layer-legs .fallback-part {
  font-size: 76px;
  transform: translateY(125px);
}
.layer-special .fallback-part {
  font-size: 62px;
}
.color-mint .layer-body img,
.color-mint .layer-arms img,
.color-mint .layer-legs img {
  filter: hue-rotate(80deg);
}
.color-berry .layer-body img,
.color-berry .layer-arms img,
.color-berry .layer-legs img {
  filter: hue-rotate(305deg) saturate(0.88);
}
.color-sun .layer-body img,
.color-sun .layer-arms img,
.color-sun .layer-legs img {
  filter: hue-rotate(170deg) saturate(0.8) brightness(1.13);
}
.guest-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.target-peek {
  width: 150px;
  height: 180px;
}
.target-peek .guest-art {
  filter: drop-shadow(0 12px 10px #6b3b9366);
}
.guest {
  height: 200px;
  display: grid;
  place-items: center;
}
.guest .guest-art {
  max-width: 210px;
}
.guest-small {
  width: 62px;
  height: 68px;
}
.guest-side {
  width: 190px;
  height: 230px;
  padding-bottom: 0;
  display: grid;
  place-items: end center;
}
.guest-side .guest-art {
  filter: drop-shadow(0 14px 10px #36216855);
  animation: guestIdle 2s ease-in-out infinite;
}
.guest-emoji {
  font-size: inherit;
}
@media (max-width: 760px) {
  .target-peek {
    width: 95px;
    height: 125px;
  }
  .guest {
    height: 160px;
  }
  .guest-small {
    width: 48px;
    height: 53px;
  }
  .guest-side {
    width: 120px;
    height: 165px;
    padding-bottom: 20px;
  }
  .monster-layer .fallback-part {
    font-size: 52px;
  }
  .layer-body .fallback-part {
    font-size: 115px;
  }
  .layer-arms .fallback-part {
    transform: translateX(-72px);
  }
  .layer-legs .fallback-part {
    transform: translateY(95px);
  }
  .layer-special {
    transform: translateY(-55px);
  }
}
.layer-special {
  transform: none;
}
.layer-arms img,
.layer-legs img,
.layer-special img {
  clip-path: inset(6% 0 0);
}
.part-option .part-thumb {
  width: 100%;
  height: 95px;
  object-fit: contain;
  display: block;
}
.part-option .part-thumb + small,
.part-option .part-thumb + .mini-stats {
  margin-top: -7px;
}
.arena {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(75, 36, 134, 0.08)),
    var(--room-image);
  background-size: cover;
  background-position: center;
}
.show-heading {
  padding: 4px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(7px);
}

/* Unified compact CTA spacing and audience/progression layouts. */
.try-part {
  left: 50%;
  right: auto;
  width: max-content;
  min-width: 96px;
  padding: 6px 31px 6px 11px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.try-part .try-icon {
  right: -13px;
  width: 39px;
  height: 39px;
}
.customizer > .primary[data-show] {
  width: max-content;
  min-width: 205px;
  padding: 9px 55px 9px 19px;
}
.customizer > .primary[data-show] .button-icon {
  right: -7px;
  width: 62px;
  height: 62px;
}
.guest-portrait {
  position: relative;
  padding-bottom: 28px;
}
.guest-portrait .guest-art {
  height: calc(100% - 5px);
}
.guest-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  max-width: calc(100% - 14px);
  padding: 6px 15px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(#8f5ce9, #6536bc);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 3px 0 #452183, 0 7px 13px rgba(66, 32, 120, .18);
}
.target-brief {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 5px;
  border-radius: 18px;
  background: #fff2a9;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}
.target-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4dcff, #ffe7a7);
}
.target-avatar .guest-art {
  transform: scale(1.35);
  transform-origin: 50% 25%;
}
.target-brief > b {
  max-width: 95px;
  color: #543181;
  font-size: 13px;
  line-height: 1.05;
}
.target-fears {
  display: flex;
  gap: 2px;
}
.target-fears .ui-art-icon {
  width: 36px;
  height: 36px;
}
.room-options {
  padding-bottom: 14px;
}
.room-option {
  flex-basis: 128px;
  height: 96px;
  overflow: visible;
}
.room-option.locked {
  filter: none;
  box-shadow: 0 0 0 2px #cbb9e9;
}
.room-option.locked::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(53, 32, 83, .35);
}
.room-option .unlock-progress.compact {
  z-index: 2;
  bottom: 36px;
}
.room-option .unlock-progress.compact .unlock-track {
  border-color: rgba(255,255,255,.9);
  background: rgba(37,19,77,.72);
}
.room-option .unlock-progress.compact .unlock-numbers b,
.room-option .unlock-progress.compact .unlock-numbers small {
  color: #fff;
  text-shadow: 0 1px 2px #2a124b;
}
.room-try {
  bottom: -6px;
}
.result-card {
  width: min(760px, 100%);
}
.result-progress-row {
  display: grid;
  grid-template-columns: minmax(120px, .72fr) minmax(300px, 1.55fr);
  align-items: stretch;
  gap: 12px;
  margin: 12px auto;
}
.result-progress-row .earned,
.result-progress-row .next-unlock {
  width: 100%;
  max-width: none;
  min-height: 106px;
  margin: 0;
}
.result-progress-row > p {
  display: grid;
  place-items: center;
  margin: 0;
}

@media (max-width: 760px) {
  .brief-card h1 {
    margin-top: 2px;
  }
  .guest-name {
    padding: 5px 11px;
    font-size: 11px;
  }
  .section-heading {
    gap: 7px;
  }
  .section-heading h1 {
    flex: 0 1 auto;
    font-size: 21px;
    line-height: 1;
  }
  .target-brief {
    gap: 4px;
    padding: 4px 6px 4px 4px;
  }
  .target-avatar {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .target-brief > b {
    max-width: 65px;
    font-size: 10px;
  }
  .target-fears .ui-art-icon {
    width: 28px;
    height: 28px;
  }
  .result-progress-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
  }
  .result-progress-row .earned,
  .result-progress-row .next-unlock {
    min-height: 92px;
    padding: 7px;
  }
  .result-progress-row .earned-icon,
  .result-progress-row .earned .ui-art-icon {
    width: 56px;
    height: 56px;
  }
  .result-progress-row .earned-icon b {
    min-width: 31px;
    height: 31px;
    font-size: 12px;
  }
  .result-progress-row .next-unlock {
    gap: 6px;
  }
  .result-progress-row .next-unlock > span > img,
  .result-progress-row .next-unlock .reward-room {
    width: 42px;
    height: 42px;
  }
  .result-progress-row .next-unlock > div > b {
    font-size: 11px;
  }
  .result-progress-row .unlock-numbers b,
  .result-progress-row .unlock-numbers small {
    font-size: 8px;
  }
}

/* Compact horizontal builder and circular fear-drop progression. */
.language-button {
  padding: 0;
  font-size: 25px;
  line-height: 1;
}
.language-button span {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(49, 25, 82, .28));
}
.section-heading {
  justify-content: flex-start;
}
.section-heading > h1 {
  flex: 0 0 auto;
}
.build-vs {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#ff665f, #df2c55);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  font-style: italic;
  box-shadow: 0 4px 0 #9f1e43, 0 7px 14px rgba(122, 32, 75, .2);
}
.target-brief {
  flex: 1 1 auto;
  margin-left: auto;
}
.target-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.target-copy > b {
  color: #543181;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.target-fears {
  display: flex;
  gap: 5px;
}
.target-fear {
  position: relative;
  width: 42px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ffe269;
}
.target-fear .ui-art-icon {
  width: 36px;
  height: 36px;
}
.target-fear small {
  position: absolute;
  left: 50%;
  bottom: -1px;
  max-width: calc(100% - 3px);
  transform: translateX(-50%);
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #654785;
  font-size: 4.8px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.part-options {
  display: flex;
  min-height: 145px;
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  padding: 3px 3px 12px;
}
.part-option {
  flex: 0 0 126px;
  min-height: 128px;
  gap: 5px;
  scroll-snap-align: start;
}
.part-option .part-thumb {
  height: 80px;
}
.part-option.locked {
  min-height: 128px;
  padding-bottom: 30px;
}
.option-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 9px 0;
}
.option-row > label {
  margin: 0;
}
.option-row > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.drop-progress {
  --progress: 0deg;
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid !important;
  place-items: center;
}
.drop-progress > .ui-art-icon {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 5px 6px rgba(75, 38, 128, .2));
}
.drop-progress > span {
  position: absolute;
  z-index: 2;
  right: -2px;
  bottom: -1px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#ffd43f var(--progress), #d7c9e9 0);
  box-shadow: 0 3px 0 #78519c, 0 5px 10px rgba(55, 25, 91, .2);
}
.drop-progress > span::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
}
.drop-progress > span b {
  position: relative;
  z-index: 1;
  color: #4b2b75;
  font-size: 11px;
  font-weight: 1000;
}
.drop-progress.compact {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
}
.drop-progress.compact > .ui-art-icon {
  width: 44px;
  height: 44px;
}
.drop-progress.compact > span {
  width: 29px;
  height: 29px;
}
.drop-progress.compact > span::before {
  inset: 4px;
}
.drop-progress.compact > span b {
  font-size: 9px;
}
.part-option.locked > .drop-progress.compact,
.room-option.locked > .drop-progress.compact {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 4px;
}
.room-option {
  flex-basis: 116px;
  height: 84px;
}
.room-option > span {
  left: 4px;
  right: 4px;
  text-align: center;
}
.room-try {
  bottom: -8px;
  background: linear-gradient(#ffb53e, #ff7b31);
  box-shadow: 0 4px 0 #bd4920, 0 7px 12px rgba(167,70,29,.24);
}
.show-target {
  display: flex;
  align-items: center;
  gap: 8px;
}
.show-target .jar-wrap {
  position: relative;
  inset: auto;
  width: 96px;
  min-height: 72px;
  padding: 4px 38px 4px 5px;
  border-radius: 15px;
}
.show-target .jar {
  width: 50px;
  height: 64px;
  border-width: 4px;
}
.show-target .jar > span {
  inset: 14px 0 auto;
}
.show-target .jar > span .ui-art-icon {
  width: 29px;
  height: 29px;
}
.show-target .jar-score {
  right: 3px;
  top: 7px;
  width: 43px;
  height: 43px;
  border-width: 3px;
}
.show-target .jar-label {
  display: none;
}
.next-unlock .drop-progress {
  margin: 0 auto;
}

@media (max-width: 760px) {
  .section-heading > h1 {
    font-size: 22px;
  }
  .build-vs {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .target-brief {
    max-width: 190px;
  }
  .target-copy > b {
    font-size: 9px;
  }
  .target-fear {
    width: 34px;
    height: 29px;
  }
  .target-fear .ui-art-icon {
    width: 30px;
    height: 30px;
  }
  .target-fear small {
    font-size: 4px;
  }
  .part-options {
    min-height: 132px;
  }
  .part-option,
  .part-option.locked {
    flex-basis: 112px;
    min-height: 118px;
  }
  .part-option .part-thumb {
    height: 72px;
  }
  .show-target {
    gap: 5px;
  }
  .guest-emotion {
    width: 62px;
    height: 62px;
  }
  .show-target .jar-wrap {
    width: 82px;
    min-height: 60px;
    padding-right: 32px;
  }
  .show-target .jar {
    width: 43px;
    height: 54px;
  }
  .show-target .jar-score {
    width: 37px;
    height: 37px;
    font-size: 11px;
  }
}

/* Duel-style builder header and corner-mounted unlock controls. */
.hero-stage {
  overflow: visible;
}
.build-target-row {
  position: relative;
  z-index: 2;
  width: 100%;
}
.build-target-row .target-brief {
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 7px 12px 12px 7px;
}
.build-target-row .target-avatar {
  flex-basis: 60px;
  width: 60px;
  height: 60px;
}
.build-target-row .target-copy {
  flex: 1;
}
.build-target-row .target-copy > b {
  font-size: 13px;
  white-space: normal;
}
.build-target-row .target-fear {
  width: 48px;
  height: 39px;
}
.build-target-row .target-fear .ui-art-icon {
  width: 40px;
  height: 40px;
}
.build-vs {
  position: relative;
  z-index: 5;
  margin: -11px auto -21px;
  pointer-events: none;
  transform: rotate(-6deg);
}
.monster-workbench {
  position: relative;
  z-index: 1;
}
.part-option.locked > .drop-progress.compact,
.room-option.locked > .drop-progress.compact {
  top: -11px;
  right: -11px;
}
.drop-progress > span {
  right: -11px;
  border: 2px solid #fff;
  background: conic-gradient(#50e09c var(--progress), #553b72 0);
  box-shadow: 0 3px 0 #5d3a80, 0 5px 12px rgba(55, 25, 91, .28);
  transition: background .45s ease;
}
.drop-progress > span::before {
  inset: 5px;
  background: #fff8d9;
}
.drop-progress.compact > span {
  right: -10px;
  width: 31px;
  height: 31px;
}
.drop-progress.compact > span::before {
  inset: 4px;
}
.try-part,
.room-try {
  min-height: 19px;
  padding: 2px 29px 2px 9px;
  background: linear-gradient(#ff6aaa, #ff328b);
  box-shadow: 0 3px 0 #ba2166, 0 6px 11px rgba(218,36,120,.24);
  font-size: 8px;
  line-height: 1;
}
.try-part .try-icon,
.room-try .try-icon {
  right: -13px;
  bottom: -8px;
  width: 39px;
  height: 39px;
}
.room-option {
  height: 78px;
}
.room-option::after {
  content: "";
  position: absolute;
  inset: auto 5px 5px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  pointer-events: none;
}
.room-option.locked::after {
  display: none;
}
.option-row.no-label {
  grid-template-columns: minmax(0, 1fr);
  margin: 5px 0;
}
.option-row.no-label > div {
  min-height: 53px;
  padding: 7px 6px;
  overflow-y: hidden;
}
.room-picker {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .build-target-row .target-brief {
    min-height: 63px;
    padding: 5px 8px 10px 5px;
  }
  .build-target-row .target-avatar {
    flex-basis: 49px;
    width: 49px;
    height: 49px;
  }
  .build-target-row .target-copy > b {
    font-size: 11px;
  }
  .build-target-row .target-fear {
    width: 40px;
    height: 34px;
  }
  .build-target-row .target-fear .ui-art-icon {
    width: 34px;
    height: 34px;
  }
  .build-vs {
    margin-top: -10px;
    margin-bottom: -18px;
  }
}

/* Final compact header, playful tabs and stable responsive layering. */
.build-target-row .target-copy {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.build-target-row .target-copy > b {
  flex: 0 0 auto;
}
.build-target-row .target-fears {
  flex: 0 0 auto;
}
.build-target-row .target-fear {
  width: 54px;
  height: 45px;
}
.build-target-row .target-fear .ui-art-icon {
  width: 46px;
  height: 46px;
}
.build-target-row .target-fear small {
  font-size: 5.5px;
}
.stats {
  position: relative;
  z-index: 6;
  margin-top: 10px;
}
.stats > div {
  min-width: 0;
}
.stats small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-try > span {
  position: static;
  inset: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.category-tabs {
  gap: 8px;
  padding: 5px 5px 12px;
}
.category-tab {
  min-height: 37px;
  padding: 0 14px;
  border: 2px solid #fff;
  border-radius: 8px 13px 13px 8px;
  background: linear-gradient(135deg, #ffe87a, #ffc947);
  color: #4e2a70;
  box-shadow: 0 4px 0 #d49a2f, 0 7px 12px rgba(86,45,120,.14);
  transform: rotate(-1.2deg);
}
.category-tab:nth-child(even) {
  transform: rotate(1deg);
}
.category-tab.active {
  background: linear-gradient(135deg, #9b69eb, #6940c8);
  color: #fff;
  box-shadow: 0 4px 0 #4b2597, 0 7px 13px rgba(64,35,118,.2);
  transform: rotate(-1deg) translateY(-2px);
}
.guest-emotion {
  overflow: visible;
}
.emotion-crop {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.guest-emotion i {
  right: -7px;
  top: -7px;
  width: 31px;
  height: 31px;
  border: 3px solid #fff;
  background: linear-gradient(#ffe36b, #ffb33d);
  font-size: 18px;
  box-shadow: 0 3px 0 #c16a27, 0 6px 10px rgba(70,31,105,.22);
}
.show-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.show-title h1 {
  margin: 0;
}
.turn-progress {
  --turn-progress: 120deg;
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: conic-gradient(#ff4f91 var(--turn-progress), #d9ccea 0);
  box-shadow: 0 3px 0 #774aa3, 0 6px 12px rgba(62,31,101,.18);
}
.turn-progress::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
}
.turn-progress b {
  position: relative;
  z-index: 1;
  color: #55327f;
  font-size: 15px;
}
.next-unlock {
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 10px;
  background: linear-gradient(135deg, #fff4b8, #ffe47b);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 #d3a336, 0 8px 15px rgba(116,77,24,.12);
}
.next-unlock-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.next-unlock-copy small {
  color: #9b651d;
  font-size: 9px;
  text-transform: uppercase;
}
.next-unlock-copy b {
  color: #4f2d76;
  font-size: 14px;
}
.next-unlock > .drop-progress {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats small {
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  .build-target-row .target-copy {
    gap: 6px;
  }
  .build-target-row .target-copy > b {
    font-size: 10px;
  }
  .build-target-row .target-fear {
    width: 45px;
    height: 38px;
  }
  .build-target-row .target-fear .ui-art-icon {
    width: 39px;
    height: 39px;
  }
  .build-target-row .target-fear small {
    font-size: 4.6px;
  }
  .show-title {
    gap: 6px;
  }
  .turn-progress {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
  }
  .turn-progress b {
    font-size: 12px;
  }
  .next-unlock-copy b {
    font-size: 11px;
  }
}

/* Unified locked-state overlay, reward sizing and visual timing hint. */
.part-option.locked::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 16px;
  background: rgba(53, 32, 83, .35);
  pointer-events: none;
}
.part-option.locked > .part-thumb {
  position: relative;
  z-index: 0;
  filter: grayscale(.55);
  opacity: .72;
}
.part-option.locked > .drop-progress,
.part-option.locked > .try-part {
  z-index: 3;
}
.result-progress-row {
  width: min(500px, 100%);
  grid-template-columns: 112px minmax(0, 360px);
  justify-content: center;
}
.result-progress-row .next-unlock {
  max-width: 360px;
}
.drop-counter {
  width: 54px;
}
.drop-counter b {
  right: -7px;
  bottom: 1px;
}
.part-option.locked > .drop-progress.compact,
.room-option.locked > .drop-progress.compact {
  top: -11px;
  right: -11px;
  width: 48px;
  height: 48px;
}
.part-option.locked > .drop-progress.compact > span,
.room-option.locked > .drop-progress.compact > span {
  right: -10px;
  bottom: -1px;
}
.timing {
  position: relative;
  padding: 20px 16px 10px;
}
.timing-pointer {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -42px;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  pointer-events: none;
  animation: timingPointer 1s ease-in-out infinite;
}
.timing-pointer .ui-art-icon {
  width: 70px;
  height: 70px;
}
@keyframes timingPointer {
  50% { transform: translateX(-50%) translateY(8px) scale(1.05); }
}

@media (max-width: 760px) {
  .result-progress-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .timing-pointer,
  .timing-pointer .ui-art-icon {
    width: 60px;
    height: 60px;
  }
  .timing-pointer {
    top: -35px;
  }
}

/* Small alignment fixes for fear labels, room progress and the next reward. */
.build-target-row .target-fears {
  gap: 13px;
}
.build-target-row .target-fear small {
  z-index: 2;
  width: max-content;
  max-width: none;
  padding-inline: 5px;
}
.result-progress-row {
  grid-template-columns: 112px max-content;
}
.result-progress-row .next-unlock {
  width: max-content;
  max-width: 360px;
}
.room-option.locked > .drop-progress.compact > span {
  left: auto;
  right: -10px;
  top: auto;
  bottom: -1px;
  max-width: none;
  padding: 0;
}

@media (max-width: 760px) {
  .build-target-row .target-fears {
    gap: 10px;
  }
  .result-progress-row {
    grid-template-columns: 92px max-content;
  }
  .result-progress-row .next-unlock {
    max-width: 205px;
  }
}

/* The show jar uses the same close, bottom-right counter placement as the header drop. */
.show-target .jar-wrap {
  width: 62px;
  min-height: 72px;
  padding: 4px;
  overflow: visible;
}
.show-target .jar-score {
  right: -7px;
  top: auto;
  bottom: 1px;
  width: 35px;
  height: 35px;
  border-width: 3px;
}
.show-target .jar-score b {
  font-size: 14px;
}
.show-target .jar-score small {
  font-size: 7px;
}

@media (max-width: 760px) {
  .show-target .jar-wrap {
    width: 55px;
    min-height: 62px;
    padding: 3px;
  }
  .show-target .jar-score {
    right: -7px;
    bottom: 0;
    width: 31px;
    height: 31px;
  }
}

/* Progression v2: viewers, memory sequences, volumes, sounds and leaderboard. */
.drop-counter {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.guests-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 14px;
  background: linear-gradient(#9e70ed, #6b3fc6);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 3px 0 #4c278f;
}
.sound-library {
  display: flex;
  gap: 9px;
  min-height: 160px;
  padding: 6px 5px 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.sound-card {
  position: relative;
  flex: 0 0 124px;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(#fff8c9, #ffe46f);
  box-shadow: 0 5px 0 #d0a22f;
  scroll-snap-align: start;
}
.sound-card > span {
  font-size: 52px;
}
.sound-card b { color: #4c2b72; font-size: 14px; }
.sound-card small { color: #80621f; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.sound-card.locked {
  background: #6a5b78;
  filter: grayscale(.6);
  opacity: .68;
}
.sequence-panel,
.collection-panel,
.leaderboard-panel {
  width: min(880px, 100%);
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  text-align: center;
}
.collection-screen,
.leaderboard-screen,
.sequence-screen {
  width: 100%;
  min-width: 0;
}
.collection-panel {
  overflow: hidden;
}
.sequence-panel { width: min(720px, 100%); }
.sequence-panel h1 { margin: 3px 0 6px; font-size: clamp(31px, 5vw, 48px); }
.sequence-panel p { margin: 0 auto 18px; color: #6e5292; font-weight: 800; }
.memory-icon { display: block; font-size: 54px; }
.sequence-preview,
.sequence-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow-x: auto;
  padding: 8px 5px 14px;
}
.sequence-card {
  position: relative;
  flex: 0 0 94px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 3px solid #fff;
  border-radius: 17px;
  background: linear-gradient(#fff7c0, #ffd95c);
  color: #4e2c75;
  box-shadow: 0 5px 0 #c88d29, 0 9px 15px rgba(77,40,105,.15);
}
.sequence-card > small {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ef3f67;
  color: #fff;
  font-weight: 1000;
}
.sequence-card .ui-art-icon { width: 54px; height: 54px; }
.sequence-card .action-emoji { font-size: 45px; }
.sequence-card > b { max-width: 88px; font-size: 10px; }
.sequence-card > em { padding: 2px 6px; border-radius: 999px; background: #fff; font-size: 8px; font-style: normal; font-weight: 900; }
.sequence-card .sequence-trait {
  position: absolute;
  z-index: 3;
  right: -7px;
  top: -8px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff5c8;
  box-shadow: 0 2px 0 #c58c28;
}
.sequence-card .sequence-trait .ui-art-icon {
  width: 27px;
  height: 27px;
}
.sequence-card.hidden { min-height: 72px; flex-basis: 62px; background: #74618b; box-shadow: 0 4px 0 #4a365f; }
.sequence-card.hidden > b { color: #fff; font-size: 29px; }
.sequence-card.correct {
  border-color: #eaffd6;
  background: linear-gradient(#dcffc9, #a9efaa);
  box-shadow: 0 4px 0 #50a865;
  animation: sequence-choice-in .28s cubic-bezier(.2,1.45,.45,1);
}
.sequence-card.wrong {
  border-color: #ffe0df;
  background: linear-gradient(#ffe6df, #ffaaa8);
  box-shadow: 0 4px 0 #d95f68;
  animation: sequence-miss-in .34s ease;
}
@keyframes sequence-choice-in {
  from { opacity: .2; transform: translateY(14px) scale(.7); }
  to { opacity: 1; transform: none; }
}
@keyframes sequence-miss-in {
  0% { opacity: .3; transform: translateY(12px) scale(.72); }
  55% { transform: translateX(-3px) rotate(-2deg); }
  75% { transform: translateX(3px) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
.sequence-panel .primary { margin: 22px auto 0; min-width: 230px; }
.arena .sequence-slots {
  position: relative;
  z-index: 5;
  justify-content: flex-start;
  padding-block: 6px 9px;
}
.arena .sequence-card {
  flex-basis: 58px;
  min-height: 62px;
  border-radius: 12px;
}
.arena .sequence-card .ui-art-icon { width: 37px; height: 37px; }
.arena .sequence-card .action-emoji { font-size: 31px; }
.arena .sequence-card > b { display: none; }
.arena .sequence-card > em { font-size: 6px; }
.arena .sequence-card > small { width: 18px; height: 18px; font-size: 8px; }
.volume-picker {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 8px;
}
.volume-picker > small { display: grid; place-items: center; padding-right: 4px; color: #fff; font-size: 9px; font-weight: 1000; text-shadow: 0 2px 3px #3c215b; text-transform: uppercase; }
.volume-picker button {
  min-height: 31px;
  padding: 0 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #eee6fa;
  color: #56367c;
  font-size: 9px;
  font-weight: 1000;
}
.volume-picker button.selected { background: linear-gradient(#ffe76c,#ffbd39); box-shadow: 0 3px 0 #b86b23; }
.action-grid {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 3px 8px;
  scroll-snap-type: x proximity;
}
.action {
  flex: 0 0 112px;
  scroll-snap-align: start;
}
.action-emoji { font-size: 48px; line-height: 1; }
.hint-button,
.replay-ad,
.replay-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 11px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: linear-gradient(#ff6aaa,#ff328b);
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  box-shadow: 0 3px 0 #ba2166;
}
.hint-button { position: absolute; z-index: 8; right: 17px; bottom: 132px; }
.hint-button .ui-art-icon,
.replay-ad .ui-art-icon,
.replay-level .ui-art-icon { width: 27px; height: 27px; }
.next-hint {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 31%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border: 4px solid #fff;
  border-radius: 17px;
  background: #fff3a1;
  box-shadow: 0 9px 25px rgba(55,25,90,.28);
}
.next-hint small { font-size: 8px; text-transform: uppercase; }
.next-hint .ui-art-icon { width: 42px; height: 42px; }
.next-hint .action-emoji { font-size: 36px; }
.next-hint em { font-size: 9px; font-style: normal; }
.page-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; text-align: left; }
.page-heading h1 { margin: 0; font-size: clamp(31px, 5vw, 49px); }
.back-button {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  min-width: 45px;
  width: 45px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #7750cf;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
  box-shadow: 0 4px 0 #4c2b91;
}
.back-button svg {
  display: block;
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guest-road {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 13px;
  overflow-x: auto;
  padding: 7px 5px 20px;
  scroll-snap-type: x mandatory;
}
.guest-level {
  position: relative;
  flex: 0 0 180px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 4px solid #fff;
  border-radius: 23px;
  background: linear-gradient(#f2e8ff,#fff8d4);
  box-shadow: 0 7px 0 #b99ade, 0 13px 24px rgba(55,25,90,.15);
  scroll-snap-align: start;
}
.guest-level.locked { justify-content: center; background: #685976; filter: grayscale(.5); }
.guest-level.locked > b { width: 82px; height: 82px; display: grid; place-items: center; border: 5px solid #ffffffaa; border-radius: 50%; color: #fff; font-size: 39px; }
.level-number { position: absolute; left: 7px; top: 7px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #ef3f67; color: #fff; font-weight: 1000; }
.guest-level-art { width: 145px; height: 168px; }
.guest-level h2 { margin: 2px 0 5px; font-size: 18px; }
.level-jars { display: flex; gap: 3px; margin-bottom: 9px; }
.level-jars span { filter: grayscale(1); opacity: .25; }
.level-jars span.filled { filter: none; opacity: 1; }
.level-jars .ui-art-icon { width: 30px; height: 30px; }
.play-level { min-height: 32px; padding: 0 17px; border: 0; border-radius: 11px; background: #68d98d; color: #163f25; font-weight: 1000; box-shadow: 0 3px 0 #2f9552; }
.leaderboard-panel { width: min(680px,100%); }
.leaderboard-head,
.leaderboard-panel li { display: grid; grid-template-columns: 35px 45px minmax(0,1fr) 90px; align-items: center; gap: 8px; text-align: left; }
.leaderboard-head { padding: 0 10px 7px; color: #7d6898; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.leaderboard-panel ol { margin: 0; padding: 0; list-style: none; }
.leaderboard-panel li { min-height: 58px; padding: 7px 10px; border-top: 2px solid #eee5f8; }
.leaderboard-panel li.is-current { border: 3px solid #ffd85c; border-radius: 14px; background: #fff7c9; }
.leader-avatar { width: 39px; height: 39px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #eee4fa; font-size: 20px; }
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-panel li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-panel li b em { margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: #ef3f67; color: #fff; font-size: 7px; font-style: normal; }
.leaderboard-panel li strong { display: flex; justify-content: flex-end; align-items: center; gap: 3px; }
.leaderboard-panel li strong .ui-art-icon { width: 26px; height: 26px; }
.leaderboard-empty { display: block !important; padding: 25px !important; text-align: center !important; }
.result-flavor { display: block; margin-top: -8px; color: #745890; font-weight: 900; }
.result-card .replay-ad { margin: 14px auto 0; }

@media (max-width: 760px) {
  .guests-button { width: 38px; height: 38px; font-size: 18px; }
  .sequence-panel,
  .collection-panel,
  .leaderboard-panel { padding: 16px 12px; }
  .sequence-preview { justify-content: flex-start; }
  .sequence-card { flex-basis: 82px; min-height: 103px; }
  .arena .sequence-slots { justify-content: flex-start; }
  .arena .sequence-card { flex-basis: 51px; }
  .action { flex-basis: 92px; min-height: 92px; }
  .action-emoji { font-size: 40px; }
  .hint-button { right: 12px; bottom: 118px; }
  .guest-level { flex-basis: 164px; min-height: 283px; }
  .leaderboard-head,
  .leaderboard-panel li { grid-template-columns: 27px 38px minmax(0,1fr) 70px; gap: 5px; }
  .leaderboard-panel li { padding-inline: 5px; }
}

/* The pattern is independent from the baked body art, so every selector is immediately visible. */
.pattern-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: auto 88%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: auto 88%;
  clip-path: polygon(
    44% 10%,
    56% 10%,
    73% 18%,
    86% 32%,
    98% 58%,
    100% 100%,
    0 100%,
    2% 58%,
    14% 32%,
    27% 18%
  );
  opacity: 0.58;
  mix-blend-mode: screen;
}
.layer-body-jelly .pattern-overlay {
  -webkit-mask-image: url("./assets/parts/body-jelly.png");
  mask-image: url("./assets/parts/body-jelly.png");
}
.layer-body-fuzzy .pattern-overlay {
  -webkit-mask-image: url("./assets/parts/body-fuzzy.png");
  mask-image: url("./assets/parts/body-fuzzy.png");
}
.layer-body-striped .pattern-overlay {
  -webkit-mask-image: url("./assets/parts/body-striped.png");
  mask-image: url("./assets/parts/body-striped.png");
}
.pattern-spots .pattern-overlay {
  background-image:
    radial-gradient(circle, #fff7a4 0 22%, transparent 24%),
    radial-gradient(circle, #d9fff3 0 18%, transparent 20%);
  background-position:
    0 0,
    20px 22px;
  background-size: 42px 42px;
}
.pattern-stripes .pattern-overlay {
  background: repeating-linear-gradient(
    118deg,
    transparent 0 14px,
    #fff1a8 15px 24px,
    transparent 25px 38px
  );
  opacity: 0.62;
}
.pattern-stars .pattern-overlay {
  background-image: url("./assets/patterns/stars.svg");
  background-size: 46px 46px;
  background-position: center;
  opacity: 0.76;
}

/* Sound collection and playful level-road polish. */
.guests-button {
  padding: 0;
  overflow: visible;
}
.guests-button .ui-art-icon {
  width: 55px;
  height: 55px;
  max-width: none;
  filter: drop-shadow(0 3px 2px rgba(62, 29, 103, .28));
}
.sound-customizer {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 14px 18px 18px;
}
.sound-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 45px;
}
.sound-heading h2 {
  margin: 0;
  color: #543181;
  font-size: clamp(20px, 3vw, 29px);
}
.sound-heading-preview,
.monster-sound-preview {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 4px 4px rgba(70, 30, 116, .28));
}
.sound-heading-preview {
  width: 52px;
  height: 52px;
}
.sound-heading-preview .ui-art-icon {
  width: 58px;
  height: 58px;
  max-width: none;
}
.monster-sound-preview {
  position: absolute;
  z-index: 8;
  right: 12%;
  top: 44%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 4px 0 rgba(87,48,139,.22);
}
.monster-sound-preview .ui-art-icon {
  width: 76px;
  height: 76px;
  max-width: none;
}
.sound-heading-preview.playing,
.monster-sound-preview.playing {
  animation: sound-preview-pulse .52s ease;
}
@keyframes sound-preview-pulse {
  0%,100% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.18) rotate(-7deg); }
  68% { transform: scale(.95) rotate(6deg); }
}
.sound-library {
  min-height: 132px;
  padding-top: 10px;
}
.sound-card {
  flex-basis: 116px;
  min-height: 120px;
  padding: 5px;
  cursor: pointer;
}
.sound-card .action-art {
  width: 76px;
  height: 76px;
  margin-bottom: -7px;
  object-fit: contain;
}
.sound-card.selected {
  border-color: #ff55a0;
  background: linear-gradient(#fff4fb, #ffc7e2);
  box-shadow: 0 5px 0 #d33c80, 0 9px 18px rgba(210,48,128,.2);
}
.sound-bonus {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#ff6684, #e82d5b);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 2px 0 #ad2149;
}
.stat-card.sound-boosted {
  background: linear-gradient(145deg, #fff8cf, #f1e5ff);
  box-shadow: inset 0 0 0 2px #f0c84e;
}
.stat-sound-bonus {
  position: absolute;
  left: 2px;
  top: 1px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1px 4px 1px 1px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ffdd55;
  color: #5a347a;
  font-style: normal;
  box-shadow: 0 2px 0 #c59925;
}
.stat-sound-bonus .action-art {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.stat-sound-bonus em {
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}
.sound-card.locked .action-art {
  filter: grayscale(.8) brightness(.72);
  opacity: .62;
}
.sound-customizer > .primary[data-show] {
  width: max-content;
  min-width: 205px;
  margin: 9px auto 0;
  padding: 9px 55px 9px 19px;
}
.sound-customizer > .primary[data-show] .button-icon {
  right: -7px;
  width: 62px;
  height: 62px;
}
.action .action-art,
.sequence-card .action-art,
.next-hint .action-art {
  object-fit: contain;
}
.action .action-art { width: 76px; height: 76px; }
.sequence-card .action-art { width: 58px; height: 58px; }
.arena .sequence-card .action-art { width: 39px; height: 39px; }
.next-hint .action-art { width: 48px; height: 48px; }
.volume-picker > small { display: none; }
.guest-level {
  overflow: visible;
  padding-bottom: 42px;
}
.guest-level .level-number {
  left: -15px;
  top: -17px;
  z-index: 8;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0,61% 30%,92% 20%,74% 47%,100% 66%,67% 67%,66% 100%,47% 76%,21% 96%,29% 64%,0 58%,28% 42%,10% 15%,41% 28%);
  background: linear-gradient(145deg,#fff58b 6%,#ffc72e 54%,#ee8f18 100%);
  color: #5b2b7b;
  font-size: 20px;
  text-shadow: 0 1px #fff4a6;
  filter: drop-shadow(0 4px 1px #9d5a20) drop-shadow(0 7px 7px rgba(63,31,96,.22));
}
.guest-level.locked {
  justify-content: center;
  gap: 3px;
  background: linear-gradient(155deg,#8a72a7,#4f3b68);
  filter: none;
  box-shadow: 0 7px 0 #46325d, 0 13px 24px rgba(55,25,90,.22);
}
.guest-level.locked::before,
.guest-level.locked::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.guest-level.locked::before { width: 44px; height: 44px; right: 13px; top: 24px; }
.guest-level.locked::after { width: 24px; height: 24px; left: 20px; bottom: 36px; }
.guest-level.locked .mystery-guest {
  position: relative;
  z-index: 2;
  width: 145px;
  height: 145px;
  filter: drop-shadow(0 7px 8px rgba(35,18,53,.35));
}
.guest-level.locked > small {
  position: relative;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #5d4279;
  font-size: 8px;
  font-weight: 1000;
  text-transform: uppercase;
}
.guest-level .replay-level.try-part {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -6px;
  width: max-content;
  min-width: 96px;
  min-height: 19px;
  padding: 2px 29px 2px 9px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(#ff6aaa,#ff328b);
  color: #fff;
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 3px 0 #ba2166,0 6px 11px rgba(218,36,120,.24);
}
.guest-level .replay-level.try-part .try-icon {
  position: absolute;
  right: -13px;
  bottom: -8px;
  width: 39px;
  height: 39px;
}

@media (max-width: 760px) {
  .guests-button .ui-art-icon { width: 49px; height: 49px; }
  .sound-customizer { padding: 10px 11px 15px; }
  .sound-card { flex-basis: 102px; min-height: 111px; }
  .sound-card .action-art { width: 68px; height: 68px; }
  .monster-sound-preview { right: 7%; width: 53px; height: 53px; }
  .monster-sound-preview .ui-art-icon { width: 62px; height: 62px; }
  .guest-level .level-number { left: -11px; top: -14px; width: 51px; height: 51px; font-size: 18px; }
}

/* Compact sound section, unclipped stars, and stronger level rewards. */
.paint-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.sound-section {
  position: relative;
  min-width: 0;
  margin-top: 15px;
  padding: 20px 7px 5px;
  border: 2px solid #eee4fa;
  border-radius: 18px;
  background: #fbf8ff;
}
.builder-section-label {
  position: absolute;
  z-index: 4;
  left: 12px;
  top: -16px;
  width: max-content;
  margin: 0;
  padding: 7px 18px;
  transform: rotate(-2deg);
  border: 3px solid #fff;
  border-radius: 12px;
  background: linear-gradient(#9164e3,#6338bd);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 1000;
  box-shadow: 0 4px 0 #4c288f,0 7px 12px rgba(67,37,116,.2);
}
.sound-section .sound-library {
  min-height: 126px;
  margin: 0;
  padding: 9px 4px 14px;
}
.sound-card.locked {
  padding-bottom: 28px;
  background: linear-gradient(#756687,#4d3c60);
  filter: none;
  opacity: 1;
}
.sound-card.locked .action-art {
  filter: grayscale(.76) brightness(.65);
  opacity: .55;
}
.sound-level-lock {
  position: absolute;
  z-index: 4;
  left: -7px;
  top: -9px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0,61% 30%,92% 20%,74% 47%,100% 66%,67% 67%,66% 100%,47% 76%,21% 96%,29% 64%,0 58%,28% 42%,10% 15%,41% 28%);
  background: linear-gradient(145deg,#fff58b,#ffc72e 58%,#ed8f18);
  color: #5b2b7b;
  font-size: 13px;
  filter: drop-shadow(0 3px 1px #8f4f20);
}
.sound-card .sound-try {
  bottom: -5px;
  min-width: 91px;
}
.customizer > .primary[data-show] {
  display: block;
  width: max-content;
  min-width: 205px;
  margin: 14px auto 0;
  padding: 9px 55px 9px 19px;
}
.customizer > .primary[data-show] .button-icon {
  right: -7px;
  width: 62px;
  height: 62px;
}
.guest-road {
  padding: 28px 20px 25px;
}
.guest-level {
  min-height: 315px;
  padding-bottom: 51px;
}
.guest-level-art {
  height: 158px;
}
.level-jars {
  gap: 2px;
  margin: 0;
}
.level-jars .ui-art-icon {
  width: 48px;
  height: 48px;
}
.guest-level .play-level,
.guest-level .replay-level.try-part {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 10px;
  width: max-content;
  min-width: 132px;
  min-height: 33px;
  margin: 0;
  transform: translateX(-50%);
  font-size: 11px;
}
.guest-level .replay-level.try-part {
  padding: 6px 40px 6px 14px;
}
.guest-level .replay-level.try-part .try-icon {
  right: -12px;
  bottom: -8px;
  width: 47px;
  height: 47px;
}
.sequence-preview,
.sequence-slots {
  padding: 25px 14px 15px;
}
.sequence-card > small {
  left: -9px;
  top: -12px;
  width: 37px;
  height: 37px;
  border-radius: 0;
  clip-path: polygon(50% 0,61% 30%,92% 20%,74% 47%,100% 66%,67% 67%,66% 100%,47% 76%,21% 96%,29% 64%,0 58%,28% 42%,10% 15%,41% 28%);
  background: linear-gradient(145deg,#fff58b,#ffc72e 58%,#ed8f18);
  color: #5b2b7b;
  font-size: 13px;
  text-shadow: 0 1px #fff4a6;
  filter: drop-shadow(0 3px 1px #92511e);
}
.arena .sequence-slots {
  padding: 17px 9px 9px;
}
.arena .sequence-card > small {
  left: -6px;
  top: -8px;
  width: 27px;
  height: 27px;
  font-size: 9px;
}
.arena .sequence-card .sequence-trait {
  right: -5px;
  top: -5px;
  width: 20px;
  height: 20px;
}
.arena .sequence-card .sequence-trait .ui-art-icon {
  width: 19px;
  height: 19px;
}

@media (max-width: 900px) {
  .paint-pair { display: block; }
}
@media (max-width: 760px) {
  .guest-road { padding: 25px 18px 24px; }
  .guest-level { min-height: 300px; padding-bottom: 48px; }
  .guest-level-art { height: 145px; }
  .level-jars .ui-art-icon { width: 45px; height: 45px; }
  .sequence-preview { padding-inline: 13px; }
  .arena .sequence-slots { padding-left: 8px; }
}

.room-section {
  position: relative;
  min-width: 0;
  margin-top: 22px;
  padding: 25px 7px 9px;
  border: 2px solid #eee4fa;
  border-radius: 18px;
  background: #fbf8ff;
}
.room-section .room-picker {
  margin: 0;
}
.room-section .room-options {
  padding: 8px 4px 15px;
}
.customizer .try-part,
.customizer .room-try {
  min-height: 29px;
  min-width: 96px;
  padding: 5px 30px 5px 10px;
  border-radius: 14px;
  font-size: 10px;
  line-height: 1;
}
.customizer .try-part .try-icon,
.customizer .room-try .try-icon {
  right: -13px;
  bottom: -8px;
  width: 50px;
  height: 50px;
}
.customizer .part-option.locked {
  padding-bottom: 49px;
}
.customizer .sound-card.locked {
  padding-bottom: 43px;
}
.customizer .sound-card .sound-try {
  min-width: 100px;
}
.room-section .room-try { min-width: 92px; }
.next-hint-step {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0,61% 30%,92% 20%,74% 47%,100% 66%,67% 67%,66% 100%,47% 76%,21% 96%,29% 64%,0 58%,28% 42%,10% 15%,41% 28%);
  background: linear-gradient(145deg,#fff58b,#ffc72e 58%,#ed8f18);
  color: #5b2b7b;
  font-size: 17px;
  text-shadow: 0 1px #fff4a6;
  filter: drop-shadow(0 4px 1px #92511e);
}
.next-hint-step b {
  transform: translateY(-1px);
}
.sequence-preview {
  justify-content: safe center;
}

@media (min-width: 901px) {
  .show-screen { max-width: 1040px; }
  .show-screen .arena {
    height: calc(100dvh - 88px);
    min-height: 580px;
    max-height: 750px;
    padding: 11px 15px;
  }
  .show-screen .show-heading h1 {
    margin-block: 0;
    font-size: 32px;
  }
  .show-screen .guest-emotion {
    width: 62px;
    height: 62px;
  }
  .show-screen .show-target .jar-wrap {
    min-height: 61px;
  }
  .show-screen .arena .sequence-slots {
    padding-block: 14px 5px;
  }
  .show-screen .scene {
    min-height: 190px;
  }
  .show-screen .timing {
    margin-bottom: 5px;
    padding: 7px 14px;
  }
  .show-screen .volume-picker {
    margin-bottom: 5px;
  }
  .show-screen .action {
    min-height: 86px;
  }
  .show-screen .action .action-art {
    width: 64px;
    height: 64px;
  }
  .show-screen .action-grid {
    padding-bottom: 4px;
  }
}

/* Crop neighboring atlas fragments in the chooser as well as on the monster. */
.part-option {
  overflow: visible;
}
.part-option .part-thumb {
  width: auto;
  height: 95px;
  aspect-ratio: 418 / 627;
  object-fit: fill;
}
.part-option .part-thumb.thumb-eyes {
  clip-path: inset(0 1% 0 16%);
}
.part-option .part-thumb.thumb-mouth {
  clip-path: inset(0 1%);
}
.part-option .part-thumb.thumb-arms {
  clip-path: inset(8% 0 0);
}
.part-option .part-thumb.thumb-legs {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 45%, 10% 45%);
}
.part-option .part-thumb.thumb-special {
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 9% 100%, 9% 68%, 0 68%, 0 0);
}

/* Temporary static calibration mode: tune only --part-x and --part-y above. */
.monster {
  animation: none;
}
.hero-monster,
.builder-monster,
.show-monster {
  transform: none;
  margin: 0;
}

/* Kid-first show controls: one clear timing rule, tactile actions and visible rewards. */
.show-screen .timing {
  padding: 10px 15px;
  border: 3px solid rgba(255,255,255,.95);
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 0 rgba(71,38,111,.23), 0 9px 20px rgba(49,22,82,.16);
}
.show-screen .timing-track {
  height: 22px;
  border: 3px solid #fff;
  background: #ef405d;
  box-shadow: inset 0 2px 5px rgba(76,18,51,.24);
}
.show-screen .sweet {
  left: 36%;
  width: 28%;
  border-inline: 3px solid rgba(255,255,255,.96);
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 999px;
  background: #5bdc78;
  animation: timingTargetPulse 1.8s linear infinite alternate;
}
.show-screen .timing-dot {
  top: -7px;
  width: 31px;
  height: 31px;
  border-width: 5px;
  box-shadow: 0 3px 0 rgba(50,23,92,.28);
  animation: kidTiming 1.8s linear infinite alternate;
  animation-delay: var(--timing-offset, 0ms);
}
@keyframes kidTiming {
  from { left: 0; }
  to { left: calc(100% - 31px); }
}
@keyframes timingTargetPulse {
  0%, 34%, 66%, 100% { transform: scale(1); background: #5bdc78; }
  43%, 57% { transform: scale(1.05, 1.25); background: #80ed78; }
  50% { transform: scale(1.09, 1.4); background: #a0ff7c; }
}
.arena.timing-miss {
  animation: arenaErrorFlash .62s ease;
}
.arena.timing-miss .timing {
  animation: timingErrorShake .42s ease;
}
@keyframes arenaErrorFlash {
  0%,100% { box-shadow: none; }
  22%,72% { box-shadow: inset 0 0 0 999px rgba(238,38,70,.32); }
}
@keyframes timingErrorShake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.show-screen .action-grid {
  gap: 10px;
  padding: 5px 5px 11px;
}
.show-screen .action {
  min-height: 108px;
  border: 4px solid #fff;
  border-radius: 20px;
  background: linear-gradient(155deg, #fff7a8, #ffc94f 58%, #ff9d43);
  box-shadow: 0 7px 0 #bb622d, 0 12px 20px rgba(74,33,104,.24);
  cursor: pointer;
  animation: actionInvite 1.8s ease-in-out infinite;
  animation-delay: var(--action-delay, 0s);
}
.show-screen .action:nth-child(even) {
  background: linear-gradient(155deg, #f8eaff, #d8b9ff 58%, #ac82ee);
  box-shadow: 0 7px 0 #7042b5, 0 12px 20px rgba(74,33,104,.24);
}
.show-screen .action b {
  bottom: 7px;
  padding: 5px 11px;
  border: 2px solid #fff;
  background: #6841bd;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 2px 0 #452589;
}
.show-screen .action:active {
  animation: none;
  transform: translateY(6px) scale(.97);
  box-shadow: 0 1px 0 #7042b5;
}
.show-screen .action:disabled {
  animation-play-state: paused;
  cursor: default;
  opacity: .72;
}
@keyframes actionInvite {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-4px) scale(1.025); filter: brightness(1.06); }
}
.hint-button {
  position: relative;
  z-index: 12;
  right: auto;
  bottom: auto;
  align-self: center;
  min-width: 170px;
  min-height: 54px;
  margin: 3px auto 9px;
  padding: 7px 20px 7px 55px;
  border-width: 3px;
  border-radius: 18px;
  font-size: 14px;
  box-shadow: 0 6px 0 #ba2166, 0 10px 20px rgba(79,28,95,.25);
}
.hint-button .ui-art-icon {
  position: absolute;
  left: -9px;
  width: 67px;
  height: 67px;
}
.hint-button.attention {
  animation: hintAttention 1s ease-in-out infinite;
}
@keyframes hintAttention {
  0%,100% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.13) rotate(-1deg); filter: brightness(1.12); box-shadow: 0 8px 0 #ba2166, 0 0 26px 8px rgba(255,228,74,.65); }
}
.flying-fear-drop {
  position: fixed;
  z-index: 9999;
  width: 25px;
  height: 25px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(64,24,95,.35));
  animation: fearDropFlight .56s cubic-bezier(.2,.72,.28,1) var(--drop-delay) both;
}
@keyframes fearDropFlight {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(0); }
  14% { opacity: 1; transform: translate(-50%,-65%) scale(1.18) rotate(calc(var(--drop-spin) * -.25)); }
  100% { opacity: 1; transform: translate(calc(var(--drop-x) - 50%), calc(var(--drop-y) - 50%)) scale(.55) rotate(var(--drop-spin)); }
}
.jar-wrap.jar-rewarded {
  animation: jarRewardPulse .5s cubic-bezier(.2,1.5,.4,1);
}
@keyframes jarRewardPulse {
  45% { transform: scale(1.16) rotate(3deg); filter: brightness(1.18); }
}
.part-option.trial-open,
.sound-card.trial-open,
.room-option.trial-open,
.swatch.trial-open,
.pattern.trial-open {
  border-color: #ffd84f;
  box-shadow: none;
  animation: trialReady 1.15s ease-in-out infinite;
}
@keyframes trialReady {
  50% { transform: scale(1.035); filter: brightness(1.1); }
}
[data-start],
[data-build],
[data-show],
[data-start-show],
[data-retry],
[data-next-level],
.play-level,
.replay-level,
.replay-ad {
  animation: mainCtaInvite 2.35s ease-in-out infinite;
}
@keyframes mainCtaInvite {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-2px) scale(1.025); filter: brightness(1.07); }
}
.guest-level .play-level,
.guest-level .replay-level.try-part {
  animation: guestCtaInvite 2.35s ease-in-out infinite;
}
@keyframes guestCtaInvite {
  0%,100% { transform: translateX(-50%) translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateX(-50%) translateY(-2px) scale(1.025); filter: brightness(1.07); }
}
.result-card .replay-ad {
  position: relative;
  min-width: 250px;
  min-height: 55px;
  margin: 16px auto 0;
  padding: 8px 22px 8px 62px;
  border-width: 3px;
  border-radius: 18px;
  font-size: 14px;
  box-shadow: 0 6px 0 #ba2166, 0 10px 20px rgba(79,28,95,.22);
}
.result-card .replay-ad .ui-art-icon {
  position: absolute;
  left: -7px;
  width: 66px;
  height: 66px;
}
@media (max-width: 760px) {
  .show-screen .scene { min-height: 210px; }
  .show-screen .action { flex-basis: 104px; min-height: 102px; }
  .hint-button { min-width: 160px; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .show-screen .action,
  .hint-button,
  [data-start], [data-build], [data-show], [data-start-show], [data-retry], [data-next-level],
  .play-level, .replay-level, .replay-ad, .trial-open { animation: none !important; }
}

/* Final desktop overrides must stay after the legacy responsive layers above. */
.show-screen .arena .sequence-slots { justify-content: safe center; }
.show-screen .arena > .hint-button { position: relative; right: auto; bottom: auto; flex: 0 0 auto; align-self: center; margin: 2px auto 7px; }
@media (min-width: 901px) {
  .show-screen .arena { height: min(750px, calc(100dvh - 104px)); min-height: 0; }
  .show-screen .action-grid { flex: 0 0 auto; padding-top: 8px; padding-bottom: 16px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .show-screen .arena { padding: 8px 13px; }
  .show-screen .show-heading h1 { font-size: 27px; }
  .show-screen .guest-emotion { width: 54px; height: 54px; }
  .show-screen .arena .sequence-slots { gap: 7px; padding: 11px 8px 5px; }
  .show-screen .arena .sequence-card { flex-basis: 50px; min-height: 53px; }
  .show-screen .arena .sequence-card .action-art { width: 31px; height: 31px; }
  .show-screen .scene { min-height: 118px; }
  .show-screen .show-monster { height: 180px; }
  .show-screen .guest-side { height: 145px; }
  .show-screen .arena > .hint-button { min-height: 40px; margin: 0 auto 5px; padding-block: 4px; }
  .show-screen .arena > .hint-button .ui-art-icon { width: 52px; height: 52px; }
  .show-screen .timing { padding: 5px 12px; }
  .show-screen .action { min-height: 76px; }
  .show-screen .action .action-art { width: 53px; height: 53px; }
}
