/* NINJOLT interface materials. Raster frame corners preserve the illustration at any button width. */
#ui .btn,
#ui .ibtn {
  border: 12px solid transparent;
  border-image: url('./ui-frame-jade-DuNJc_dQ.webp') 64 fill / 18px / 0 stretch;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff4d3;
  text-shadow: 0 2px 2px #062c2c;
  min-height: 54px;
  padding: 0 16px;
  gap: 9px;
  filter: drop-shadow(0 4px 3px #001e2470);
  transition:
    transform 0.12s,
    filter 0.12s;
}
#ui .btn.green {
  border-image-source: url('./ui-frame-amber-y2YM9poO.webp');
  color: #fff8e3;
  -webkit-text-stroke: 1.5px #55300f;
  paint-order: stroke fill;
  text-shadow: 0 2px 1px #4b250d;
  font-weight: 800;
}
#ui .btn.green span {
  color: #fff8e3;
  -webkit-text-stroke: 1.5px #55300f;
  paint-order: stroke fill;
  text-shadow: 0 2px 1px #4b250d;
}
#ui .btn.big {
  min-height: 66px;
  font-size: 21px;
}
#ui .sheet.stage > *,
#ui .title .menu {
  zoom: var(--menu-scale, 1);
}
#ui .title .menu {
  width: min(400px, calc(100vw - 40px));
  gap: 14px;
}
#ui .title .menu > .btn.big {
  width: 100%;
  min-height: 80px;
  font-size: 32px;
  gap: 14px;
}
#ui .title .menu > .btn.big .ui-icon {
  width: 34px;
  height: 34px;
}
#ui .title .menu > .btn.big span {
  -webkit-text-stroke: 2px #55300f;
}
#ui .title .menu .row {
  width: 100%;
}
#ui .title .menu .row .btn {
  min-width: 0;
  padding-inline: 9px;
  flex: 1;
  font-size: 18px;
  min-height: 62px;
}
#ui .result .actions .row .btn {
  min-width: 0;
  padding-inline: 7px;
  flex: 1;
  font-size: 15px;
}
#ui .title .menu .row .btn span,
#ui .result .actions .row .btn span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#ui .result .actions .row .btn {
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  min-height: 70px;
}
#ui .result .actions .row .btn span {
  overflow-wrap: normal;
}
#ui .btn .ui-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 1px 1px #142c3380);
}
#ui .ibtn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 4px;
  border-width: 6px;
  border-image-source: url('./ui-frame-glass-DLspjhle.webp');
  border-image-width: 14px;
}
#ui .ibtn .ui-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
#ui.keyboard-nav button:focus-visible {
  outline: 3px solid #ffe3a0;
  outline-offset: 4px;
}
#ui:not(.keyboard-nav) button:focus {
  outline: none;
}
#ui button:disabled {
  cursor: default;
}
#ui .btn:active,
#ui .ibtn:active {
  transform: translateY(3px) scale(0.98);
  filter: brightness(0.94);
}
@media (hover: hover) {
  #ui .btn:hover,
  #ui .ibtn:hover {
    filter: brightness(1.12) drop-shadow(0 4px 5px #001e2470);
  }
}
#ui .sheet.stage {
  background: radial-gradient(ellipse at center, #082f37c9 0%, #062c3666 65%, #062c363b);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff4d3;
  gap: 14px;
}
#ui .sheet.stage .stage-title {
  color: #fff1ce;
  text-shadow: 0 3px 2px #092b32;
  -webkit-text-stroke: 0;
  font-size: clamp(30px, 4vw, 44px);
}
#ui .sheet.stage .stage-title.small {
  font-size: clamp(21px, 3vw, 28px);
}
#ui .sheet.stage .stage-sub {
  color: #d6e4da;
  text-shadow: 0 1px 2px #0b3037;
  font-size: 14px;
}
.pause-layout {
  width: min(790px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 52px;
  animation: menu-arrive 0.22s ease-out both;
}
.pause-summary {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}
.pause-logo {
  width: min(240px, 100%);
  height: auto;
  filter: drop-shadow(0 4px 3px #001f2a);
}
.pause-level {
  margin: 0;
  max-width: 300px;
  font-size: 19px;
  font-weight: 700;
  text-wrap: balance;
}
.pause-stars {
  display: flex;
  gap: 10px;
}
.pause-stars span {
  opacity: 0.25;
}
.pause-stars span.on {
  opacity: 1;
}
.pause-stars svg {
  width: 36px;
  height: 36px;
  fill: #ffce58;
  stroke: #b77821;
  stroke-width: 1;
}
.pause-stars span.on {
  background: url('./board-star-C998uTm1.webp') center/contain no-repeat;
}
.pause-stars span.on svg {
  opacity: 0;
}
.pause-moves {
  margin: 0;
  color: #d2ddd0;
  font-size: 14px;
}
#ui .pause .actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pause-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#ui .pause-secondary .btn {
  font-size: 16px;
  min-height: 72px;
  flex-direction: column;
  gap: 4px;
  padding: 3px 6px;
}
#ui .pause-secondary .ui-icon {
  width: 28px;
  height: 28px;
}
#ui .pause-secondary .btn span {
  line-height: 1.1;
  text-align: center;
}
#ui .restart-dialog .stage-sub {
  max-width: 350px;
  font-size: 16px;
}
#ui .restart-dialog .actions {
  width: min(360px, 100%);
  gap: 12px;
}
#ui .hud .pill {
  border-radius: 12px;
  background: #093e43df;
  box-shadow:
    inset 0 0 0 1px #c5a56199,
    0 3px 5px #04242c88;
}
#ui .hud .moves {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 0;
  padding: 4px 12px;
  height: 44px;
  min-width: 136px;
}
#ui .moves b {
  grid-row: 1 / span 2;
  grid-column: 1;
  font-size: 24px;
  line-height: 1;
}
#ui .mv-label {
  grid-row: 1;
  grid-column: 2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}
