/* Purple UI base, world map and polish round 2 (imported by ui-roxa.css) */
/* ==========================================================================================
   PURPLE UI. Style reference: casual games with a rounded purple panel and thick dark outline,
   title on a small plate sticking out of the top edge, chunky white lettering (Lilita One) with
   outline and shadow, round red X in the corner, No/Yes switches with the active side green,
   fat buttons with a highlight on top and a dark lip underneath.
   This file comes AFTER styles.css and only changes the look: the layout stays the one from there.
   ========================================================================================== */
#ui {
  --ink: #1a1240;
  --pop: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --pu-hi: #7a64f2;
  --pu-lo: #4b39c6;
  --well: #2b2078;
  --well-txt: #9d91ea;
  --lav-hi: #fbf9ff;
  --lav-lo: #ddd4ff;
  --gr-hi: #96f04f;
  --gr-lo: #3fbb1b;
  --gr-ink: #17580c;
  --rd-hi: #ff7a7a;
  --rd-lo: #db2b3b;
  --rd-ink: #7d0f1c;
  --gd-hi: #ffe27a;
  --gd-lo: #f5a623;
  --gd-ink: #7a4100;
  --gloss: linear-gradient(
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.12) 46%,
    rgba(255, 255, 255, 0) 52%
  );
  --yes: 'Sim';
  --no: 'Não';
}
:root[lang='en'] #ui {
  --yes: 'Yes';
  --no: 'No';
}
:root[lang='es'] #ui {
  --yes: 'Sí';
  --no: 'No';
}

/* ---------- painel ---------- */
#ui .sheet {
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 24, 110, 0.35), rgba(10, 6, 34, 0.72));
}
#ui .sheet .card {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, #6c57ea, #4a38c4);
  border: 4px solid var(--ink);
  border-radius: 28px;
  outline: none;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    inset 0 -7px 0 rgba(20, 8, 70, 0.28),
    0 7px 0 var(--ink),
    0 20px 44px rgba(8, 4, 34, 0.5);
}

/* ---------- title plate sticking out of the top edge ---------- */
#ui .sheet .head {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  margin-top: -6px;
}
#ui .sheet .head h2,
#ui .result .rib h2 {
  font: 400 clamp(26px, 9cqh, 38px) / 1 var(--pop);
  color: #fff;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 7px #2f1f96;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}
#ui .pause .head h2 {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 30px 9px;
  border-radius: 18px;
  background: linear-gradient(180deg, #8a75ff, #5b45dc);
  border: 4px solid var(--ink);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 var(--ink);
  white-space: nowrap;
}
#ui .pause .card {
  padding-top: clamp(30px, 10cqh, 40px);
}

/* ---------- fat buttons ---------- */
#ui .btn {
  --b-hi: #a893ff;
  --b-lo: #7560ee;
  --b-ink: #33229e;
  position: relative;
  font: 400 19px / 1 var(--pop);
  letter-spacing: 0.01em;
  color: #fff;
  -webkit-text-stroke: 4px var(--b-ink);
  paint-order: stroke fill;
  text-shadow: none;
  border: 3.5px solid var(--ink);
  border-radius: 17px;
  background: var(--gloss), linear-gradient(180deg, var(--b-hi), var(--b-lo));
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.16),
    0 5px 0 var(--ink);
  transition:
    transform 0.06s,
    box-shadow 0.06s,
    filter 0.12s;
}
#ui .btn svg {
  color: #fff;
  filter: drop-shadow(0 2px 0 var(--b-ink));
}
#ui .btn:hover {
  filter: brightness(1.06);
}
#ui .btn:active,
#ui .btn.down {
  transform: translateY(4px);
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 1px 0 var(--ink);
}
#ui .btn.primary {
  --b-hi: var(--gr-hi);
  --b-lo: var(--gr-lo);
  --b-ink: var(--gr-ink);
}
#ui .btn.x,
#ui #bClose {
  --b-hi: var(--rd-hi);
  --b-lo: var(--rd-lo);
  --b-ink: var(--rd-ink);
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  -webkit-text-stroke: 3px var(--rd-ink);
}
#ui .pause #bClose {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
}

/* ---------- setting rows: label in chunky lettering ---------- */
#ui .sheet .row {
  font: 400 18px / 1.1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

/* segmented: dark well, the chosen one becomes a green button */
#ui .sheet .seg {
  gap: 3px;
  padding: 3px;
  border-radius: 15px;
  background: var(--well);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.3);
}
#ui .sheet .seg button {
  min-height: 34px;
  min-width: 52px;
  padding: 0 11px;
  border: none;
  border-radius: 11px;
  background: none;
  box-shadow: none;
  font: 400 16px / 1 var(--pop);
  color: var(--well-txt);
  -webkit-text-stroke: 0;
  cursor: pointer;
}
#ui .sheet .seg button.on {
  color: #fff;
  -webkit-text-stroke: 3.5px var(--gr-ink);
  paint-order: stroke fill;
  background: var(--gloss), linear-gradient(180deg, var(--gr-hi), var(--gr-lo));
  box-shadow:
    inset 0 0 0 2.5px var(--ink),
    0 2px 0 rgba(0, 0, 0, 0.3);
}

/* No/Yes switch: both words visible, the active one lights up (green on Yes, lilac on No) */
#ui .row input[type='checkbox'] {
  width: 112px;
  height: 40px;
  border-radius: 15px;
  background: var(--well);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.3);
}
#ui .row input[type='checkbox']::before,
#ui .row input[type='checkbox']::after {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 4px);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font: 400 15px / 1 var(--pop);
  color: var(--well-txt);
  -webkit-text-stroke: 0;
  transform: none;
  transition:
    background 0.12s,
    color 0.12s;
}
#ui .row input[type='checkbox']::before {
  content: var(--no);
  left: 3px;
  color: #fff;
  -webkit-text-stroke: 3px #3a2a9e;
  paint-order: stroke fill;
  background: var(--gloss), linear-gradient(180deg, #a996ff, #7a66ea);
  box-shadow: inset 0 0 0 2.5px var(--ink);
}
#ui .row input[type='checkbox']::after {
  content: var(--yes);
  right: 3px;
  left: auto;
  background: none;
  box-shadow: none;
}
#ui .row input[type='checkbox']:checked::before {
  color: var(--well-txt);
  -webkit-text-stroke: 0;
  background: none;
  box-shadow: none;
}
#ui .row input[type='checkbox']:checked::after {
  color: #fff;
  -webkit-text-stroke: 3px var(--gr-ink);
  paint-order: stroke fill;
  background: var(--gloss), linear-gradient(180deg, var(--gr-hi), var(--gr-lo));
  box-shadow: inset 0 0 0 2.5px var(--ink);
  transform: none;
}

/* slider: track in the well, filled part green, white button with outline */
#ui .row input[type='range']::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 9px;
  border: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--gr-lo) 0 var(--v, 50%), var(--well) var(--v, 50%));
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.25);
}
#ui .row input[type='range']::-moz-range-track {
  height: 16px;
  border-radius: 9px;
  border: 3px solid var(--ink);
  background: linear-gradient(90deg, var(--gr-lo) 0 var(--v, 50%), var(--well) var(--v, 50%));
}
#ui .row input[type='range']::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 40% 32%, #fff 0 35%, #e2dbff);
  box-shadow: 0 3px 0 var(--ink);
}
#ui .row input[type='range']::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  background: #fff;
}

/* ---------- placar ---------- */
#ui .hud-l {
  -webkit-text-stroke: 0;
}
#ui .hud-l > .foes,
#ui .hud-l > .stars,
#ui .hud-l > .score {
  padding: 4px 12px 5px 8px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(92, 72, 214, 0.92), rgba(56, 40, 158, 0.92));
  border: 3px solid var(--ink);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 var(--ink);
}
#ui .hud-l .n,
#ui .hud-l .v {
  font: 400 22px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
