:root {
  color-scheme: dark;
  --bg: #0f1020;
  --panel: #1a1b28;
  --panel2: #212233;
  --line: #2f3047;
  --accent: #6842ff;
  --accent2: #8f6bff;
  --pink: #ff5fa8;
  --gold: #ffc53d;
  --good: #3ddc97;
  --text: #fff;
  --muted: #aaadbe;
  --btn2: #2a2b3d;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
body {
  overflow-x: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid #ffe066;
  outline-offset: 2px;
}

.ss {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 10px;
}

/* ------------------------------------------------------------------ HUD */
.hud {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 10px;
}
.hud-spacer {
  flex: 1;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a2b40, #1f2031);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}
.chip svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}
.chip-k {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.xpbar {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 8px;
  border-radius: 99px;
  background: #0d0e1a;
  overflow: hidden;
}
.xpbar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f6bff, #ff5fa8);
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.chip-style b {
  min-width: 2ch;
  text-align: right;
  color: #ffe066;
}
.chip-timer svg {
  fill: #7fd8ff;
}
.chip .ic-style {
  fill: #ffe066;
}
.chip-timer.hurry {
  background: linear-gradient(180deg, #ff4d6d, #c9184a);
  animation: pulse 0.6s ease-in-out infinite alternate;
}
.chip-timer.hurry svg {
  fill: #fff;
}
.chip.bump {
  animation: bump 0.35s ease-out;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #33344c, #26273a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 0 #14152200,
    0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.icon-btn:active {
  transform: translateY(1px) scale(0.96);
}

/* ------------------------------------------------------------------ layout */
.play {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 12px;
  height: 530px;
}
.stage-card {
  position: relative;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #1c1440;
  box-shadow:
    0 0 0 2px rgba(143, 107, 255, 0.35),
    0 14px 40px rgba(0, 0, 0, 0.45);
}
#stage {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
.stage-tag {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(15, 16, 32, 0.72);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}
.pops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 20px;
  color: #ffe066;
  text-shadow:
    0 2px 0 #7a3cff,
    0 0 12px rgba(0, 0, 0, 0.6);
  animation: floatUp 1.1s ease-out forwards;
  white-space: nowrap;
}
.pop.good {
  color: #7dffc4;
  text-shadow:
    0 2px 0 #0b7a52,
    0 0 12px rgba(0, 0, 0, 0.6);
}
.pop.bad {
  color: #ff9db5;
  text-shadow:
    0 2px 0 #8a1a3c,
    0 0 12px rgba(0, 0, 0, 0.6);
}

.wardrobe {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.35);
}
.wardrobe.locked {
  pointer-events: none;
  filter: saturate(0.5) brightness(0.75);
}
.brief {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(104, 66, 255, 0.35), rgba(255, 95, 168, 0.22));
}
.brief-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.brief-text strong {
  font-size: 18px;
  font-weight: 900;
}
.brief-text span {
  color: #d8d9ea;
  font-size: 13px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  padding: 4px 9px 4px 8px;
  border-radius: 99px;
  background: rgba(15, 16, 32, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  transition:
    background 0.25s,
    color 0.25s;
}
.checks li::before {
  content: "○ ";
}
.checks li.done {
  background: var(--good);
  color: #073a25;
}
.checks li.done::before {
  content: "✓ ";
}
.checks li.done.just {
  animation: bump 0.4s ease-out;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: var(--btn2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.tab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, #8a6bff, #6842ff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 12px rgba(104, 66, 255, 0.5);
}
.tab:active {
  transform: scale(0.95);
}

.strip {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  align-items: stretch;
}
.item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 96px;
  max-width: 132px;
  min-height: 0;
  padding: 6px 6px 8px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fdfbff, #e9e3ff);
  box-shadow:
    inset 0 -4px 0 rgba(104, 66, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.35);
  color: #2b2150;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.2s;
}
.item canvas {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.item .item-name {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
.item:hover {
  transform: translateY(-2px);
}
.item:active {
  transform: scale(0.95);
}
.item.worn {
  background: linear-gradient(180deg, #fff6c9, #ffd86b);
  box-shadow:
    0 0 0 3px #ffb800,
    0 6px 16px rgba(255, 184, 0, 0.45);
}
.item.worn::after {
  content: "ON";
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  background: #ff8a00;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.item .fit {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--good);
  color: #053a24;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.item.locked {
  background: linear-gradient(180deg, #4a4b66, #34354b);
  color: #c9cadb;
}
.item.locked canvas {
  opacity: 0.35;
  filter: grayscale(1);
}
.item .lock {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 99px;
  background: #1a1b28;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.item.shake,
.shake {
  animation: shake 0.4s ease-in-out;
}
.item.pop {
  animation: popIn 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.skin-btn {
  flex: 1 0 64px;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  background: var(--btn2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.skin-btn i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow:
    inset -4px -6px 0 rgba(0, 0, 0, 0.15),
    inset 3px 4px 0 rgba(255, 255, 255, 0.3);
}
.skin-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #8a6bff, #6842ff);
  box-shadow: 0 0 0 3px #ffe066;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.swatch-label {
  flex: none;
  width: 58px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.swatch {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
  position: relative;
}
.swatch::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.swatch[aria-pressed="true"] {
  border-color: #fff;
  transform: scale(1.12);
}
.swatch:disabled {
  opacity: 0.3;
  cursor: default;
}
.swatch-hint {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
}
.btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #37384f, var(--btn2));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 0 #16172433,
    0 5px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.12s,
    filter 0.12s;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn:active {
  transform: translateY(2px) scale(0.98);
}
.btn-primary {
  background: linear-gradient(180deg, #8d6dff, var(--accent));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    0 4px 0 #3f22b8,
    0 8px 18px rgba(104, 66, 255, 0.45);
}
.btn-done {
  flex: 1;
  font-size: 17px;
}
.btn-done.ready {
  background: linear-gradient(180deg, #ff7cbc, #ff3f8e);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 #b3165b,
    0 8px 20px rgba(255, 63, 142, 0.5);
  animation: glow 1.1s ease-in-out infinite alternate;
}
.btn-big {
  min-height: 54px;
  font-size: 19px;
  padding: 0 28px;
}
.actions .btn:not(.btn-done) {
  flex: none;
}

/* ------------------------------------------------------------------ ghost hand */
.ghost {
  position: absolute;
  z-index: 30;
  width: 54px;
  height: 54px;
  pointer-events: none;
  transition:
    left 0.45s cubic-bezier(0.3, 1.2, 0.4, 1),
    top 0.45s cubic-bezier(0.3, 1.2, 0.4, 1);
}
.ghost svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: #2b2150;
  stroke-width: 3;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  animation: tap 1.1s ease-in-out infinite;
  transform-origin: 40% 20%;
}

/* ------------------------------------------------------------------ overlays */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 24, 0.66);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease-out;
}
.overlay[hidden] {
  display: none;
}
.card {
  width: min(440px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a2b40, #1a1b28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(143, 107, 255, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: cardIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.card h2 {
  margin: 4px 0 6px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.card p {
  margin: 6px 0 14px;
  color: #d4d5e6;
  font-size: 15px;
}
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 197, 61, 0.18);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-row .btn {
  flex: 1 1 0;
}
.muted {
  color: var(--muted);
}

.card-start {
  width: min(460px, 100%);
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.88;
  margin: 4px 0 6px;
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transform: rotate(-3deg);
}
.logo span {
  background: linear-gradient(180deg, #fff 0%, #ffd1ec 45%, #ff5fa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 #6842ff) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.logo span:last-child {
  background-image: linear-gradient(180deg, #fff 0%, #d9ccff 45%, #8f6bff 100%);
  filter: drop-shadow(0 4px 0 #b3165b) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.lead {
  font-size: 15px;
}
.start-rank {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}
.start-rank b {
  color: #fff;
}
.daily {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(61, 220, 151, 0.16);
  color: #8ff5c8;
  font-size: 13px;
  font-weight: 900;
}
.medal-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.medal-shelf li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}
.mini-medal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2b3d;
  color: #55566e;
  font-size: 16px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}
.mini-medal.gold,
.medal.gold {
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffcf3d 45%, #d18a00);
  color: #7a4a00;
}
.mini-medal.silver,
.medal.silver {
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e6 45%, #8a93a8);
  color: #4a5266;
}
.mini-medal.bronze,
.medal.bronze {
  background: radial-gradient(circle at 35% 30%, #ffe0c2, #e39a5b 45%, #a35a22);
  color: #5a2e0a;
}
.medal.none {
  background: radial-gradient(circle at 35% 30%, #d9ccff, #8f6bff 50%, #4b2fc2);
  color: #fff;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.palette i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
.tip {
  font-size: 14px !important;
}
.tip-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--good);
  color: #053a24;
  font-size: 12px;
}

.card-results {
  width: min(560px, 100%);
  padding: 18px;
}
.res-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.res-head h2 {
  margin: 2px 0 0;
  font-size: 26px;
}
.medal {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  box-shadow:
    inset 0 -6px 0 rgba(0, 0, 0, 0.2),
    0 0 0 5px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.5);
  animation: medalIn 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: 1.9s;
}
.medal svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}
.res-total {
  font-size: 18px;
  color: var(--muted);
}
.res-total b {
  font-size: 34px;
  color: #fff;
}
.judges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
  padding: 0;
  list-style: none;
}
.judge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 18px;
  background: #151625;
  animation: cardIn 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.judge svg {
  width: 52px;
  height: 52px;
}
.judge-name {
  font-size: 14px;
  font-weight: 900;
}
.judge-role {
  color: var(--muted);
  font-size: 11px;
}
.judge-score {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #e4dcff);
  color: #3a1fb8;
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(104, 66, 255, 0.25);
  animation: popIn 0.45s cubic-bezier(0.3, 1.8, 0.5, 1) both;
}
.judge-comment {
  color: #d4d5e6;
  font-size: 12px;
  line-height: 1.25;
}
.res-xp {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}
.xpbar-big {
  width: min(220px, 40vw);
  height: 12px;
}
.res-unlock {
  margin: 10px 0 0 !important;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(61, 220, 151, 0.15);
  color: #8ff5c8 !important;
  font-weight: 900;
}

.card-book {
  width: min(680px, 100%);
  max-height: 100%;
  text-align: left;
}
.book-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-head h2 {
  margin: 0;
  flex: 1;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.look {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: #151625;
}
.look canvas {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}
.look-name {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.look-meta {
  color: var(--muted);
  font-size: 11px;
}
.look .btn-row .btn {
  min-height: 40px;
  padding: 0 8px;
  font-size: 13px;
}
.book-empty {
  margin: 18px 0 4px !important;
  text-align: center;
}
.card-save label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.card-save input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid #3b3c57;
  border-radius: 14px;
  background: #11121f;
  font-size: 17px;
  font-weight: 800;
}
.card-save input:focus {
  border-color: var(--accent2);
  outline: none;
}
.save-error {
  min-height: 20px;
  margin: 6px 0 8px !important;
  color: #ff9db5 !important;
  font-size: 13px !important;
}

.toast {
  position: absolute;
  left: 50%;
  top: 66px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 99px;
  background: #fff;
  color: #2b2150;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1),
    opacity 0.25s;
  text-align: center;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ------------------------------------------------------------------ animations */
@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}
@keyframes pulse {
  to {
    transform: scale(1.07);
  }
}
@keyframes glow {
  to {
    filter: brightness(1.18) saturate(1.2);
  }
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
@keyframes popIn {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes cardIn {
  0% {
    transform: translateY(24px) scale(0.92);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes medalIn {
  0% {
    transform: scale(0) rotate(-40deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.6);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -190%) scale(1);
  }
}
@keyframes tap {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  45% {
    transform: translate(-4px, -6px) scale(1.05);
  }
  60% {
    transform: translate(0, 2px) scale(0.9);
  }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  .ss {
    padding: 8px;
  }
  .play {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .stage-card {
    height: clamp(280px, 86vw, 400px);
  }
  .wardrobe {
    padding: 10px;
    gap: 8px;
  }
  .brief {
    padding: 8px 10px;
  }
  .brief-text strong {
    font-size: 16px;
  }
  .brief-text span {
    font-size: 12px;
  }
  .strip {
    flex: none;
    height: 124px;
  }
  .item {
    flex: 0 0 92px;
  }
  .skin-btn {
    flex: 0 0 72px;
  }
  .swatches {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px 4px;
    scrollbar-width: none;
  }
  .swatch {
    flex: none;
  }
  .swatch-label {
    width: auto;
  }
  .medal-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .brief {
    flex-direction: column;
    align-items: stretch;
  }
  .checks {
    justify-content: flex-start;
  }
  .brief-text span {
    display: none;
  }
  .tab {
    font-size: 10px;
    min-height: 48px;
  }
  .tab svg {
    width: 20px;
    height: 20px;
  }
  .hud {
    gap: 5px;
  }
  .chip {
    padding: 0 8px;
    gap: 4px;
    font-size: 14px;
  }
  .chip-k {
    display: none;
  }
  .xpbar {
    width: 26px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .actions .btn:not(.btn-done) {
    padding: 0 12px;
    font-size: 14px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .btn-done {
    flex-basis: 100%;
  }
  .actions .btn:not(.btn-done) {
    flex: 1;
  }
  .logo {
    font-size: 46px;
  }
  .card {
    padding: 18px 14px;
  }
  .judges {
    gap: 6px;
  }
  .judge-comment {
    font-size: 11px;
  }
  .res-head h2 {
    font-size: 22px;
  }
  .medal {
    width: 68px;
    height: 68px;
  }
}
@media (max-width: 360px) {
  .chip-k {
    display: none;
  }
  .xpbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