#ui .moves i {
  grid-row: 2;
  grid-column: 2;
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  color: #f8d78f;
  white-space: nowrap;
}
#ui .moves.past-target i {
  color: #c6d0bd;
}
#ui .hud .stars {
  min-width: 116px;
  height: 44px;
  gap: 5px;
  padding: 0 10px;
}
#ui .hud .stars span {
  width: 28px;
  height: 28px;
}
#ui .hud .stars svg {
  width: 28px;
  height: 28px;
}
#ui .hud-name {
  font-size: 20px;
  line-height: 1.1;
  padding-block: 2px;
  text-shadow: 0 2px 2px #042e37;
  -webkit-text-stroke: 2px #16464d;
}
#ui .hud-name span {
  display: block;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}
#ui .hud {
  gap: 6px 8px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 48px;
}
#ui.wide .hud-name span {
  font-size: 18px !important;
}
@media (min-height: 520px) and (min-aspect-ratio: 1.15/1) {
  #ui.wide .hud {
    left: var(--hud-left, 16px);
    right: auto;
    width: var(--hud-width, calc(100% - 32px));
    bottom: auto;
    padding: 10px 0 0;
    grid-template-rows: 44px 44px;
  }
  #ui.wide .hud.on {
    display: grid;
    align-items: center;
    justify-content: normal;
  }
  #ui.wide .hud-l,
  #ui.wide .hud-r {
    display: contents;
  }
  #ui.wide .hud-name {
    width: auto;
    text-align: center;
  }
  #ui.wide .hud-name span {
    white-space: normal;
    font-size: 20px !important;
  }
  #ui.wide .hud .moves {
    justify-self: end;
  }
  #ui.wide .hud .stars {
    justify-self: start;
  }
  #ui.wide .ibtn {
    width: 48px;
    height: 48px;
  }
}
#ui .sheet.stage.levels {
  background-image: linear-gradient(#082e3a55, #061f3166), url('./board-world-1-GWbuH5TL.webp');
  background-position: center;
  background-size: cover;
  backdrop-filter: none;
}
#ui .sheet.stage.levels[data-region='2'] {
  background-image: linear-gradient(#15263d66, #12264066), url('./board-world-2-BKa-51K4.webp');
}
#ui .sheet.stage.levels[data-region='3'] {
  background-image: linear-gradient(#18274166, #10253b66), url('./board-world-3-nVI60eEX.webp');
}
#ui .world-tabs {
  width: min(620px, 100%);
  gap: 12px;
  align-items: stretch;
}
#ui .world-tab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 66px 1fr auto;
  gap: 5px;
  flex: 1;
  min-width: 0;
  max-width: none;
  border: 1px solid #87afa080;
  border-radius: 12px;
  padding: 5px 5px 9px;
  background: #103b42eb;
  color: #e1e8dc;
  overflow: hidden;
  font: 600 13px/1.15 var(--ui);
  box-shadow: 0 4px 9px #052a3455;
}
#ui .world-thumb {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
}
#ui .world-tab span {
  padding: 0 3px;
  align-self: center;
}
#ui .world-tab small {
  color: #dfc68b;
  font-size: 11px;
}
#ui .world-tab.on {
  border-color: #f2d088;
  box-shadow:
    0 0 0 2px #f2d08888,
    0 5px 12px #04263577;
  background: #265158ed;
  color: #fff0cb;
}
#ui .levels .grid.journey-grid {
  width: min(500px, 100%);
  gap: 24px 14px;
}
#ui .levels .tile {
  border: 9px solid transparent;
  border-image: url('./ui-frame-jade-DuNJc_dQ.webp') 64 fill / 15px / 0 stretch;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff2d3;
  filter: drop-shadow(0 3px 2px #092e37);
}
#ui .levels .tile.full {
  border-image-source: url('./ui-frame-amber-y2YM9poO.webp');
  color: #48310e;
}
#ui .levels .tile.locked {
  filter: grayscale(0.8) brightness(0.65);
  color: #d0ddd2;
}
#ui .levels .tile.next {
  outline: 2px solid #ffe6a3;
  outline-offset: 3px;
}
#ui .route-lock .ui-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
#ui .route-lock {
  width: 20px;
  height: 20px;
  right: -12px;
  bottom: -12px;
  background: #123e43;
  box-shadow: 0 1px 2px #062a31;
}
.wardrobe-layout {
  width: min(850px, 100%);
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 26px;
}
.skin-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}
.outfit-hero {
  width: 210px;
  height: 210px;
  object-fit: contain;
}
.outfit-details small {
  font-size: 12px;
  color: #efd28f;
}
.outfit-details h3 {
  font-family: var(--head);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
  margin: 8px 0;
  max-width: 230px;
  color: #fff1d2;
}
.outfit-details p {
  font-size: 14px;
  color: #cadfd5;
  margin: 0;
}
.outfit-collection {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
#ui .skins .skins-grid {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
#ui .skins .skin {
  border: 1px solid #90b09b55;
  border-radius: 12px;
  background: #0b3845b8;
  box-shadow: none;
  color: #e3ecdf;
  padding: 8px 4px 10px;
  font-size: 12px;
  transition:
    transform 0.12s,
    border-color 0.12s;
}
#ui .skins .skin.on {
  border-color: #f2d189;
  box-shadow: 0 0 0 2px #f2d18988;
  background: #285452d9;
}
#ui .skins .skin.locked {
  opacity: 1;
  filter: none;
  background: #123f49c9;
}
#ui .skins .skin.previewing {
  border-color: #b6eee7;
  box-shadow: inset 0 0 0 1px #b6eee7;
  background: #24535b;
}
#ui .skins .skin.locked canvas {
  filter: saturate(0.65);
  opacity: 0.85;
}
#ui .skins .skin canvas {
  width: min(100%, 72px);
  height: auto;
  aspect-ratio: 1;
}
#ui .skins .skin span {
  line-height: 1.12;
  min-height: 2.3em;
}
#ui .skins .skin .badge {
  font-size: 10px;
  top: -7px;
  padding: 3px 7px;
  width: max-content;
  max-width: calc(100% - 4px);
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.05;
  border-radius: 6px;
  background: #e7c57e;
  color: #263b38;
}
#ui .skins .wardrobe-hint {
  font-size: 12px;
  max-width: 420px;
}
#ui .settings .opt {
  color: #edf1dc;
  text-shadow: 0 1px 1px #163e42;
}
#ui .seg {
  background: #103c47;
  border: 1px solid #7eaa9980;
  box-shadow: none;
}
#ui .seg button {
  color: #d8e9de;
  flex: 1 1 auto;
  padding: 0 3px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.1;
}
#ui .seg button.on {
  background: #e5c47b;
  color: #213b39;
  box-shadow: none;
}
#ui .lang {
  background: #174750;
  color: #e5efdf;
  box-shadow: inset 0 0 0 1px #87ad9e77;
}
#ui .lang.on {
  background: #d6bc7d;
  color: #173a3b;
}
#ui .switch {
  background: #41615c;
  box-shadow: inset 0 0 0 1px #9bb6a477;
}
#ui .switch.on {
  background: #ccaf64;
}
#ui input[type='range'] {
  accent-color: #e3c783;
}
#ui .result .master {
  background: #103f47bd;
  color: #dfebdf;
  box-shadow: inset 0 0 0 1px #9ab59b70;
}
#ui .result .master.won {
  background: #e6c57d;
  color: #3b3218;
}
@keyframes menu-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 650px) {
  #ui .title .menu .row .btn {
    font-size: 15px;
    gap: 6px;
    padding-inline: 6px;
  }
  #ui .title .menu .row .ui-icon {
    width: 22px;
    height: 22px;
  }
  .pause-layout {
    grid-template-columns: 1fr;
    width: min(380px, 100%);
    gap: 24px;
  }
  .pause-summary {
    gap: 10px;
  }
  .pause-logo {
    width: 190px;
  }
  .pause-level {
    font-size: 17px;
  }
  .wardrobe-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .skin-spotlight {
    flex-direction: row;
    gap: 8px;
  }
  .outfit-hero {
    width: 140px;
    height: 140px;
  }
  .outfit-details {
    text-align: left;
  }
  .outfit-details h3 {
    font-size: 23px;
    max-width: 190px;
  }
  #ui .skins .skins-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #ui .world-tabs {
    gap: 7px;
  }
  #ui .world-tab {
    font-size: 11px;
    grid-template-rows: 52px 1fr auto;
  }
  #ui .world-thumb {
    height: 52px;
  }
}
@media (max-height: 640px) and (orientation: portrait) {
  #ui .sheet.stage {
    gap: 10px;
  }
  #ui .sheet.stage .stage-title {
    font-size: 30px;
  }
  .pause-logo {
    width: 150px;
  }
  .pause-summary {
    gap: 8px;
  }
  .pause-layout {
    gap: 18px;
  }
  .pause-stars svg {
    width: 30px;
    height: 30px;
  }
  #ui .pause-secondary .btn {
    min-height: 64px;
  }
  #ui .btn.big {
    min-height: 58px;
  }
  #ui .skins .skins-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  #ui .skins .skin {
    font-size: 10px;
    padding: 5px 2px 6px;
  }
  #ui .skins .skin canvas {
    width: 46px;
  }
  #ui .skins .skin .badge {
    font-size: 9px;
    padding-inline: 2px;
  }
  .outfit-hero {
    width: 96px;
    height: 96px;
  }
  .outfit-details h3 {
    font-size: 19px;
  }
  .outfit-details p {
    font-size: 12px;
  }
  #ui .world-tabs {
    gap: 6px;
  }
  #ui .world-tab {
    grid-template-rows: 42px 1fr auto;
    font-size: 10px;
    padding: 4px 3px 6px;
  }
  #ui .world-thumb {
    height: 42px;
  }
  #ui .levels .grid.journey-grid {
    gap: 18px 10px;
  }
}
@media (max-height: 760px) and (max-width: 650px) and (orientation: portrait) {
  #ui .skins .skins-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  #ui .skins .skin {
    font-size: 10px;
    padding: 5px 2px 6px;
  }
  #ui .skins .skin canvas {
    width: 52px;
  }
  .outfit-hero {
    width: 104px;
    height: 104px;
  }
  .outfit-details h3 {
    font-size: 20px;
  }
}
@media (max-height: 519px) and (orientation: landscape) {
  #ui .sheet.stage {
    gap: 8px;
  }
  #ui .sheet.stage .stage-title {
    font-size: 28px;
  }
  .pause-layout {
    grid-template-columns: 1fr 1.3fr;
    width: min(680px, 100%);
    gap: 30px;
  }
  .pause-logo {
    width: 180px;
  }
  .pause-summary {
    gap: 8px;
  }
  .pause-level {
    font-size: 16px;
  }
  #ui .pause-secondary .btn {
    min-height: 60px;
    font-size: 14px;
    flex-direction: row;
  }
  #ui .pause .actions {
    gap: 12px;
  }
  #ui .btn.big {
    min-height: 56px;
  }
  #ui.wide .hud-l,
  #ui.wide .hud-r {
    width: clamp(150px, 22vw, 210px);
    gap: 8px;
  }
  #ui.wide .hud-name span {
    font-size: 16px !important;
  }
  #ui.wide .hud .moves {
    min-width: 136px;
  }
  #ui.wide .hud-name {
    max-width: 185px;
  }
  #ui .world-tabs {
    width: min(530px, 100%);
    gap: 8px;
  }
  #ui .world-tab {
    grid-template-columns: 50px 1fr;
    grid-template-rows: 1fr auto;
    font-size: 10px;
    padding: 4px;
    gap: 3px;
    min-height: 54px;
  }
  #ui .world-thumb {
    width: 50px;
    height: 45px;
    grid-row: 1 / span 2;
  }
  #ui .world-tab small {
    font-size: 10px;
  }
  #ui .world-tab span {
    font-size: 10px;
  }
  #ui .levels .stage-sub {
    display: none;
  }
  #ui .levels .grid.journey-grid {
    width: 360px;
    gap: 16px 12px;
  }
  #ui .levels .tile {
    min-height: 48px;
    height: 48px;
  }
  #ui .levels .tile b {
    font-size: 22px;
  }
  .wardrobe-layout {
    grid-template-columns: 170px 1fr;
    width: min(750px, 100%);
    gap: 16px;
  }
  .skin-spotlight {
    flex-direction: column;
  }
  .outfit-hero {
    width: 110px;
    height: 110px;
  }
  .outfit-details {
    text-align: center;
  }
  .outfit-details h3 {
    font-size: 18px;
    margin: 3px 0;
  }
  .outfit-details p {
    font-size: 11px;
  }
  #ui .skins .skins-grid {
    gap: 6px;
  }
  #ui .skins .skin {
    font-size: 10px;
    padding: 4px 2px;
  }
  #ui .skins .skin canvas {
    width: 45px;
  }
  #ui .skins .wardrobe-hint {
    font-size: 10px;
  }
}
.less-motion #ui * {
  animation: none !important;
  transition: none !important;
}
@media (min-width: 1000px) and (min-height: 620px) {
  #ui.wide .hud {
    grid-template-columns: calc(48px * var(--menu-scale)) minmax(0, 1fr) minmax(0, 1fr) calc(
        48px * var(--menu-scale)
      );
    grid-template-rows: calc(48px * var(--menu-scale)) calc(48px * var(--menu-scale));
    gap: calc(6px * var(--menu-scale)) calc(8px * var(--menu-scale));
  }
  #ui.wide .hud-l > *,
  #ui.wide .hud-r > * {
    zoom: var(--menu-scale);
  }
  #ui .title .tagline {
    font-size: clamp(24px, 1.7vw, 32px);
  }
  #ui .title .logo-img {
    width: min(800px, 65vw);
  }
  /* Explicit logical height avoids WebKit stretching aspect-ratio tiles under CSS zoom. */
  #ui .levels .grid.journey-grid .tile {
    height: 86px;
    min-height: 86px;
    aspect-ratio: auto;
  }
}
/* Wide, shallow windows keep large actions beside the celebration instead of clipping a tall stack. */
@media (min-width: 1000px) and (min-height: 461px) and (max-height: 1020px) {
  #ui .levels .stage-sub {
    display: none;
  }
  #ui .sheet.stage.result {
    display: grid;
    grid-template-columns: calc(320px * var(--menu-scale, 1)) calc(350px * var(--menu-scale, 1));
    grid-template-rows: auto auto auto;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    gap: 18px 36px;
  }
  #ui .result > .stage-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  #ui .result > .big-stars {
    grid-column: 1;
    grid-row: 2;
  }
  #ui .result > .hero-cheer {
    grid-column: 1;
    grid-row: 3;
  }
  #ui .result > .score-row {
    grid-column: 2;
    grid-row: 2;
  }
  #ui .result > .actions {
    grid-column: 2;
    grid-row: 3;
  }
}

/* End of ui-polish.css */

/* End of dist-static/assets/ui-polish-Bn87oRNe.css */