#ui .hud-l .sep {
  display: none;
}
#ui .hud .chip,
#ui .tchips .chip {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: var(--gloss), linear-gradient(180deg, #8a75ff, #5b45dc);
  border: 3px solid var(--ink);
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.16),
    0 4px 0 var(--ink);
}
#ui .hud .chip svg,
#ui .tchips .chip svg {
  filter: drop-shadow(0 2px 0 #2f1f96);
}
#ui .hud .chip:active,
#ui .tchips .chip:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.16),
    0 1px 0 var(--ink);
}
#ui .hud .chip::before,
#ui .tchips .chip::before {
  display: none;
}

/* combo: fat golden number, multiplier label in a pill */
#ui .combo .x {
  font: 400 40px / 1 var(--pop);
  color: var(--gd-hi);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}
#ui .combo .lbl {
  font: 400 15px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
#ui .combo .m {
  font: 400 16px / 1 var(--pop);
  -webkit-text-stroke: 3px var(--gd-ink);
  paint-order: stroke fill;
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
#ui .combo .bar {
  border: 3px solid var(--ink);
  background: var(--well);
}

/* opening notice: same ink as the rest */
#ui .toast {
  --plate-ink: var(--ink);
  border: 3.5px solid var(--ink);
  box-shadow:
    inset 0 0 0 2px rgba(255, 215, 106, 0.85),
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    0 5px 0 var(--ink),
    0 12px 24px rgba(12, 6, 36, 0.45);
}
#ui .toast .nm {
  font-family: var(--pop);
  font-size: 23px;
}

/* ---------- title ---------- */
#ui .premise {
  font: 400 16px / 1.2 var(--pop);
  padding: 7px 18px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(92, 72, 214, 0.9), rgba(56, 40, 158, 0.9));
  border: 3px solid var(--ink);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  box-shadow: 0 4px 0 var(--ink);
}
#ui .tmenu .btn {
  font-size: 22px;
}
#ui .tap {
  font-family: var(--pop);
}

/* ---------- stages and outfits: lilac cards with outline ---------- */
#ui .levels .head,
#ui .skins .head {
  margin-top: 0;
}
#ui .lv,
#ui .sk {
  border: 3.5px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--lav-hi), var(--lav-lo));
  box-shadow:
    inset 0 -5px 0 rgba(58, 42, 158, 0.18),
    0 5px 0 var(--ink);
  color: #3a2a9e;
}
#ui .lv b {
  font: 400 32px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 6px #3a2a9e;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}
#ui .lv.next {
  background: var(--gloss), linear-gradient(180deg, var(--gr-hi), var(--gr-lo));
}
#ui .lv.next b {
  -webkit-text-stroke-color: var(--gr-ink);
}
#ui .lv.shut,
#ui .sk.shut {
  background: linear-gradient(180deg, #8473e6, #6553cf);
  color: #d9d2ff;
}
#ui .lv .gr {
  font-family: var(--pop);
  border: 2.5px solid var(--ink);
}
#ui .sk .nm {
  font: 400 15px / 1.1 var(--pop);
  color: #3a2a9e;
}
#ui .sk.shut .nm {
  color: #efeaff;
}
#ui .sk.on {
  background: var(--gloss), linear-gradient(180deg, #d9ffc0, #9be86a);
  box-shadow:
    inset 0 0 0 3px var(--gr-lo),
    0 5px 0 var(--ink);
}
#ui .sheet .total {
  font: 400 18px / 1 var(--pop);
  padding: 4px 12px 5px 8px;
  border-radius: 14px;
  background: var(--well);
  border: 3px solid var(--ink);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

/* ---------- resultado ---------- */
#ui .result .rib {
  background: linear-gradient(180deg, #8a75ff, #5b45dc);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 5px 0 var(--ink);
}
#ui .result .rib::before,
#ui .result .rib::after {
  display: none;
}
#ui .result .rib h2 {
  color: var(--gd-hi);
  -webkit-text-stroke-color: var(--gd-ink);
}
#ui .result .lvname {
  font: 400 15px / 1 var(--pop);
  color: #e6e0ff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.04em;
}
#ui .result .pts {
  font-family: var(--pop);
  color: #fff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
}
#ui .result .tiles > div {
  background: var(--well);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.25);
  color: #fff;
}
#ui .result .tiles dd {
  font: 400 19px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#ui .result .tiles dt {
  font: 400 12px / 1 var(--pop);
  color: var(--well-txt);
  letter-spacing: 0.05em;
}
#ui .result .grade {
  border: 4px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
#ui .result .grade small {
  font-family: var(--pop);
}
#ui .result .grade b {
  font-family: var(--pop);
}

/* language: dropdown in the same purple button, with an arrow */
#ui .pick {
  position: relative;
  display: inline-block;
}
#ui .pick::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 3.5px 3.5px 0;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 0.5px var(--ink)) drop-shadow(1px 1px 0 #33229e);
  pointer-events: none;
}
#ui .pick select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 150px;
  height: 40px;
  padding: 0 38px 0 14px;
  font: 400 17px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 0 #33229e;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--gloss), linear-gradient(180deg, #a893ff, #7560ee);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}
#ui .pick select option {
  color: #1b2437;
  background: #fff;
  text-shadow: none;
}
#ui .pick select:focus-visible {
  outline: 3px solid #ffe27a;
  outline-offset: 2px;
}

/* pause fits in 375 px of height: room on top for the plate and tighter rows */
#ui .sheet.pause {
  padding-top: 34px;
}
#ui .pause .row {
  min-height: 42px;
}
/* (the plate and the X float: the header takes no grid row) */
#ui .pause .head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  margin: 0;
}
#ui .pause .card {
  row-gap: 4px;
  padding-bottom: 16px;
}
#ui .pause .row {
  min-height: 38px;
}
#ui .pause .side .btn {
  min-height: 46px;
}

/* ==========================================================================================
   STAGES AS A WORLD MAP: medallions on a trail over the sunset landscape, stars in an
   arc over each finished stage, the hero standing on the next one, falling petals.
   ========================================================================================== */
#ui .levels .card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(820px, 96cqw);
  height: min(372px, 94cqh);
  max-width: none;
  padding: 10px 12px 12px;
}
#ui .levels .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
#ui .levels .head h2 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(22px, 7cqh, 30px);
}
#ui .levels .head .btn {
  min-height: 42px;
  font-size: 17px;
}
#ui .levels .head .btn.ico {
  width: 46px;
  padding: 0;
}
#ui .map {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 3.5px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 26%,
      #fff3c8 0 5%,
      rgba(255, 228, 160, 0.6) 9%,
      rgba(255, 210, 150, 0) 22%
    ),
    linear-gradient(180deg, #ffc89a 0%, #f7a7b8 46%, #b79ff0 100%);
  box-shadow:
    inset 0 4px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}
#ui .map .land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#ui .map .road {
  stroke: var(--ink);
  stroke-width: 15px;
  stroke-linecap: round;
  opacity: 0.85;
}
#ui .map .dots {
  stroke: #ffefcf;
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
}
#ui .map .grid {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}
#ui .map .petals i {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 7px;
  border-radius: 70% 30% 70% 30%;
  background: #ffd0e0;
  box-shadow: inset -2px -1px 0 #f58db5;
  animation: map-petal 8s linear infinite;
}
@keyframes map-petal {
  to {
    transform: translate(-90px, 420px) rotate(540deg);
  }
}

/* stage medallion */
#ui .map .lv {
  position: absolute;
  width: clamp(48px, 15cqh, 62px);
  height: clamp(48px, 15cqh, 62px);
  min-height: 0;
  padding: 0;
  margin: 0;
  display: block;
  overflow: visible;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, #ffffff, #d9cfff);
  box-shadow:
    inset 0 -5px 0 rgba(58, 42, 158, 0.22),
    0 5px 0 var(--ink);
  transition: transform 0.12s;
  cursor: pointer;
}
#ui .map .lv:hover {
  transform: translate(-50%, -50%) scale(1.07);
}
#ui .map .lv:active {
  transform: translate(-50%, calc(-50% + 3px));
  box-shadow:
    inset 0 -3px 0 rgba(58, 42, 158, 0.22),
    0 2px 0 var(--ink);
}
/* the medallion face is the stage's sky */
#ui .map .lv .mini {
  position: absolute;
  inset: 4px;
  height: auto;
  border-radius: 50%;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}
#ui .map .lv .mini::after {
  border-radius: 50%;
}
#ui .map .lv b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 clamp(20px, 6.6cqh, 27px) / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}
#ui .map .lv .nm,
#ui .map .lv.fresh::after {
  display: none;
}
/* stars in an arc on top, only on stages already done */
#ui .map .lv .st {
  position: absolute;
  left: 50%;
  top: -21px;
  transform: translateX(-50%);
  display: none;
  gap: 0;
}
#ui .map .lv.done .st {
  display: flex;
}
#ui .map .lv .st svg {
  width: 19px;
  height: 19px;
  margin: 0 -1px;
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .map .lv .st svg:nth-child(1) {
  transform: translateY(5px) rotate(-14deg);
}
#ui .map .lv .st svg:nth-child(3) {
  transform: translateY(5px) rotate(14deg);
}
#ui .map .lv .st svg:not(.on) {
  opacity: 0.55;
  filter: grayscale(1) brightness(0.6) drop-shadow(0 2px 0 var(--ink));
}
/* grade: pill in the bottom corner */
#ui .map .lv .gr {
  position: absolute;
  right: -9px;
  bottom: -7px;
  width: 25px;
  height: 25px;
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 400 14px / 1 var(--pop);
}
#ui .map .lv .gr:empty {
  display: none;
}
/* medals: three small dots below */
#ui .map .lv .md {
  top: auto;
  right: auto;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
}
#ui .map .lv .md i {
  width: 9px;
  height: 9px;
}
/* locked: dimmed lilac face and padlock */
#ui .map .lv.shut {
  background: linear-gradient(180deg, #9a8ce6, #6f5fd0);
  cursor: default;
}
#ui .map .lv.shut .mini {
  filter: grayscale(0.9) brightness(0.55);
  opacity: 0.6;
}
#ui .map .lv.shut b {
  display: none;
}
#ui .map .lv .lock {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .map .lv.shut .lock {
  display: grid;
}
#ui .map .lv .lock svg {
  width: 24px;
  height: 24px;
}
/* the next one: pulsing green ring and the hero standing on top */
#ui .map .lv.next {
  background: var(--gloss), linear-gradient(180deg, var(--gr-hi), var(--gr-lo));
  animation: lv-next 1.3s ease-in-out infinite;
}
@keyframes lv-next {
  50% {
    box-shadow:
      inset 0 -5px 0 rgba(0, 0, 0, 0.18),
      0 5px 0 var(--ink),
      0 0 0 7px rgba(150, 240, 79, 0.45);
  }
}
#ui .map .lv .me {
  position: absolute;
  left: 50%;
  bottom: 74%;
  width: 62px;
  transform: translateX(-46%);
  pointer-events: none;
  animation: lv-hop 1.3s ease-in-out infinite;
}
#ui .map .lv .me canvas {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes lv-hop {
  50% {
    transform: translateX(-46%) translateY(-5px);
  }
}
#ui .map .lv .lock {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  background: none;
  box-shadow: none;
}
#ui .map .lv .gr {
  top: auto;
  left: auto;
}

/* final-strike replay: cinema bars sliding in and the REPLAY badge blinking */
#ui::before,
#ui::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #0d0826;
  z-index: 40;
  pointer-events: none;
  transition: height 0.25s ease-out;
}
#ui::before {
  top: 0;
}
#ui::after {
  bottom: 0;
}
#ui.replaying::before,
#ui.replaying::after {
  height: 11%;
}
#ui.replaying .badge {
  display: none;
}
#ui .replaytag {
  position: absolute;
  z-index: 41;
  right: 18px;
  bottom: calc(11% + 10px);
  display: none;
  padding: 5px 12px 6px 26px;
  border-radius: 12px;
  font: 400 18px / 1 var(--pop);
  letter-spacing: 0.08em;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  background: linear-gradient(180deg, #8a75ff, #5b45dc);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
#ui .replaytag::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ff4a3a;
  box-shadow: 0 0 0 2px var(--ink);
  animation: rec-blink 0.8s steps(2, jump-none) infinite;
}
@keyframes rec-blink {
  50% {
    opacity: 0.2;
  }
}
#ui.replaying .replaytag {
  display: block;
}

/* ==========================================================================================
   UI POLISH, ROUND 2
   ========================================================================================== */
/* inner hairline on every panel: the "cushion" detail from the reference */
#ui .sheet .card::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 21px;
  border: 2.5px solid rgba(26, 18, 64, 0.38);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
/* buttons: shadow under the text and a light rim inside */
#ui .btn {
  text-shadow: 0 3px 0 var(--b-ink);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 -5px 0 rgba(0, 0, 0, 0.16),
    0 5px 0 var(--ink);
}
#ui .btn:active,
#ui .btn.down {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    0 1px 0 var(--ink);
}
#ui #bClose {
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.35),
    0 4px 0 var(--ink);
}
#ui #bClose svg {
  width: 24px;
  height: 24px;
  filter: none;
}
/* the dimmed side of the switches sits deeper: the chosen one pops */
#ui .sheet .seg button,
#ui .row input[type='checkbox']::before,
#ui .row input[type='checkbox']::after {
  color: #7d70d6;
}
#ui .row input[type='checkbox']:not(:checked)::before {
  color: #fff;
  -webkit-text-stroke: 3px var(--rd-ink);
  background: var(--gloss), linear-gradient(180deg, var(--rd-hi), var(--rd-lo));
}

/* scoreboard: pills at the height of the round buttons */
#ui .hud-l > .foes,
#ui .hud-l > .stars,
#ui .hud-l > .score {
  height: 46px;
  box-sizing: border-box;
}
/* combo: purple plate anchored to the right, beside the buttons, multiplier in a golden lozenge */
#ui .combo {
  left: auto;
  right: calc(max(14px, env(safe-area-inset-right)) + 112px);
  translate: 0 0;
  padding: 3px 12px 7px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(92, 72, 214, 0.94), rgba(56, 40, 158, 0.94));
  border: 3px solid var(--ink);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 var(--ink);
}
#ui .combo .x {
  font-size: 32px;
}
#ui .combo .m {
  color: #fff;
  -webkit-text-stroke: 4px var(--gd-ink);
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  padding: 3px 8px;
  border-radius: 10px;
}
#ui .combo .bar {
  height: 10px;
}
#ui .combo .bar i {
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
}
#ui:has(.sheet:not([hidden])) .combo {
  visibility: hidden;
}

/* opening notice: the same purple as the panels, no golden border, hint in a light lilac well */
#ui .toast {
  --plate-hi: #6c57ea;
  --plate-lo: #4a38c4;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    0 5px 0 var(--ink),
    0 12px 24px rgba(12, 6, 36, 0.45);
}
#ui .toast::before {
  display: none;
}
#ui .toast .nm {
  color: #fff;
  -webkit-text-stroke: 6px #2f1f96;
  text-shadow: 0 3px 0 var(--ink);
}
#ui .toast .tx {
  font: 400 15px / 1.2 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3.5px var(--ink);
}
/* (deep strip and white lettering with outline, like the rest of the UI: purple on lilac had little contrast) */
#ui .toast.big .tx {
  background: linear-gradient(180deg, #4a36c4, #35249a);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  font: 400 15px / 1.2 var(--pop);
  border-radius: 12px;
  padding: 5px 14px 6px;
  box-shadow:
    inset 0 0 0 2.5px var(--ink),
    inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
/* notice anchored to what was tapped (padlock, locked outfit): bubble with a little tail */
#ui .toast.tip {
  translate: 0 -100%;
  transform: translateX(-50%);
  animation: none;
}
#ui .toast.tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  inset: auto auto -10px 50%;
  border-radius: 0 0 4px 0;
  background: var(--plate-lo);
  border: solid var(--ink);
  border-width: 0 3.5px 3.5px 0;
  transform: rotate(45deg);
}

/* lean pause: language lives only in Options; controls in a single aligned column */
#ui .pause:not(.opts) .row:has(#sLang) {
  display: none;
}
#ui .pause .row {
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  column-gap: 12px;
  min-height: 38px;
}
#ui .pause .row > :last-child {
  justify-self: stretch;
  width: 100%;
}
#ui .pause .seg button {
  flex: 1;
}
#ui .pause .row input[type='checkbox'] {
  width: 100%;
}
#ui .pause .pick,
#ui .pause .pick select {
  width: 100%;
}
#ui .pause .head h2 {
  border-radius: 999px;
  padding: 4px 34px 8px;
}
#ui .sheet {
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 24, 110, 0.55), rgba(10, 6, 34, 0.8));
}

/* empty stars in navy blue, the same everywhere */
#ui .map .lv .st svg:not(.on) {
  opacity: 1;
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .map .lv .st svg:not(.on) path,
#ui .map .lv .st svg:not(.on) polygon {
  fill: #3d3f8f;
}
#ui .map .lv .md {
  display: none;
}
#ui .result .r5 .best,
#ui .result .best {
  font: 400 15px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3.5px #7a4100;
  paint-order: stroke fill;
}
#ui .result .tiles dt {
  font-size: 13px;
  color: #c3baff;
}

/* result: ribbon over the border with folded ends, dark grade disc with a glow */
#ui .result .rib::before,
#ui .result .rib::after {
  display: block;
  background: #3e2db0;
  box-shadow: inset 0 0 0 3px var(--ink);
}
#ui .result .r5 .grade,
#ui .result .grade {
  background: radial-gradient(circle, rgba(255, 226, 122, 0.55), var(--well) 70%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.15),
    0 5px 0 var(--ink);
}
#ui .result .grade small {
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#ui .result .glow {
  background: repeating-conic-gradient(rgba(255, 226, 122, 0.18) 0 8deg, transparent 8deg 16deg);
}
/* part that was missed: empty ring, not a "remove" */
#ui .result .tiles > div.miss::after {
  background: var(--well);
  box-shadow: inset 0 0 0 2.5px #9d91ea;
}
#ui .result .tiles > div.miss::before {
  display: none;
}

/* outfits: name on a strip at the bottom, centered title, locked one readable with a golden padlock */
#ui .skins .head h2 {
  flex: 1;
  text-align: center;
}
#ui .sk {
  position: relative;
  overflow: hidden;
}
#ui .sk .nm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 0 9px;
  background: linear-gradient(#7a64f2, #4b39c6);
  color: #fff;
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  border-top: 3px solid var(--ink);
  text-align: center;
}
#ui .sk.shut .nm {
  background: linear-gradient(#6a5ad6, #4535ad);
}
#ui .sk small {
  font: 400 15px var(--pop);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#ui .sk .need {
  height: 12px;
  border: 2.5px solid var(--ink);
  border-radius: 7px;
  background: var(--well);
}
#ui .sk .lock {
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  border: 3px solid var(--ink);
  color: var(--ink);
}

/* targets under each part of the result ("meta 0:26") */
#ui .result .tiles > div[data-goal] dd::after {
  content: attr(data-goal);
  display: block;
  margin-top: 2px;
  font: 400 11px / 1 var(--pop);
  color: #9d91ea;
  -webkit-text-stroke: 0;
  letter-spacing: 0.02em;
}

/* last stage: world complete, stronger golden rays and confetti */
#ui .result.world .glow {
  background: repeating-conic-gradient(rgba(255, 226, 122, 0.32) 0 8deg, transparent 8deg 16deg);
}
#ui .result.world .rib {
  background: linear-gradient(180deg, var(--gd-hi), var(--gd-lo));
}
#ui .result.world .rib h2 {
  color: #fff;
  -webkit-text-stroke-color: var(--gd-ink);
}

/* map: Garden landmarks (torii, cherry tree, lanterns) and the PLAY tag on the next stage */
#ui .map .lamp rect:nth-of-type(3) {
  filter: drop-shadow(0 0 6px #ffd27a);
}
#ui .map .lv.next::after {
  content: attr(data-play);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 10px 5px;
  border-radius: 10px;
  font: 400 14px / 1 var(--pop);
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 3.5px var(--gd-ink);
  paint-order: stroke fill;
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
  text-transform: uppercase;
}

/* stage window */
#ui .lvpop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(14, 8, 40, 0.55);
  pointer-events: auto;
}
#ui .lvpop[hidden] {
  display: none;
}
#ui .lvpop .pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 250px;
  padding: 30px 22px 18px;
  border-radius: 24px;
  border: 4px solid var(--ink);
  background: linear-gradient(180deg, #6c57ea, #4a38c4);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    0 6px 0 var(--ink);
  animation: plate-in 0.32s cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
}
#ui .lvpop .pt {
  position: absolute;
  top: -24px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 4px 26px 7px;
  border-radius: 999px;
  white-space: nowrap;
  font: 400 26px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 6px #2f1f96;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
  background: linear-gradient(180deg, #8a75ff, #5b45dc);
  border: 4px solid var(--ink);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 var(--ink);
}
#ui .lvpop #bPopX {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  min-height: 42px;
}
#ui .lvpop .pn {
  margin: 4px 0 0;
  font: 400 20px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
#ui .lvpop .pstars {
  display: flex;
  gap: 2px;
}
#ui .lvpop .pstars svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .lvpop .pstars svg:nth-child(2) {
  translate: 0 -5px;
  width: 36px;
  height: 36px;
}
#ui .lvpop .pg {
  position: absolute;
  right: 14px;
  top: 40px;
}
#ui .lvpop .pmd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 6px;
  padding: 8px 12px;
  list-style: none;
  border-radius: 14px;
  background: var(--well);
  border: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.25);
}
#ui .lvpop .pmd li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 14px / 1 var(--pop);
  color: #7d70d6;
}
#ui .lvpop .pmd li.on {
  color: #fff;
}
#ui .lvpop .pmd i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3d3f8f;
  box-shadow: inset 0 0 0 2px var(--ink);
}
#ui .lvpop .pmd li.on i {
  background: radial-gradient(circle at 35% 30%, #fff6c0 0 20%, #ffd24a 50%, #e39a12);
}
#ui .lvpop #bPopGo {
  min-width: 170px;
  min-height: 50px;
  font-size: 22px;
}

/* title: logo in the same chunky lettering with purple outline and shadow, BLOCK on a golden plate, and the
   slash of the cut becomes a lit blue thread (the slash stays) */
#ui .t2 .lg {
  font-family: var(--pop);
  font-size: calc(var(--fs, 64px) * 1.12);
}
#ui .t2 .w1 {
  color: #fff;
  -webkit-text-stroke: 0.16em #2f1f96;
  text-shadow: 0 0.07em 0 var(--ink);
}
#ui .t2 .w2 {
  color: #fff;
  -webkit-text-stroke: 0.14em var(--gd-ink);
  paint-order: stroke fill;
  background: var(--gloss), linear-gradient(180deg, var(--gd-hi), var(--gd-lo));
  border: 0.06em solid var(--ink);
  box-shadow:
    inset 0 0.04em 0 rgba(255, 255, 255, 0.5),
    0 0.08em 0 var(--ink),
    0 0.16em 0.24em rgba(10, 6, 34, 0.35);
}
#ui .t2 .slash {
  background: linear-gradient(
    90deg,
    transparent,
    #bfe8ff 6%,
    #5ec3ff 16%,
    #e8f8ff 50%,
    #5ec3ff 84%,
    #bfe8ff 94%,
    transparent
  );
  box-shadow: 0 0 0.25em 0.04em rgba(94, 195, 255, 0.85);
}
#ui .map .lv.next::after {
  display: block;
}
/* End of src/ui-roxa-base.css */
/* Purple UI polish rounds 3 to 6 and map with worlds (imported by ui-roxa.css) */
/* ==========================================================================================
   UI POLISH, ROUND 3
   ========================================================================================== */
/* pause: fixed button column, label on a single line, 188 px control; fits in 375 of height */
#ui .pause .card {
  grid-template-columns: 236px minmax(0, 1fr);
}
#ui .pause .row {
  grid-template-columns: auto 188px;
}
#ui .pause .row > span:first-child {
  white-space: nowrap;
  font-size: 16px;
}
#ui .pause .seg button {
  min-width: 0;
  padding: 0 6px;
  font-size: 15px;
}
#ui .pause .side {
  gap: 6px;
}
#ui .pause .side .btn {
  min-height: 40px;
}
#ui .pause #bResume {
  min-height: 46px;
}
#ui .sheet.pause {
  padding-top: 28px;
}

/* outfits: nothing clipped at the corner, locked requirement above the strip, "Em uso" on the equipped one */
#ui .sk {
  overflow: visible;
}
#ui .sk .nm {
  border-radius: 0 0 14.5px 14.5px;
}
#ui .sk.shut .need {
  position: absolute;
  left: 15%;
  width: 70%;
  bottom: 52px;
}
#ui .sk.shut small {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  text-align: center;
}
#ui .sk.on .nm {
  background: linear-gradient(var(--gr-hi), var(--gr-lo));
  -webkit-text-stroke-color: var(--gr-ink);
}
#ui .sk.on::after {
  content: attr(data-on);
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50% 0;
  padding: 3px 10px 4px;
  border-radius: 10px;
  font: 400 13px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3px var(--gr-ink);
  paint-order: stroke fill;
  background: linear-gradient(var(--gr-hi), var(--gr-lo));
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}

/* anchored bubble: above what was tapped, one line, tail pointing at the spot */
#ui .toast.tip {
  translate: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  max-width: none;
}
#ui .toast.tip::after {
  left: calc(50% + var(--tx, 0px));
}

/* stage window: pops in place, with hairline, medals with icon in a light well */
#ui .lvpop .pcard {
  animation: pop-in 0.32s cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-3deg);
  }
}
#ui .lvpop .pcard::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 17px;
  border: 2.5px solid rgba(26, 18, 64, 0.38);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
#ui .lvpop .pmd {
  background: linear-gradient(180deg, #b1a4ff, #8f7cf5);
  box-shadow:
    inset 0 0 0 2.5px var(--ink),
    inset 0 3px 0 rgba(255, 255, 255, 0.35);
  border: none;
}
#ui .lvpop .pmd li {
  color: #5b4bb8;
  font-size: 15px;
}
#ui .lvpop .pmd li.on {
  color: #2b1d7a;
}
#ui .lvpop .pmd svg {
  width: 20px;
  height: 20px;
  opacity: 0.45;
  filter: grayscale(1);
}
#ui .lvpop .pmd li.on svg {
  opacity: 1;
  filter: drop-shadow(0 1.5px 0 var(--ink));
}
#ui .lvpop .pmd i {
  display: none;
}
#ui .lvpop .pg {
  position: absolute;
  right: 18px;
  top: 52px;
}

/* result: the hairline starts below the ribbon (no double ribbon); readable target; collected stars */
#ui .result .card::after {
  top: 78px;
}
#ui .result .tiles > div[data-goal] dd::after {
  font-size: 13px;
  color: #c3baff;
}
#ui .result .got {
  margin: -2px 0 2px;
  font: 400 14px / 1 var(--pop);
  color: #ffe27a;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#ui .result.world .rib::before,
#ui .result.world .rib::after {
  background: #c27a0e;
}

/* combo at pill height; empty scoreboard stars in navy blue */
#ui .combo {
  height: 46px;
  box-sizing: border-box;
  padding: 2px 10px 4px;
}
#ui .combo .bar {
  height: 8px;
}
#ui .hud-l .stars svg:not(.on) {
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .hud-l .stars svg:not(.on) path,
#ui .hud-l .stars svg:not(.on) polygon {
  fill: #3d3f8f;
  stroke: var(--ink);
}

/* opening notice: panel hairline (::after is the glow; ::before was left free) */
#ui .toast.big::before {
  display: block;
  content: '';
  position: absolute;
  inset: 6px;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(26, 18, 64, 0.35);
  background: none;
  box-shadow: none;
  filter: none;
  transform: none;
  animation: none;
  pointer-events: none;
}

/* title: icons on the buttons; at 667x375 the phrase moves up and shrinks to clear the buttons */
#ui .tmenu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#ui .tmenu .btn .ic {
  width: 22px;
  height: 22px;
  flex: none;
  color: #fff;
  filter: drop-shadow(0 2px 0 var(--b-ink));
}
@media (max-height: 380px) {
  #ui .t2 .premise {
    top: calc(var(--ly, 38%) + var(--fs, 64px) * 0.8);
    font-size: 14px;
    padding: 5px 14px 6px;
  }
}
/* (all six controls sit in the right column; the buttons' one takes the full height) */
#ui .pause .side {
  grid-column: 1;
  grid-row: 1 / span 8;
  align-self: center;
}
#ui .pause .row {
  grid-column: 2;
}
#ui .pause .row input[type='range'] {
  height: 32px;
}
#ui .pause .row {
  min-height: 36px;
}
#ui .pause .card {
  row-gap: 3px;
  padding-top: 26px;
  padding-bottom: 14px;
}

/* stage window: stars same as the result's (full golden, empty navy) and the grade
   as a medallion in the same color as the map */
#ui .lvpop .pstars svg {
  fill: #3d3f8f;
  stroke: var(--ink);
  stroke-width: 1.6;
}
#ui .lvpop .pstars svg.on {
  fill: #ffc21a;
  stroke: #7a4100;
}
#ui .lvpop .pg {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font: 400 22px / 1 var(--pop);
  font-style: normal;
  color: #fff;
  -webkit-text-stroke: 4px var(--gd-ink);
  paint-order: stroke fill;
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  rotate: 8deg;
}
#ui .lvpop .pg[hidden] {
  display: none;
}
#ui .lvpop .pg[data-g='A'] {
  background: linear-gradient(var(--gr-hi), var(--gr-lo));
  -webkit-text-stroke-color: var(--gr-ink);
}
#ui .lvpop .pg[data-g='B'] {
  background: linear-gradient(#5ec3ff, #2f86f6);
  -webkit-text-stroke-color: #123f94;
}
#ui .lvpop .pg[data-g='C'],
#ui .lvpop .pg[data-g='D'] {
  background: linear-gradient(#d4dbe8, #9fadc6);
  -webkit-text-stroke-color: #55627a;
}

/* ==========================================================================================
   UI POLISH, ROUND 4
   ========================================================================================== */
/* stage window: the map title fades behind it; darker veil; medals with count and ✓ */
#ui .levels:has(.lvpop:not([hidden])) .head h2 {
  visibility: hidden;
}
#ui .lvpop {
  background: rgba(14, 8, 40, 0.7);
}
#ui .lvpop .pmh {
  margin: 2px 0 -2px;
  font: 400 14px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#ui .lvpop .pmd li,
#ui .lvpop .pmd li.on {
  color: #2b1d7a;
}
#ui .lvpop .pmd li.on::after {
  content: '';
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(#7ddc3f, #4fbf22);
  box-shadow: inset 0 0 0 2px var(--ink);
}
#ui .lvpop .pmd li {
  min-width: 210px;
}
/* grade as a stamp in the top-left corner */
#ui .lvpop .pg {
  position: absolute;
  left: -14px;
  right: auto;
  top: 18px;
  rotate: -10deg;
}

/* result on short screens: smaller big stars and shorter buttons */
#ui .result .got {
  display: none;
}
/* the last stage: the new outfit line (the partner). White with outline, like all UI text */
#ui .result.world .got:not(:empty) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 19px;
  color: #fff;
}
#ui .result .got .prize {
  height: 58px;
  margin: -10px 0 -8px;
  filter: drop-shadow(0 3px 0 rgba(26, 18, 32, 0.5));
}
@media (max-height: 380px) {
  #ui .result .bigstars {
    scale: 0.8;
    translate: 0 8px;
  }
  #ui .result .acts .btn {
    min-height: 44px;
  }
}

/* pause: buttons span the height of the six rows; all rows the same height */
#ui .pause .side {
  align-self: stretch;
  justify-content: space-between;
  padding: 6px 0;
}
#ui .pause .row {
  min-height: 42px;
}

/* locked outfit tapped: the card shakes and the bar flashes golden */
#ui .sk.nudge {
  animation: sk-nudge 0.32s ease-in-out;
}
#ui .sk.nudge .need i {
  animation: sk-bar 0.4s ease-in-out 3;
}
@keyframes sk-nudge {
  20%,
  60% {
    translate: -5px 0;
  }
  40%,
  80% {
    translate: 5px 0;
  }
}
@keyframes sk-bar {
  50% {
    filter: brightness(1.6);
  }
}
#ui .sk.on .ok {
  display: none;
}

/* bubble below the tapped spot (bottom row of the map): tail pointing up */
#ui .toast.tip.below {
  transform: translate(-50%, 0);
}
#ui .toast.tip.below::after {
  top: -11px;
  bottom: auto;
  rotate: 180deg;
}

/* title: on short screens, tighter buttons (the hero's sword doesn't touch Options) */
@media (max-height: 380px) {
  #ui .t2 .tmenu {
    gap: 8px;
  }
  #ui .t2 .tmenu .btn {
    padding: 0 12px;
  }
}

/* combo: 8 px bar that doesn't shrink, slightly smaller number */
#ui .combo .bar {
  height: 8px;
  flex: none;
}
#ui .combo .x {
  font-size: 30px;
}

/* opening notice hint wraps nicely */
#ui .toast.big .tx {
  text-wrap: balance;
  max-width: 34ch;
}

/* boss stage on the map: bigger, dark medallion with golden border */
#ui .map .lv.boss {
  width: clamp(58px, 18cqh, 72px);
  height: clamp(58px, 18cqh, 72px);
  background: linear-gradient(180deg, #ffe27a, #e39a12);
  box-shadow:
    inset 0 -5px 0 rgba(122, 65, 0, 0.35),
    0 5px 0 var(--ink),
    0 0 0 4px rgba(255, 226, 122, 0.35);
}
#ui .map .lv.boss .mini {
  inset: 6px;
  background: radial-gradient(circle at 50% 40%, #6a2433, #2a1022) !important;
}
#ui .map .lv.boss b::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -14px;
  width: 30px;
  height: 18px;
  translate: -50% 0;
  background: #ffc21a;
  clip-path: polygon(0 0, 22% 60%, 50% 30%, 78% 60%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 2px 0 var(--ink));
}

/* ==========================================================================================
   UI POLISH, ROUND 5
   ========================================================================================== */
/* outfits as a carousel: snap scrolling, mask at the ends, arrows and page dots */
#ui .skins .car {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#ui .skins .grid {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 14px;
  padding: 18px 14px 10px;
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent);
  scrollbar-width: none;
}
#ui .skins .grid::-webkit-scrollbar {
  display: none;
}
#ui .skins .sk {
  flex: 0 0 clamp(124px, 25cqw, 150px);
  scroll-snap-align: start;
}
#ui .skins .arr {
  flex: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}
#ui .skins .arr.r svg {
  transform: scaleX(-1);
}
#ui .skins .arr.off {
  opacity: 0.35;
  pointer-events: none;
}
#ui .skins .dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
}
#ui .skins .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--well);
  box-shadow: inset 0 0 0 2px var(--ink);
}
#ui .skins .dots i.on {
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
}

/* boss medallion: the captain's portrait; locked, dark with the padlock on a seal; BOSS ribbon */
#ui .map .lv.boss .mini {
  background:
    var(--face, none) center 60% / 92% no-repeat,
    radial-gradient(circle at 50% 40%, #6a2433, #2a1022) !important;
}
#ui .map .lv.boss b::before {
  display: none;
}
#ui .map .lv.boss.shut .mini {
  filter: brightness(0.45) saturate(0.6);
  opacity: 1;
}
#ui .map .lv.boss.shut .lock {
  inset: auto -8px -6px auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  box-shadow:
    inset 0 0 0 2.5px var(--ink),
    0 2px 0 var(--ink);
}
#ui .map .lv.boss.shut .lock svg {
  width: 15px;
  height: 15px;
  color: var(--ink);
  filter: none;
}
#ui .map .lv.boss:not(.next)::after {
  content: attr(data-boss);
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 10px 4px;
  border-radius: 9px;
  font: 400 13px / 1 var(--pop);
  letter-spacing: 0.06em;
  color: #fff;
  -webkit-text-stroke: 3px var(--rd-ink);
  paint-order: stroke fill;
  background: linear-gradient(var(--rd-hi), var(--rd-lo));
  border: 2.5px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
#ui .map .over {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* boss stage opening notice: red border */
#ui .toast.boss {
  border-color: var(--rd-lo);
  box-shadow:
    inset 0 0 0 3px rgba(255, 122, 122, 0.35),
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    0 5px 0 var(--ink),
    0 12px 24px rgba(12, 6, 36, 0.45);
}
#ui .toast.boss .nm {
  -webkit-text-stroke-color: var(--rd-ink);
}

/* combo: 12 px bar with thin border and full-height golden fill */
#ui .combo .bar {
  height: 12px;
  border-width: 2.5px;
  border-radius: 6px;
}
#ui .combo .bar i {
  height: 100%;
  border-radius: 4px;
}

/* pause: buttons that grow and stay together, spanning the height of the six rows */
#ui .pause .side {
  justify-content: stretch;
  gap: 10px;
}
#ui .pause .side .btn {
  flex: 1;
  min-height: 0;
}

/* short screens: the title menu shifts 18 px left (the hero's sword doesn't touch it) and the
   map hero moves slightly aside (doesn't touch the previous stage's grade) */
@media (max-height: 380px) {
  #ui .t2 .tmenu {
    margin-left: -18px;
  }
  #ui .map .lv .me {
    width: 54px;
    translate: 6px 0;
  }
}

/* ==========================================================================================
   UI POLISH, ROUND 6
   ========================================================================================== */
/* boss stage on the map: the hero stands on the path before the gate, facing it;
   the PLAY tag below, between the pillars; the number becomes a seal and the portrait shows whole */
#ui .map .lv.boss .me {
  left: -44%;
  bottom: 18%;
  transform: none;
  animation: none;
}
#ui .map .lv.boss.next::after {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  rotate: 0deg;
}
#ui .map .lv.boss b {
  inset: auto auto -6px -6px;
  width: 26px;
  height: 26px;
  font-size: 15px;
  border-radius: 50%;
  background: linear-gradient(var(--gd-hi), var(--gd-lo));
  border: 2.5px solid var(--ink);
  -webkit-text-stroke: 3px var(--gd-ink);
  text-shadow: none;
}
#ui .map .lv.boss.shut b {
  display: none;
}
/* earned medals: white check with outline, same as the result's */
#ui .lvpop .pmd li.on::after {
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 2px 0 var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center/100% no-repeat,
    linear-gradient(#7ddc3f, #4fbf22);
}
/* carousel: symmetric, longer mask at both ends */
#ui .skins .grid {
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent);
  padding-inline: 30px;
  scroll-padding: 0 30px;
}
#ui .skins .total.own .ic {
  width: 20px;
  height: 20px;
  color: #fff;
  filter: drop-shadow(0 2px 0 var(--ink));
}
#ui .skins .head {
  gap: 8px;
}
/* pausa: "Continuar" volta a mandar */
#ui .pause #bResume {
  flex: 1.4;
}
/* (the PLAY tag inherited the NEW badge animation, which spins and shifts: it stays still and centered) */
#ui .map .lv.next::after {
  animation: none;
  transform: translateX(-50%);
  rotate: 0deg;
  left: 50%;
  top: calc(100% + 8px);
}
/* hero before the gate, outside the medallion and the beams, smaller */
#ui .map .lv.boss .me {
  left: auto;
  right: 112%;
  bottom: -8%;
  width: 50px;
  translate: 0 0;
}
/* (11 stages make the path tight: the hero stands on top of the gate beam, like a ninja) */
#ui .map .over {
  z-index: 1;
}
#ui .map .lv.boss {
  z-index: 2;
}
#ui .map .lv.boss .me {
  right: auto;
  left: 50%;
  bottom: 128%;
  width: 46px;
  transform: translateX(-46%);
}
/* boss PLAY: smaller and pulled inside the torii, away from the stage 10 stars */
#ui .map .lv.boss.next::after {
  font-size: 12px;
  padding: 2px 8px 4px;
  transform: translateX(calc(-50% + 10px));
}
/* carousel: the mask only fades the end that still has outfits to scroll */
#ui .skins .grid.at-end {
  mask-image: linear-gradient(90deg, transparent 0, #000 36px);
}
#ui .skins .grid.at-start {
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
#ui .skins .grid.at-start.at-end {
  mask-image: none;
}
/* carousel on short screens: three cards fit between the mask bands; snap to center */
@media (max-height: 380px) {
  #ui .skins .grid {
    gap: 10px;
    padding-inline: 28px;
    scroll-padding-inline: 28px;
  }
  #ui .skins .grid:not(.at-start):not(.at-end) {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 28px,
      #000 calc(100% - 28px),
      transparent
    );
  }
  #ui .skins .grid.at-end {
    mask-image: linear-gradient(90deg, transparent 0, #000 28px);
  }
  #ui .skins .grid.at-start {
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  #ui .skins .sk {
    flex-basis: calc((100% - 56px - 20px) / 3);
    scroll-snap-align: center;
  }
  #ui .sk .nm {
    font-size: 13px;
    padding-inline: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #ui .sk small {
    font-size: 13px;
    white-space: nowrap;
  }
  #ui .map .lv.boss b {
    left: -2px;
    bottom: -2px;
  }
}

/* ==========================================================================================
   MAP WITH WORLDS: only the world on display shows (medallions, trail and landmarks); arrows in the title
   ========================================================================================== */
#ui .map:not([data-w='0']) [data-w='0'],
#ui .map:not([data-w='1']) [data-w='1'],
#ui .map:not([data-w='2']) [data-w='2'],
#ui .map:not([data-w='3']) [data-w='3'],
#ui .map:not([data-w='4']) [data-w='4'] {
  display: none;
}
#ui .map:not([data-w='0']) .over {
  display: none;
}
/* Ice: cold sky, white and blue hills, flakes in place of petals */
#ui .map[data-w='1'] {
  background:
    radial-gradient(
      circle at 82% 22%,
      #ffffff 0 4%,
      rgba(230, 244, 255, 0.7) 8%,
      rgba(220, 240, 255, 0) 20%
    ),
    linear-gradient(180deg, #8ec2ea 0%, #c7e4f8 50%, #eaf5ff 100%);
}
#ui .map[data-w='1'] .land > path:nth-of-type(1) {
  fill: #ffffff;
}
#ui .map[data-w='1'] .land > path:nth-of-type(2) {
  fill: #cfe6f8;
}
#ui .map[data-w='1'] .land > path:nth-of-type(3) {
  fill: #a7cdee;
}
#ui .map[data-w='1'] .petals i {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #ffffff;
  box-shadow: none;
}
/* Fortress: red dusk behind the castle, stone wall, torch embers */
#ui .map[data-w='4'] {
  background:
    radial-gradient(circle at 64% 40%, rgba(255, 176, 96, 0.55) 0 6%, rgba(255, 140, 70, 0) 24%),
    linear-gradient(180deg, #2a1424 0%, #5a1e2a 45%, #a83a2a 80%, #e07a3a 100%);
}
#ui .map[data-w='4'] .land > path:nth-of-type(1) {
  fill: #5a3428;
}
#ui .map[data-w='4'] .land > path:nth-of-type(2) {
  fill: #4a2a22;
}
#ui .map[data-w='4'] .land > path:nth-of-type(3) {
  fill: #3a201c;
}
#ui .map[data-w='4'] .petals i:nth-child(2n) {
  display: none;
}
#ui .map[data-w='4'] .petals i {
  animation-duration: 12s !important;
  top: auto;
  bottom: -6%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb060;
  box-shadow: 0 0 5px #ff8a3a;
  animation-name: map-ember;
}
/* Clouds: open sky, white cloud hills, white flakes slowly rising */
#ui .map[data-w='3'] {
  background:
    radial-gradient(
      circle at 80% 22%,
      #fff6d8 0 5%,
      rgba(255, 226, 160, 0.6) 9%,
      rgba(255, 226, 160, 0) 22%
    ),
    linear-gradient(180deg, #3f86dc 0%, #86c2f2 45%, #d9eefc 80%, #fff1d0 100%);
}
#ui .map[data-w='3'] .land > path:nth-of-type(1) {
  fill: #ffffff;
}
#ui .map[data-w='3'] .land > path:nth-of-type(2) {
  fill: #e6ecfc;
}
#ui .map[data-w='3'] .land > path:nth-of-type(3) {
  fill: #c9d4f2;
}
#ui .map[data-w='3'] .petals i {
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  box-shadow: none;
}
/* Lava: wine-red sky and embers, basalt hills, volcano, embers rising in place of petals */
#ui .map[data-w='2'] {
  background:
    radial-gradient(
      circle at 22% 46%,
      #ffd58a 0 5%,
      rgba(255, 122, 58, 0.55) 9%,
      rgba(255, 106, 26, 0) 22%
    ),
    linear-gradient(180deg, #3a1a3a 0%, #8a3048 45%, #e0703e 80%, #ffb05a 100%);
}
#ui .map[data-w='2'] .land > path:nth-of-type(1) {
  fill: #6e3e52;
}
#ui .map[data-w='2'] .land > path:nth-of-type(2) {
  fill: #4e2a3e;
}
#ui .map[data-w='2'] .land > path:nth-of-type(3) {
  fill: #2f1a28;
}
#ui .map[data-w='2'] .land > path {
  stroke: #2a1424;
  stroke-width: 3px;
  vector-effect: non-scaling-stroke;
}
#ui .map[data-w='2'] .petals i {
  top: auto;
  bottom: -6%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb04a;
  box-shadow: 0 0 6px #ff7a24;
  animation-name: map-ember;
}
@keyframes map-ember {
  to {
    transform: translate(40px, -380px);
    opacity: 0;
  }
}
#ui .levels .head .wa {
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}
#ui .levels .head .wa.r svg {
  transform: scaleX(-1);
}
#ui .levels .head .wa.off {
  opacity: 0.35;
  pointer-events: none;
}

/* locked stage tapped: it shakes and the padlock blinks; the unlocked one jumps and PLAY pulses */
#ui .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#ui .map .lv.nudge {
  animation: lv-nudge 0.32s ease-in-out;
}
#ui .map .lv.nudge .lock svg {
  animation: lock-blink 0.25s ease-in-out 2;
}
@keyframes lv-nudge {
  20%,
  60% {
    translate: -5px 0;
  }
  40%,
  80% {
    translate: 5px 0;
  }
}
@keyframes lock-blink {
  50% {
    color: #ffe27a;
    filter: drop-shadow(0 0 6px #ffe27a);
  }
}
#ui .map .lv.next.call {
  animation: lv-call 0.6s cubic-bezier(0.3, 1.6, 0.5, 1);
}
#ui .map .lv.next.call::after {
  box-shadow:
    0 3px 0 var(--ink),
    0 0 0 8px rgba(150, 240, 79, 0.5);
}
@keyframes lv-call {
  40% {
    translate: 0 -10px;
    box-shadow:
      inset 0 -5px 0 rgba(0, 0, 0, 0.18),
      0 5px 0 var(--ink),
      0 0 0 10px rgba(150, 240, 79, 0.5);
  }
}

/* (the beams svg shows in all worlds; each gate is a group with data-w) */
#ui .map:not([data-w='0']) .over {
  display: block;
}

/* shuriken: fat round button in the bottom corner, ammo in a small bubble */
#ui .throw {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 63px;
  height: 63px;
  border-radius: 50%;
  opacity: 0.9;
  display: grid;
  place-items: center;
  background: var(--gloss), radial-gradient(circle at 50% 40%, #8a75ff, #4b36c9);
  border: 4px solid var(--ink);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 var(--ink);
  touch-action: none;
}
@media (pointer: coarse) {
  #ui .throw kbd {
    display: none;
  }
}
#ui .throw svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 0 #2f1f96);
}
#ui .throw:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 1px 0 var(--ink);
}
#ui .throw .n {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font: 400 19px / 1 var(--pop);
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  background: linear-gradient(180deg, #ffd23a, #f29a12);
  border: 3px solid var(--ink);
}
#ui .throw kbd {
  position: absolute;
  bottom: -10px;
  left: 50%;
  translate: -50% 0;
  padding: 2px 7px 3px;
  border-radius: 7px;
  font: 400 13px / 1 var(--pop);
  color: #fff;
  background: #2a1d6e;
  border: 2px solid var(--ink);
}
/* no ammo: gray body and drawing; the badge turns red (the filter on the whole button washed out the badge) */
#ui .throw.empty {
  background: var(--gloss), radial-gradient(circle at 50% 40%, #8a8698, #5a566a);
}
#ui .throw.empty .n {
  background: linear-gradient(180deg, var(--rd-hi), var(--rd-lo));
  border-color: var(--rd-ink);
}
/* tapped with no ammo: short shake */
#ui .throw.empty-tap {
  animation: throwEmpty 0.32s ease-in-out;
}
@keyframes throwEmpty {
  20%,
  60% {
    translate: -5px 0;
  }
  40%,
  80% {
    translate: 5px 0;
  }
}
#ui .throw.empty svg {
  opacity: 0.5;
  filter: grayscale(1);
}

/* thrown: short jolt and a light ring only on the edge (the general pulse washed out the drawing) */
#ui .throw.shot {
  animation: throwShot 0.4s ease-out;
}
@keyframes throwShot {
  0% {
    transform: scale(1);
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.28),
      inset 0 -5px 0 rgba(0, 0, 0, 0.18),
      0 5px 0 var(--ink),
      0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  35% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.28),
      inset 0 -5px 0 rgba(0, 0, 0, 0.18),
      0 5px 0 var(--ink),
      0 0 0 10px rgba(255, 255, 255, 0);
  }
}

/* short screens (up to 844x390): the card hint on one line (on two, the card grew and covered the hero's head) */
@media (max-height: 420px) {
  #ui .toast.big {
    max-width: min(600px, 84cqw);
  }
  #ui .toast.big .tx {
    max-width: none;
    white-space: nowrap;
    font-size: 14px;
  }
}
/* new enemy/boss portrait: outside the border, like a stamp */
#ui .toast .foe {
  margin-top: -10px;
  translate: 0 -12px;
}
#ui .throw.empty kbd {
  background: #5a5468;
}

/* custom cursor on desktop (phones have no cursor): small purple arrow with ink outline and white
   border outside (the system's white cursor vanished in the snow); golden over clickable things and
   slightly smaller while the button is pressed (aiming) */
@media (pointer: fine) {
  :root {
    --cur:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
<g >\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linejoin='round'/>\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='%238a75ff' stroke='%231a1240' stroke-width='2.4' stroke-linejoin='round'/>\
<path d='M6.2 7 L6.2 20.5' stroke='%23ffffff' stroke-opacity='0.75' stroke-width='1.6' stroke-linecap='round'/>\
<path d='M10.5 20.5 L13.6 27.2' stroke='%234b36c9' stroke-width='1.4' stroke-linecap='round'/>\
</g>\
</svg>")
        4 3,
      default;
    --cur-hand:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
<g >\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linejoin='round'/>\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='%23ffd23a' stroke='%231a1240' stroke-width='2.4' stroke-linejoin='round'/>\
<path d='M6.2 7 L6.2 20.5' stroke='%23ffffff' stroke-opacity='0.75' stroke-width='1.6' stroke-linecap='round'/>\
<path d='M10.5 20.5 L13.6 27.2' stroke='%23c98a12' stroke-width='1.4' stroke-linecap='round'/>\
</g>\
</svg>")
        4 3,
      pointer;
    --cur-down:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
<g transform='translate(4 3) scale(0.86) translate(-4 -3)'>\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linejoin='round'/>\
<path d='M4 3 L4 25 L10 19.5 L14 28.5 L18.5 26.5 L14.5 17.8 L22.5 17.8 Z' fill='%236a54f0' stroke='%231a1240' stroke-width='2.4' stroke-linejoin='round'/>\
<path d='M6.2 7 L6.2 20.5' stroke='%23ffffff' stroke-opacity='0.75' stroke-width='1.6' stroke-linecap='round'/>\
<path d='M10.5 20.5 L13.6 27.2' stroke='%233a26a8' stroke-width='1.4' stroke-linecap='round'/>\
</g>\
</svg>")
        4 3,
      default;
  }
  html,
  body,
  canvas,
  #ui,
  #ui * {
    cursor: var(--cur) !important;
  }
  canvas:active {
    cursor: var(--cur-down) !important;
  }
  #ui button:not([disabled]):not(.off),
  #ui a,
  #ui select,
  #ui label,
  #ui summary,
  #ui input[type='checkbox'],
  #ui input[type='range'],
  #ui .lv,
  #ui .sk {
    cursor: var(--cur-hand) !important;
  }
}

/* boss medallion on the map: no stage sky rain over the portrait */
#ui .map .lv.boss .mini::after {
  display: none;
}

/* idle for 2 s during a stage, the cursor hides (keyboard players don't get an arrow in the middle of the scene) */
@media (pointer: fine) {
  canvas.idle {
    cursor: none !important;
  }
}
/* End of src/ui-roxa-polish.css */
/* End of src/ui-roxa.css */

/* End of dist-static/assets/ui-roxa-B1LSWxTE.css */
