/* ==========================================================================
   2048 Burger Diner - layout: this file positions every screen.
   All sizes use the --u unit: 1u = 1% of the design frame, which is 100 x 177.68u in portrait
   and 177.68 x 100u in landscape. Each piece is anchored to its nearest screen edge.
   Selectors use `html body:not(#z)` so these rules win over the earlier style sheets without !important.
   To move or resize a piece, edit its numbers here.
   ========================================================================== */
:root {
  --u: min(1vw, 0.5628vh);
}
@media (orientation: landscape) {
  :root {
    --u: min(0.5628vw, 1vh);
  }
}

/* every screen is a frame with absolutely positioned pieces (no grid, no flow) */
html body:not(#z) .play {
  --u: inherit;
  display: block;
}
html body:not(#z) .screen {
  display: block;
}
html body:not(#z) .menu-actions,
html body:not(#z) .rrow,
html body:not(#z) .hud-top,
html body:not(#z) .plates,
html body:not(#z) .gauge,
html body:not(#z) .win-actions,
html body:not(#z) .stats,
html body:not(#z) .row3 {
  display: contents;
}
html body:not(#z) .overlay,
html body:not(#z) .modal {
  inset: var(--sat) var(--sar) var(--sab) var(--sal);
  padding: 0;
  display: block;
}
html body:not(#z) .modal-backdrop,
html body:not(#z) .win-bg {
  inset: calc(var(--sat) * -1) calc(var(--sar) * -1) calc(var(--sab) * -1) calc(var(--sal) * -1);
}
html body:not(#z) .overlay-over {
  background: transparent;
}
/* every open window dims the background so nothing shows through behind it */
html body:not(#z) .modal-backdrop {
  background: rgba(2, 8, 24, 0.66);
}
html body:not(#z) .card {
  display: block;
  padding: 0;
  gap: 0;
  margin: 0;
}
html body:not(#z) .hint {
  display: none;
}
/* text is never clipped (outline and the tails of g, y, p stay whole) and sits slightly higher: the font settles low in its box */
html body:not(#z) .fit {
  overflow: visible;
  min-width: 0;
  translate: 0 -0.06em;
}
html body:not(#z) .s-label.wrap {
  text-align: left;
}
html body:not(#z) .s-label {
  flex: 0 1 auto;
  margin-right: calc(var(--u) * 2);
}
html body:not(#z) .play .plate b,
html body:not(#z) #overlay-over .stat b,
html body:not(#z) .win-num span {
  translate: 0 -0.06em;
}
html body:not(#z) .g-top {
  display: none;
}

/* round button: whole art, not stretched */
html body:not(#z) .rbtn {
  background-size: contain;
  container-type: size;
}
html body:not(#z) .rbtn .ico {
  width: 56cqh;
  height: 56cqh;
  margin: -3cqh 0 0;
}
html body:not(#z) #btn-undo .ico {
  width: 46cqh;
  height: 46cqh;
  margin: 0;
}
html body:not(#z) #btn-undo .rlabel {
  margin: 0;
  line-height: 1;
  max-width: 70%;
}

/* long button and plates: the text stays in the usable area (without the round ends), always centered */
/* (cq* units only work on children: the breathing room lives on the text, not on the button padding) */
html body:not(#z) .pbtn {
  container-type: size;
  padding: 0;
  gap: 0;
  line-height: 1;
}
html body:not(#z) .pbtn > .lbl {
  font-size: 42cqh;
  line-height: 1;
  max-width: calc(100cqw - 64cqh);
}
html body:not(#z) .pbtn > .ico ~ .lbl {
  max-width: calc(100cqw - 130cqh);
  margin-left: 14cqh;
}
html body:not(#z) #set-lang-open > .ico {
  width: 46cqh;
  height: 46cqh;
}
html body:not(#z) #set-lang-open > .ico ~ .lbl {
  max-width: calc(100cqw - 137cqh);
  margin-left: 10cqh;
  font-size: 38cqh;
}
html body:not(#z) #set-lang-open > .lbl + .arrow {
  margin-left: 10cqh;
  border-left-width: 18cqh;
  border-top-width: 13cqh;
  border-bottom-width: 13cqh;
}
html body:not(#z) #over-undo > .ico {
  width: 40cqh;
  height: 40cqh;
}
html body:not(#z) #over-undo > .ico ~ .lbl {
  max-width: calc(100cqw - 108cqh);
  margin-left: 10cqh;
}
html body:not(#z) .pbtn > .lbl + .arrow {
  margin-left: 12cqh;
}
html body:not(#z) .pbtn > .ico {
  width: 56cqh;
  height: 56cqh;
}
html body:not(#z) .pbtn > .arrow {
  border-left-width: 20cqh;
  border-top-width: 15cqh;
  border-bottom-width: 15cqh;
}
html body:not(#z) .plate {
  container-type: size;
  min-width: 0;
  padding: 0;
  gap: 0;
}
html body:not(#z) .plate > * {
  max-width: calc(100cqw - 90cqh);
}
html body:not(#z) .play .plate {
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
html body:not(#z) .play .plate .plate-label,
html body:not(#z) .play .plate b {
  line-height: 0.92;
}
/* label and number as a fraction of the plate height: both always fit inside the art */
html body:not(#z) .play .plate .plate-label {
  font-size: 29cqh;
}
html body:not(#z) .play .plate b {
  font-size: 41cqh;
}
/* best-score badge: sits in place of the label, inside the plate itself (does not cover the points) */
html body:not(#z) .play .badge {
  top: 8cqh;
  right: auto;
  left: 50%;
  translate: -50% 0;
  max-width: calc(100cqw - 56cqh);
  padding: 2cqh 6cqw;
  border-width: calc(var(--u) * 0.3);
  font-size: 26cqh;
  line-height: 1;
  transform: scale(0);
  z-index: 3;
}
html body:not(#z) .play .badge.show {
  transform: scale(1);
}
html body:not(#z) .play .badge .fit {
  max-width: calc(100cqw - 56cqh - 12cqw - var(--u) * 0.6);
  font-size: 26cqh;
  line-height: 1;
  translate: 0 -0.04em;
}
html body:not(#z) .best-plate,
html body:not(#z) .win-plate {
  flex-direction: row;
  align-items: center;
}
html body:not(#z) .best-plate .plate-label,
html body:not(#z) .win-plate .plate-label {
  color: #fff;
  text-shadow: var(--tsh);
  font-weight: 700;
}
/* Best/Score: label and number on a single line that shrinks together (and wraps onto two lines if the language is long) */
html body:not(#z) .prow {
  max-width: calc(100cqw - 56cqh);
  text-align: center;
  line-height: 1;
}
html body:not(#z) .prow > * {
  font-size: 1em;
  margin: 0;
}

/* straight title plate (replaces the curved ribbon): live text centered on both axes */
html body:not(#z) .title-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  padding: 0;
  background: center / 100% 100% no-repeat;
  z-index: 2;
  pointer-events: none;
}
html body:not(#z) .title-plate .rt {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  max-width: calc(100cqw - 92cqh);
  margin: 0;
  display: block;
  font-size: 52cqh;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  text-shadow: var(--tsh);
}
html body:not(#z) .title-plate .rt.wrap {
  white-space: normal;
  line-height: 0.95;
  overflow: visible;
}
html body:not(#z) .card-blip {
  z-index: 1;
}

/* 2048 on the win screen */
html body:not(#z) .win-num {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}
html body:not(#z) .win-num span {
  line-height: 1;
  translate: 0 -0.01em;
}

/* progress trail: "Start" plate, track with fill, marker, goal at the end */
html body:not(#z) .g-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  padding: 0;
  background: center / 100% 100% no-repeat;
  border-radius: 0;
  max-width: none;
}
html body:not(#z) .g-bot .fit {
  line-height: 1;
  max-width: calc(100cqw - 60cqh);
  translate: none;
}
html body:not(#z) .g-end {
  display: block;
}
/* trail marker: a small dot with the mascot's face (the full body hid the number) */
html body:not(#z) .g-blip {
  z-index: 2;
  border-radius: 50%;
  object-fit: cover;
  background: #14484f;
  border: calc(var(--u) * 0.55) solid #f2c14e;
  box-shadow: 0 calc(var(--u) * 0.4) calc(var(--u) * 0.6) rgba(4, 12, 34, 0.45);
}
html body:not(#z) #depth-value {
  z-index: 3;
}
/* the in-game mascot looks at the board (he sits on the right, so he turns left) */
html body:not(#z) #blip {
  scale: -1 1;
}
@media (orientation: portrait) {
  html body:not(#z) .g-tube {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: url(../assets/ui/track.webp) center / 100% 100% no-repeat;
  }
  html body:not(#z) .g-tube::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../assets/ui/fill.webp) center / 100% 100% no-repeat;
    clip-path: inset(0 calc(100% - 100% * var(--p)) 0 0 round 99px);
    transition: clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* landscape: the small logo hugs the bottom of its box (so it does not touch the pause button) */
@media (orientation: landscape) {
  html body:not(#z) #screen-play .logo-s {
    object-position: 50% 100%;
  }
}

/* board: the frame is the whole border; the gap for the tiles sits in the middle (frameFit / frameHole = 1.165) */
html body:not(#z) #stage {
  display: block;
}
html body:not(#z) #stage {
  container-type: size;
}
html body:not(#z) #stage .board {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(85.84cqw, 85.84cqh);
  height: min(85.84cqw, 85.84cqh);
  translate: -50% -50%;
}
html body:not(#z) .combo {
  top: 2%;
  right: 2%;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  padding: 0;
  background: none;
  color: #ffd23a;
  font-size: calc(var(--u) * (4.2 + var(--n, 2) * 0.42));
  transform: scale(0);
  transform-origin: 100% 0;
  transition: transform 0.16s ease;
}
html body:not(#z) .combo.on {
  transform: scale(1);
}
html body:not(#z) .combo.on.bump {
  animation: combo-stamp 0.34s cubic-bezier(0.2, 1.5, 0.4, 1);
}
html body:not(#z) .combo .fit {
  font-size: 0.6em;
  color: #fff;
}
html body:not(#z) .combo b {
  font-size: 1.3em;
}
/* The milestone ribbon uses the same corner: the combo waits for it to leave. */
html body:not(#z) #screen-play:has(.milestone.show) .combo {
  opacity: 0;
}
html body:not(#z) .milestone {
  left: 50%;
  top: -4%;
  width: 74%;
  height: 13%;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  padding: 0;
  background: center / 100% 100% no-repeat;
}
html body:not(#z) .m-text {
  position: static;
  inset: auto;
  height: auto;
  max-width: calc(100cqw - 90cqh);
  font-size: 46cqh;
  line-height: 1;
  white-space: nowrap;
}
html body:not(#z) .m-text.wrap {
  white-space: normal;
  line-height: 0.95;
}
html body:not(#z) .m-num {
  top: -30cqh;
  font-size: 34cqh;
}

/* on/off switch: two whole track arts (off/on) and the knob sliding from one end to the other, in proportion to the art */
html body:not(#z) .tg {
  position: relative;
  display: block;
  background: url(../assets/ui/switch-off.webp) center / 100% 100% no-repeat;
  pointer-events: none;
}
html body:not(#z) .tg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(../assets/ui/switch-on.webp) center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.16s ease;
}
html body:not(#z) input:checked ~ .tg::before {
  opacity: 1;
}
html body:not(#z) .tg::after {
  content: '';
  position: absolute;
  top: calc(var(--h) * 0.15);
  left: calc(var(--h) * 0.15);
  width: calc(var(--h) * 0.7);
  height: calc(var(--h) * 0.7);
  background: url(../assets/ui/knob.webp) center / contain no-repeat;
  transition: left 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
html body:not(#z) input:checked ~ .tg::after {
  left: calc(100% - var(--h) * 0.85);
}
html body:not(#z) .is-reduced .tg::after,
html body:not(#z) .is-reduced .tg::before {
  transition-duration: 0.01s;
}

/* the language button in settings shows the globe (the rows hide their own icons) */
html body:not(#z) #set-lang-open .ico {
  display: block;
}
/* settings and languages opened from the menu: the menu leaves so the background is clean; opened from a game, the game stays behind */
html body:has(#modal-settings.show, #modal-sound.show, #modal-lang.show) #screen-menu {
  opacity: 0;
}

/* game over: the board moves up to its game-over position and the in-game HUD leaves */
html
  body:not(#z)
  .app[data-over='1']
  :is(
    #btn-pause,
    #btn-sound,
    #btn-settings,
    #blip-shadow,
    #score-card,
    #best-card,
    .g-bot,
    .g-tube,
    .g-end,
    #depth-value,
    #btn-undo,
    #blip,
    .combo
  ) {
  display: none;
}

/* game-over boxes: stacked, centered text */
html body:not(#z) #overlay-over .stat {
  container-type: size;
  justify-content: center;
  padding: 0;
  background: linear-gradient(#1a5c63, #0f3a40);
  border: calc(var(--u) * 0.7) solid #f2c14e;
  border-radius: calc(var(--u) * 2.4);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 0.5) #0a2d33,
    0 calc(var(--u) * 0.5) 0 rgba(4, 12, 34, 0.45);
}
html body:not(#z) #overlay-over .stat .plate-label,
html body:not(#z) #overlay-over .stat b {
  line-height: 1;
}
html body:not(#z) #over-tile-img {
  width: auto;
  margin: 2cqh 0 -6cqh;
}
html body:not(#z) #over-best .star {
  display: none;
} /* the badge is just the orange pill */
html body:not(#z) #over-best {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: max-content;
  max-width: 86cqw;
  white-space: nowrap;
  border-radius: 99px;
  margin-top: 3cqh;
  transform: none;
}
/* ---------- Game feel: animations and effects ---------- */
html body:not(#z) .juice {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 35;
}
html body:not(#z) .bg {
  inset: -5px;
  will-change: transform;
}
@keyframes combo-stamp {
  0% {
    transform: scale(1.7);
  }
  55% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes m-stamp {
  0% {
    transform: translate(-50%, 0) scale(1.5);
    opacity: 0;
  }
  45% {
    transform: translate(-50%, 0) scale(0.96);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}
html body:not(#z) .milestone.show {
  animation: m-stamp 0.42s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes coin-hit {
  0%,
  100% {
    scale: 1;
  }
  40% {
    scale: 1.035;
  }
}
html body:not(#z) .plate.coin-hit {
  animation: coin-hit 0.16s ease-out;
}
@keyframes gb-hop {
  0%,
  100% {
    scale: 1;
  }
  35% {
    scale: 1.24;
  }
}
@keyframes ge-rock {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -7deg;
  }
  60% {
    rotate: 5deg;
  }
}
html body:not(#z) .gauge.adv .g-blip {
  animation: gb-hop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
html body:not(#z) .gauge.adv .g-end {
  animation: ge-rock 0.8s ease-in-out;
  transform-origin: 50% 85%;
}

/* living mascot: each mood has its own loop, growing from the feet (stays within +-8%) */
@keyframes cap-idle {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.012, 1.035);
  }
}
@keyframes cap-cheer {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  32% {
    transform: translateY(-5%) scale(0.98, 1.04);
  }
  64% {
    transform: translateY(0) scale(1.05, 0.96);
  }
}
@keyframes cap-hype {
  0%,
  100% {
    transform: rotate(-1.2deg) scale(1.03);
  }
  50% {
    transform: rotate(1.2deg) scale(1.03);
  }
}
@keyframes cap-worry {
  0%,
  100% {
    transform: rotate(-0.7deg);
  }
  50% {
    transform: rotate(0.7deg) scale(0.99, 1.012);
  }
}
@keyframes cap-grumpy {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-1.6%);
  }
  75% {
    transform: translateX(1.6%);
  }
}
html body:not(#z) :is(#blip, .menu .blip.big, .card-blip) {
  transform-origin: 50% 100%;
  animation: cap-idle 3.2s ease-in-out infinite;
}
html body:not(#z) #blip[data-mood='joy'] {
  animation: cap-cheer 0.5s ease-in-out infinite;
}
html body:not(#z) #blip[data-mood='wow'] {
  animation: cap-hype 0.32s ease-in-out infinite;
}
html body:not(#z) #blip[data-mood='worry'] {
  animation: cap-worry 1.5s ease-in-out infinite;
}
html body:not(#z) #blip[data-mood='grumpy'] {
  animation: cap-grumpy 0.2s ease-in-out 3;
}
html body:not(#z) .cap-shadow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(24, 22, 26, 0.46), rgba(24, 22, 26, 0));
}
html.is-reduced body:not(#z) :is(#blip, .menu .blip.big, .card-blip, .g-blip, .g-end, .combo, .milestone, .plate) {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  html body:not(#z) :is(#blip, .menu .blip.big, .card-blip, .g-blip, .g-end, .combo, .milestone, .plate) {
    animation: none;
  }
}
/* ---------- Intro and menu entrance ---------- */
html body:not(#z) .tap-start {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
html body:not(#z) .tap-plate .rt {
  font-size: 40cqh;
}
@keyframes tap-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }
  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}
@keyframes tap-in {
  0% {
    transform: translateY(40%) scale(0.7);
    opacity: 0;
  }
  65% {
    transform: translateY(-4%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 0.86;
  }
}
@keyframes tap-out {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  35% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}
@keyframes logo-in {
  0% {
    transform: translateY(-65%) scale(0.72);
    opacity: 0;
  }
  62% {
    transform: translateY(4%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes logo-punch {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
  }
}
@keyframes cap-in {
  0% {
    transform: translateY(26%) scale(0.72);
    opacity: 0;
  }
  62% {
    transform: translateY(-3%) scale(1.04, 1.03);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes sombra-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes menu-in {
  0% {
    transform: translateY(42%) scale(0.6);
    opacity: 0;
  }
  62% {
    transform: translateY(-5%) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
html body:not(#z) .menu[data-fase='start'] :is(#btn-play, .best-plate, #menu-sound, #menu-settings) {
  opacity: 0;
  pointer-events: none;
}
html body:not(#z) .menu[data-fase='start'] .logo {
  animation:
    logo-in 0.75s cubic-bezier(0.2, 1.1, 0.4, 1) both,
    bob 4s ease-in-out 0.75s infinite;
}
html body:not(#z) .menu[data-fase='start'] .blip.big {
  animation:
    cap-in 0.62s cubic-bezier(0.2, 1.1, 0.4, 1) 0.16s both,
    cap-idle 3.2s ease-in-out 0.8s infinite;
}
html body:not(#z) .menu[data-fase='start'] #menu-shadow {
  animation: sombra-in 0.5s ease-out 0.2s both;
}
html body:not(#z) .menu[data-fase='start'] .tap-plate {
  animation:
    tap-in 0.55s cubic-bezier(0.2, 1.1, 0.4, 1) 0.48s both,
    tap-pulse 1.7s ease-in-out 1.05s infinite;
}
html body:not(#z) .menu[data-fase='enter'] .tap-plate {
  animation: tap-out 0.3s ease-in both;
}
html body:not(#z) .menu[data-fase='enter'] .logo {
  animation: logo-punch 0.42s ease-out;
}
html body:not(#z) .menu[data-fase='enter'] .blip.big {
  animation:
    cap-cheer 0.5s ease-in-out 2,
    cap-idle 3.2s ease-in-out 1s infinite;
}
html body:not(#z) .menu[data-fase='enter'] :is(#btn-play, .best-plate, #menu-sound, #menu-settings) {
  animation: menu-in 0.5s cubic-bezier(0.2, 1.1, 0.4, 1) both;
}
html body:not(#z) .menu[data-fase='enter'] #btn-play {
  animation-delay: 0.14s;
}
html body:not(#z) .menu[data-fase='enter'] .best-plate {
  animation-delay: 0.27s;
}
html body:not(#z) .menu[data-fase='enter'] #menu-sound {
  animation-delay: 0.42s;
}
html body:not(#z) .menu[data-fase='enter'] #menu-settings {
  animation-delay: 0.5s;
}
html.is-reduced
  body:not(#z)
  .menu[data-fase]
  :is(.logo, .blip.big, #menu-shadow, #btn-play, .best-plate, #menu-sound, #menu-settings) {
  animation: none;
}
html.is-reduced body:not(#z) .menu[data-fase='start'] .tap-plate {
  animation: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html
    body:not(#z)
    .menu[data-fase]
    :is(.logo, .blip.big, #menu-shadow, #btn-play, .best-plate, #menu-sound, #menu-settings) {
    animation: none;
  }
  html body:not(#z) .menu[data-fase='start'] .tap-plate {
    animation: none;
    opacity: 1;
  }
}
/* Screen-by-screen positions start here. */

@media (orientation: portrait) {
  /* 01-menu */
  html body:not(#z) #screen-menu .logo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 60);
    height: calc(var(--u) * 32.16);
    left: calc(50% + var(--u) * -29.8);
    right: auto;
    top: calc(50% + var(--u) * -81.2);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #screen-menu .blip.big {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 42.5);
    height: calc(var(--u) * 55.97);
    left: calc(50% + var(--u) * -21.8);
    right: auto;
    top: calc(50% + var(--u) * -50.11);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #btn-play {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 64.8);
    height: calc(var(--u) * 19.37);
    left: calc(50% + var(--u) * -33);
    right: auto;
    top: calc(50% + var(--u) * 15.99);
    bottom: auto;
  }
  html body:not(#z) #menu-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.4);
    height: calc(var(--u) * 11.4);
    right: calc(var(--u) * 3.5);
    left: auto;
    top: calc(var(--u) * 17.41);
    bottom: auto;
  }
  html body:not(#z) #menu-sound {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.4);
    height: calc(var(--u) * 11.4);
    right: calc(var(--u) * 3.5);
    left: auto;
    top: calc(var(--u) * 3.91);
    bottom: auto;
  }
  html body:not(#z) #screen-menu .best-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 62.9);
    height: calc(var(--u) * 15.81);
    left: calc(50% + var(--u) * -31.9);
    right: auto;
    top: calc(50% + var(--u) * 40.87);
    bottom: auto;
  }
  html body:not(#z) #play-label {
    font-size: calc(var(--u) * 10.99);
  }
  html body:not(#z) #screen-menu .best-plate .prow {
    font-size: calc(var(--u) * 8.88);
  }
  html body:not(#z) #menu-shadow {
    width: calc(var(--u) * 28.05);
    height: calc(var(--u) * 5.53);
    left: calc(50% + var(--u) * -14.57);
    top: calc(50% + var(--u) * 2.22);
  }
  html body:not(#z) .tap-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 68.69);
    height: calc(var(--u) * 16.66);
    left: calc(50% + var(--u) * -34.94);
    top: calc(50% + var(--u) * 28.01);
  }
  /* 02-partida */
  html body:not(#z) #btn-pause {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.4);
    height: calc(var(--u) * 11.4);
    left: calc(var(--u) * 4.1);
    right: auto;
    top: calc(var(--u) * 7.46);
    bottom: auto;
  }
  html body:not(#z) #screen-play .logo-s {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 38.3);
    height: calc(var(--u) * 20.61);
    left: calc(50% + var(--u) * -19.1);
    right: auto;
    top: calc(var(--u) * 2.13);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #btn-sound {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.4);
    height: calc(var(--u) * 11.4);
    right: calc(var(--u) * 17);
    left: auto;
    top: calc(var(--u) * 7.46);
    bottom: auto;
  }
  html body:not(#z) #btn-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.4);
    height: calc(var(--u) * 11.4);
    right: calc(var(--u) * 4.1);
    left: auto;
    top: calc(var(--u) * 7.46);
    bottom: auto;
  }
  html body:not(#z) #score-card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 38.9);
    height: calc(var(--u) * 11.37);
    left: calc(var(--u) * 9.8);
    right: auto;
    top: calc(var(--u) * 25.05);
    bottom: auto;
  }
  html body:not(#z) #best-card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 39);
    height: calc(var(--u) * 11.37);
    right: calc(var(--u) * 9.6);
    left: auto;
    top: calc(var(--u) * 25.05);
    bottom: auto;
  }
  html body:not(#z) #screen-play .g-bot {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 23.9);
    height: calc(var(--u) * 9.42);
    left: calc(var(--u) * 5.3);
    right: auto;
    top: calc(var(--u) * 41.22);
    bottom: auto;
  }
  html body:not(#z) #screen-play .g-tube {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 49.8);
    height: calc(var(--u) * 5.86);
    left: calc(50% + var(--u) * -17.9);
    right: auto;
    top: calc(var(--u) * 43.71);
    bottom: auto;
  }
  html body:not(#z) #screen-play .g-end {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 12.6);
    height: calc(var(--u) * 11.55);
    right: calc(var(--u) * 7.6);
    left: auto;
    top: calc(var(--u) * 40.16);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #stage {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 88.9);
    height: calc(var(--u) * 92.39);
    left: calc(50% + var(--u) * -44.5);
    right: auto;
    top: calc(50% + var(--u) * -35);
    bottom: auto;
  }
  html body:not(#z) #btn-undo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 20.57);
    height: calc(var(--u) * 20.57);
    left: calc(50% + var(--u) * -14.83);
    right: auto;
    bottom: calc(var(--u) * 8.28);
    top: auto;
  }
  html body:not(#z) #blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 24.5);
    height: calc(var(--u) * 34.47);
    right: calc(var(--u) * 10.8);
    left: auto;
    bottom: calc(var(--u) * 0.53);
    top: auto;
    object-fit: contain;
  }
  html body:not(#z) #depth-value {
    font-size: calc(var(--u) * 5.17);
  }
  html body:not(#z) #btn-undo .rlabel {
    font-size: calc(var(--u) * 4.72);
  }
  html body:not(#z) #blip-shadow {
    width: calc(var(--u) * 16.17);
    height: calc(var(--u) * 3.19);
    right: calc(var(--u) * 14.96);
    bottom: calc(var(--u) * -0.55);
  }
  html body:not(#z) #screen-play .g-blip {
    width: calc(var(--u) * 7.46);
    height: calc(var(--u) * 7.46);
  }
  html body:not(#z) #depth-value {
    position: absolute;
    left: calc(50% + var(--u) * (-17.9 + 49.8 * var(--p)));
    top: calc(var(--u) * 38.2);
    height: calc(var(--u) * 4.44);
    transform: translateX(-50%);
    padding: 0 calc(var(--u) * 2.22);
    display: flex;
    align-items: center;
    line-height: 1;
  }
  html body:not(#z) #screen-play .g-bot .fit {
    font-size: calc(var(--u) * 4.71);
  }
  /* 03-pausa */
  html body:not(#z) #modal-pause .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 79.6);
    height: calc(var(--u) * 99.32);
    left: calc(50% + var(--u) * -41.5);
    right: auto;
    top: calc(50% + var(--u) * -36.78);
    bottom: auto;
  }
  html body:not(#z) #modal-pause .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 61.4);
    height: calc(var(--u) * 16.52);
    left: calc(var(--u) * 10.6);
    top: calc(var(--u) * -14.93);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-pause .card-blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 27.5);
    height: calc(var(--u) * 31.8);
    left: calc(var(--u) * 44.5);
    top: calc(var(--u) * -43.71);
    right: auto;
    bottom: auto;
    object-fit: cover;
    object-position: 50% 0;
  }
  html body:not(#z) #pause-continue {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 58.5);
    height: calc(var(--u) * 17.77);
    left: calc(var(--u) * 10.4);
    top: calc(var(--u) * 14.93);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-restart {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 58.5);
    height: calc(var(--u) * 18.12);
    left: calc(var(--u) * 10.4);
    top: calc(var(--u) * 34.83);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 58.5);
    height: calc(var(--u) * 18.12);
    left: calc(var(--u) * 10.4);
    top: calc(var(--u) * 55.08);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 56.8);
    height: calc(var(--u) * 14.93);
    left: calc(var(--u) * 11.3);
    top: calc(var(--u) * 75.34);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-title {
    font-size: calc(var(--u) * 11.37);
  }
  html body:not(#z) #modal-pause .card .pbtn > .lbl {
    font-size: calc(var(--u) * 6.75);
  }
  /* 04-ajustes */
  html body:not(#z) #modal-settings .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 90.8);
    height: calc(var(--u) * 95.3);
    left: calc(50% + var(--u) * -45.5);
    right: auto;
    top: calc(50% + var(--u) * -51.2);
    bottom: auto;
  }
  html body:not(#z) #modal-settings .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 57);
    height: calc(var(--u) * 13.86);
    left: calc(var(--u) * 16.8);
    top: calc(var(--u) * 9.06);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 22.24);
    height: calc(var(--u) * 22.24);
    left: calc(var(--u) * 34.03);
    top: calc(var(--u) * 80.62);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #settings-title,
  html body:not(#z) #sound-title {
    font-size: calc(var(--u) * 7.67);
  }
  html body:not(#z) #modal-settings .s-label,
  html body:not(#z) #modal-sound .s-label {
    font-size: calc(var(--u) * 6.79);
  }
  html body:not(#z) #modal-settings .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 90.8);
    height: calc(var(--u) * 95.3);
    left: calc(50% + var(--u) * -45.5);
    top: calc(50% + var(--u) * -51.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .title-plate {
    position: absolute;
    margin: 0;
    left: calc(var(--u) * 16.8);
    top: calc(var(--u) * 9.06);
    width: calc(var(--u) * 57);
    height: calc(var(--u) * 13.86);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 22.24);
    height: calc(var(--u) * 22.24);
    left: calc(var(--u) * 34.03);
    top: calc(var(--u) * 80.62);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .rows {
    position: absolute;
    left: calc(var(--u) * 9.4);
    top: calc(var(--u) * 23.75);
    width: calc(var(--u) * 71.8);
    height: calc(var(--u) * 55.26);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  html body:not(#z) #modal-sound .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 90.8);
    height: calc(var(--u) * 76.88);
    left: calc(50% + var(--u) * -45.5);
    top: calc(50% + var(--u) * -41.99);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .title-plate {
    position: absolute;
    margin: 0;
    left: calc(var(--u) * 16.8);
    top: calc(var(--u) * 9.06);
    width: calc(var(--u) * 57);
    height: calc(var(--u) * 13.86);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 22.24);
    height: calc(var(--u) * 22.24);
    left: calc(var(--u) * 34.03);
    top: calc(var(--u) * 62.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .rows {
    position: absolute;
    left: calc(var(--u) * 9.4);
    top: calc(var(--u) * 23.75);
    width: calc(var(--u) * 71.8);
    height: calc(var(--u) * 36.84);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  html body:not(#z) :is(#modal-settings, #modal-sound) .srow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--u) * 18.42);
    min-height: 0;
    flex: none;
    padding: 0 calc(var(--u) * 0) 0 calc(var(--u) * 1.1);
    border-bottom: calc(var(--u) * 0.89) solid rgba(110, 220, 255, 0.3);
  }
  html body:not(#z) :is(#modal-settings, #modal-sound) .srow:last-child {
    border-bottom: 0;
  }
  html body:not(#z) #modal-sound .slider {
    --k: calc(var(--u) * 8);
    --r: calc(var(--u) * 0.87);
    width: calc(var(--u) * 41);
    height: calc(var(--u) * 8);
    flex: none;
  }
  html body:not(#z) #modal-sound .slider .trk {
    left: 0;
    width: 100%;
    top: 50%;
    height: calc(var(--u) * 4.96);
    transform: translateY(-50%);
  }
  html body:not(#z) #modal-sound .slider .fil {
    left: var(--r);
    right: var(--r);
    width: auto;
    top: calc(50% - var(--u) * 1.61);
    height: calc(var(--u) * 3.22);
    transform: none;
    clip-path: inset(
      0 calc(100% - (var(--k) / 2 - var(--r)) - (100% + 2 * var(--r) - var(--k)) * var(--v)) 0 0 round 99px
    );
  }
  html body:not(#z) #modal-sound .slider .knob {
    width: var(--k);
    height: var(--k);
    left: calc((100% - var(--k)) * var(--v));
  }
  html body:not(#z) #modal-settings .tg {
    --h: calc(var(--u) * 10.66);
    width: calc(var(--u) * 20.52);
    height: var(--h);
    flex: none;
    margin-right: 0;
  }
  html body:not(#z) #set-lang-open {
    width: calc(var(--u) * 38.43);
    height: calc(var(--u) * 13.68);
    flex: none;
    margin-right: 0;
  }
  /* 05-idiomas */
  html body:not(#z) #modal-lang .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 85.5);
    height: calc(var(--u) * 120.64);
    left: calc(50% + var(--u) * -42.8);
    right: auto;
    top: calc(50% + var(--u) * -60.94);
    bottom: auto;
  }
  html body:not(#z) #modal-lang .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 55.3);
    height: calc(var(--u) * 12.97);
    left: calc(var(--u) * 15.1);
    top: calc(var(--u) * 3.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-lang .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 19.23);
    height: calc(var(--u) * 19.23);
    left: calc(var(--u) * 32.93);
    top: calc(var(--u) * 109.16);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #lang-title {
    font-size: calc(var(--u) * 7.61);
  }
  html body:not(#z) #lang-list {
    position: absolute;
    left: calc(var(--u) * 8.8);
    top: calc(var(--u) * 20.79);
    width: calc(var(--u) * 68.2);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    column-gap: calc(var(--u) * 2.9);
    row-gap: calc(var(--u) * 2.49);
  }
  html body:not(#z) #lang-list .pbtn {
    width: calc(var(--u) * 32.4);
    height: calc(var(--u) * 10.31);
    flex: none;
  }
  /* 06-vitoria */
  html body:not(#z) #overlay-win .golden {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 60);
    height: calc(var(--u) * 70.36);
    left: calc(50% + var(--u) * -29.3);
    right: auto;
    top: calc(var(--u) * 2.67);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #overlay-win .win-num {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 69.3);
    height: calc(var(--u) * 19.9);
    left: calc(50% + var(--u) * -34.8);
    right: auto;
    top: calc(50% + var(--u) * -14.93);
    bottom: auto;
  }
  html body:not(#z) #overlay-win .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 86.6);
    height: calc(var(--u) * 13.15);
    left: calc(50% + var(--u) * -43.4);
    right: auto;
    top: calc(50% + var(--u) * 7.11);
    bottom: auto;
  }
  html body:not(#z) #win-continue {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 63.2);
    height: calc(var(--u) * 15.28);
    left: calc(50% + var(--u) * -31.9);
    right: auto;
    bottom: calc(var(--u) * 50.46);
    top: auto;
  }
  html body:not(#z) #win-new {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 63.2);
    height: calc(var(--u) * 15.1);
    left: calc(50% + var(--u) * -31.9);
    right: auto;
    bottom: calc(var(--u) * 33.23);
    top: auto;
  }
  html body:not(#z) #overlay-win .win-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 63.2);
    height: calc(var(--u) * 12.08);
    left: calc(50% + var(--u) * -31.9);
    right: auto;
    bottom: calc(var(--u) * 18.66);
    top: auto;
  }
  html body:not(#z) #win-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 13.11);
    height: calc(var(--u) * 13.11);
    right: calc(var(--u) * 2.79);
    left: auto;
    top: calc(var(--u) * 3.84);
    bottom: auto;
  }
  html body:not(#z) #overlay-win .win-num span {
    font-size: calc(var(--u) * 17.29);
  }
  html body:not(#z) #win-title {
    font-size: calc(var(--u) * 7.08);
  }
  html body:not(#z) #win-continue .lbl {
    font-size: calc(var(--u) * 8.17);
  }
  html body:not(#z) #win-new .lbl {
    font-size: calc(var(--u) * 7.42);
  }
  html body:not(#z) #overlay-win .win-plate .prow {
    font-size: calc(var(--u) * 7.35);
  }
  /* 07-fim */
  html body:not(#z) #overlay-over .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 89.6);
    height: calc(var(--u) * 36.6);
    left: calc(50% + var(--u) * -44.7);
    right: auto;
    bottom: calc(var(--u) * 23.81);
    top: auto;
  }
  html body:not(#z) #overlay-over .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 71.3);
    height: calc(var(--u) * 13.33);
    left: calc(var(--u) * 8.5);
    top: calc(var(--u) * -13.33);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #overlay-over .card-blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 36.7);
    height: calc(var(--u) * 23.63);
    left: calc(var(--u) * 26.6);
    top: calc(var(--u) * -34.29);
    right: auto;
    bottom: auto;
    object-fit: cover;
    object-position: 50% 0;
  }
  html body:not(#z) #overlay-over .stat:nth-child(1) {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 37.2);
    height: calc(var(--u) * 24.34);
    left: calc(var(--u) * 6.6);
    top: calc(var(--u) * 6.93);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #overlay-over .stat:nth-child(2) {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 37.4);
    height: calc(var(--u) * 24.34);
    left: calc(var(--u) * 45.6);
    top: calc(var(--u) * 6.93);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-retry {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 34);
    height: calc(var(--u) * 12.26);
    left: calc(var(--u) * 3.4);
    top: calc(var(--u) * 38.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-undo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 34.5);
    height: calc(var(--u) * 12.26);
    left: calc(var(--u) * 39.2);
    top: calc(var(--u) * 38.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 12.06);
    height: calc(var(--u) * 12.06);
    left: calc(var(--u) * 75.17);
    top: calc(var(--u) * 38.92);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) .app[data-over='1'] #stage {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 62.6);
    height: calc(var(--u) * 58.99);
    left: calc(50% + var(--u) * -31.7);
    right: auto;
    top: calc(50% + var(--u) * -62.37);
    bottom: auto;
  }
  html body:not(#z) .app[data-over='1'] #screen-play .logo-s {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 39);
    height: calc(var(--u) * 23.45);
    left: calc(50% + var(--u) * -19.7);
    right: auto;
    top: calc(var(--u) * 2.31);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #over-title {
    font-size: calc(var(--u) * 8.97);
  }
  html body:not(#z) #over-retry .lbl {
    font-size: calc(var(--u) * 5.13);
  }
  html body:not(#z) #over-undo > .lbl {
    font-size: calc(var(--u) * 3.31);
  }
  html body:not(#z) #overlay-over .stat .plate-label {
    font-size: calc(var(--u) * 3.65);
  }
  html body:not(#z) #over-score {
    margin-top: calc(var(--u) * 0.97);
  }
  html body:not(#z) #overlay-over .stat b {
    font-size: calc(var(--u) * 8.28);
  }
  html body:not(#z) #over-tile-img {
    height: calc(var(--u) * 13.14);
  }
  html body:not(#z) #overlay-over .stat:nth-child(2) b {
    font-size: calc(var(--u) * 5.36);
    bottom: calc(var(--u) * 1.95);
  }
  html body:not(#z) #over-best {
    font-size: calc(var(--u) * 3.28);
    height: calc(var(--u) * 5.86);
    padding: 0 calc(var(--u) * 3.81);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html body:not(#z) #over-best .fit {
    max-width: calc(86cqw - var(--u) * 7.62);
  }
  html body:not(#z) #over-best .star {
    width: calc(var(--u) * 7.62);
    height: calc(var(--u) * 7.62);
    left: calc(var(--u) * -1.76);
  }
}
@media (orientation: landscape) {
  /* 01-menu */
  html body:not(#z) #screen-menu .logo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 63.61);
    height: calc(var(--u) * 32.9);
    left: calc(50% + var(--u) * -32.16);
    right: auto;
    top: calc(50% + var(--u) * -48.4);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #screen-menu .blip.big {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 41.04);
    height: calc(var(--u) * 58.8);
    left: calc(50% + var(--u) * -52.42);
    right: auto;
    top: calc(50% + var(--u) * -18.4);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #btn-play {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 55.26);
    height: calc(var(--u) * 16.7);
    left: calc(50% + var(--u) * -8.88);
    right: auto;
    top: calc(50% + var(--u) * -7);
    bottom: auto;
  }
  html body:not(#z) #menu-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.55);
    height: calc(var(--u) * 11.55);
    right: calc(var(--u) * 3.38);
    left: auto;
    top: calc(var(--u) * 2.4);
    bottom: auto;
  }
  html body:not(#z) #menu-sound {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.55);
    height: calc(var(--u) * 11.55);
    right: calc(var(--u) * 17.06);
    left: auto;
    top: calc(var(--u) * 2.4);
    bottom: auto;
  }
  html body:not(#z) #screen-menu .best-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 55.61);
    height: calc(var(--u) * 15.4);
    left: calc(50% + var(--u) * -9.06);
    right: auto;
    top: calc(50% + var(--u) * 13.7);
    bottom: auto;
  }
  html body:not(#z) #play-label {
    font-size: calc(var(--u) * 7.94);
  }
  html body:not(#z) #screen-menu .best-plate .prow {
    font-size: calc(var(--u) * 8.02);
  }
  html body:not(#z) #menu-shadow {
    width: calc(var(--u) * 27.09);
    height: calc(var(--u) * 5.34);
    left: calc(50% + var(--u) * -45.44);
    top: calc(50% + var(--u) * 36.88);
  }
  html body:not(#z) .tap-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 58.95);
    height: calc(var(--u) * 14.36);
    left: calc(50% + var(--u) * -10.73);
    top: calc(50% + var(--u) * 3.87);
  }
  /* 02-partida */
  html body:not(#z) #btn-pause {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.2);
    height: calc(var(--u) * 11.2);
    left: calc(var(--u) * 11.19);
    right: auto;
    top: calc(var(--u) * 1.9);
    bottom: auto;
  }
  html body:not(#z) #screen-play .logo-s {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 25.76);
    height: calc(var(--u) * 19.5);
    left: calc(var(--u) * 14.39);
    right: auto;
    top: calc(var(--u) * 8.7);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #btn-sound {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.55);
    height: calc(var(--u) * 11.55);
    right: calc(var(--u) * 17.06);
    left: auto;
    top: calc(var(--u) * 2.4);
    bottom: auto;
  }
  html body:not(#z) #btn-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 11.55);
    height: calc(var(--u) * 11.55);
    right: calc(var(--u) * 3.38);
    left: auto;
    top: calc(var(--u) * 2.4);
    bottom: auto;
  }
  html body:not(#z) #score-card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 25.94);
    height: calc(var(--u) * 9.9);
    left: calc(var(--u) * 14.39);
    right: auto;
    top: calc(50% + var(--u) * -20.6);
    bottom: auto;
  }
  html body:not(#z) #best-card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 25.94);
    height: calc(var(--u) * 9.9);
    left: calc(var(--u) * 14.39);
    right: auto;
    top: calc(50% + var(--u) * -9.8);
    bottom: auto;
  }
  html body:not(#z) #screen-play .g-bot {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 14.93);
    height: calc(var(--u) * 6.4);
    left: calc(var(--u) * 19.37);
    right: auto;
    bottom: calc(var(--u) * 5.4);
    top: auto;
  }
  html body:not(#z) #screen-play .g-tube {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 10.31);
    height: calc(var(--u) * 27.6);
    left: calc(var(--u) * 21.5);
    right: auto;
    bottom: calc(var(--u) * 12.6);
    top: auto;
  }
  html body:not(#z) #screen-play .g-end {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 13.68);
    height: calc(var(--u) * 9.6);
    left: calc(var(--u) * 19.9);
    right: auto;
    top: calc(50% + var(--u) * 0.8);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #stage {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 93.1);
    height: calc(var(--u) * 95.1);
    left: calc(50% + var(--u) * -46.55);
    right: auto;
    top: calc(50% + var(--u) * -48.2);
    bottom: auto;
  }
  html body:not(#z) #btn-undo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 16.66);
    height: calc(var(--u) * 16.66);
    right: calc(var(--u) * 15.21);
    left: auto;
    top: calc(50% + var(--u) * -21.03);
    bottom: auto;
  }
  html body:not(#z) #blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 28.96);
    height: calc(var(--u) * 39);
    right: calc(var(--u) * 10.48);
    left: auto;
    bottom: calc(var(--u) * 3.8);
    top: auto;
    object-fit: contain;
  }
  html body:not(#z) #blip-shadow {
    width: calc(var(--u) * 19.11);
    height: calc(var(--u) * 3.77);
    right: calc(var(--u) * 15.41);
    bottom: calc(var(--u) * 2.52);
  }
  html body:not(#z) #screen-play .g-blip {
    width: calc(var(--u) * 7.7);
    height: calc(var(--u) * 7.7);
  }
  html body:not(#z) #depth-value {
    display: none;
  }
  html body:not(#z) #btn-undo .rlabel {
    display: none;
  }
  html body:not(#z) #btn-undo .ico {
    width: 56%;
    height: 56%;
    margin: 0;
  }
  html body:not(#z) #screen-play .g-bot .fit {
    font-size: calc(var(--u) * 3.2);
  }
  /* 03-pausa */
  html body:not(#z) #modal-pause .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 70.54);
    height: calc(var(--u) * 94.6);
    left: calc(50% + var(--u) * -35.18);
    right: auto;
    top: calc(50% + var(--u) * -48.4);
    bottom: auto;
  }
  html body:not(#z) #modal-pause .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 42.47);
    height: calc(var(--u) * 10.1);
    left: calc(var(--u) * 13.86);
    top: calc(var(--u) * 8.5);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-pause .card-blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 45.31);
    height: calc(var(--u) * 68.9);
    left: calc(var(--u) * -45.31);
    top: calc(var(--u) * 14.6);
    right: auto;
    bottom: auto;
    object-fit: cover;
    object-position: 50% 0;
  }
  html body:not(#z) #pause-continue {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 14.1);
    left: calc(var(--u) * 9.59);
    top: calc(var(--u) * 23.1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-restart {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 13.9);
    left: calc(var(--u) * 9.59);
    top: calc(var(--u) * 39.5);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-settings {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 13.9);
    left: calc(var(--u) * 9.59);
    top: calc(var(--u) * 55.9);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 14.1);
    left: calc(var(--u) * 9.59);
    top: calc(var(--u) * 72.3);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #pause-title {
    font-size: calc(var(--u) * 7.48);
  }
  html body:not(#z) #modal-pause .card .pbtn > .lbl {
    font-size: calc(var(--u) * 5.36);
  }
  /* 04-ajustes */
  html body:not(#z) #modal-settings .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 95.59);
    height: calc(var(--u) * 60.27);
    left: calc(50% + var(--u) * -47.97);
    right: auto;
    top: calc(50% + var(--u) * -34.63);
    bottom: auto;
  }
  html body:not(#z) #modal-settings .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 11.6);
    left: calc(var(--u) * 22.39);
    top: calc(var(--u) * 1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 19.43);
    height: calc(var(--u) * 19.43);
    left: calc(var(--u) * 37.99);
    top: calc(var(--u) * 56.1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #settings-title,
  html body:not(#z) #sound-title {
    font-size: calc(var(--u) * 6.84);
  }
  html body:not(#z) #modal-settings .s-label,
  html body:not(#z) #modal-sound .s-label {
    font-size: calc(var(--u) * 6.05);
  }
  html body:not(#z) #modal-settings .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 95.59);
    height: calc(var(--u) * 60.27);
    left: calc(50% + var(--u) * -47.97);
    top: calc(50% + var(--u) * -34.63);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .title-plate {
    position: absolute;
    margin: 0;
    left: calc(var(--u) * 22.39);
    top: calc(var(--u) * 1);
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 11.6);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 19.43);
    height: calc(var(--u) * 19.43);
    left: calc(var(--u) * 37.99);
    top: calc(var(--u) * 56.1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-settings .rows {
    position: absolute;
    left: calc(var(--u) * 9.06);
    top: calc(var(--u) * 13.08);
    width: calc(var(--u) * 77.82);
    height: calc(var(--u) * 35.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  html body:not(#z) #modal-sound .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 95.59);
    height: calc(var(--u) * 48.33);
    left: calc(50% + var(--u) * -47.97);
    top: calc(50% + var(--u) * -28.67);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .title-plate {
    position: absolute;
    margin: 0;
    left: calc(var(--u) * 22.39);
    top: calc(var(--u) * 1);
    width: calc(var(--u) * 51.35);
    height: calc(var(--u) * 11.6);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 19.43);
    height: calc(var(--u) * 19.43);
    left: calc(var(--u) * 37.99);
    top: calc(var(--u) * 44.17);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-sound .rows {
    position: absolute;
    left: calc(var(--u) * 9.06);
    top: calc(var(--u) * 13.08);
    width: calc(var(--u) * 77.82);
    height: calc(var(--u) * 23.87);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }
  html body:not(#z) :is(#modal-settings, #modal-sound) .srow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--u) * 11.93);
    min-height: 0;
    flex: none;
    padding: 0 calc(var(--u) * 2.31) 0 calc(var(--u) * 2.13);
    border-bottom: calc(var(--u) * 0.4) solid rgba(110, 220, 255, 0.3);
  }
  html body:not(#z) :is(#modal-settings, #modal-sound) .srow:last-child {
    border-bottom: 0;
  }
  html body:not(#z) #modal-sound .slider {
    --k: calc(var(--u) * 7.9);
    --r: calc(var(--u) * 0.86);
    width: calc(var(--u) * 39.44);
    height: calc(var(--u) * 7.9);
    flex: none;
  }
  html body:not(#z) #modal-sound .slider .trk {
    left: 0;
    width: 100%;
    top: 50%;
    height: calc(var(--u) * 4.9);
    transform: translateY(-50%);
  }
  html body:not(#z) #modal-sound .slider .fil {
    left: var(--r);
    right: var(--r);
    width: auto;
    top: calc(50% - var(--u) * 1.59);
    height: calc(var(--u) * 3.18);
    transform: none;
    clip-path: inset(
      0 calc(100% - (var(--k) / 2 - var(--r)) - (100% + 2 * var(--r) - var(--k)) * var(--v)) 0 0 round 99px
    );
  }
  html body:not(#z) #modal-sound .slider .knob {
    width: var(--k);
    height: var(--k);
    left: calc((100% - var(--k)) * var(--v));
  }
  html body:not(#z) #modal-settings .tg {
    --h: calc(var(--u) * 8.8);
    width: calc(var(--u) * 16.94);
    height: var(--h);
    flex: none;
    margin-right: 0;
  }
  html body:not(#z) #set-lang-open {
    width: calc(var(--u) * 39.62);
    height: calc(var(--u) * 9.8);
    flex: none;
    margin-right: 0;
  }
  /* 05-idiomas */
  html body:not(#z) #modal-lang .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 136.81);
    height: calc(var(--u) * 76);
    left: calc(50% + var(--u) * -68.58);
    right: auto;
    top: calc(50% + var(--u) * -35.1);
    bottom: auto;
  }
  html body:not(#z) #modal-lang .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 56.32);
    height: calc(var(--u) * 12.6);
    left: calc(var(--u) * 40.33);
    top: calc(var(--u) * -5);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #modal-lang .check {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 14.96);
    height: calc(var(--u) * 14.96);
    left: calc(var(--u) * 61.1);
    top: calc(var(--u) * 65.52);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #lang-title {
    font-size: calc(var(--u) * 7.58);
  }
  html body:not(#z) #lang-list {
    position: absolute;
    left: calc(var(--u) * 8.71);
    top: calc(var(--u) * 11.5);
    width: calc(var(--u) * 120.97);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    column-gap: calc(var(--u) * 3.2);
    row-gap: calc(var(--u) * 3.67);
  }
  html body:not(#z) #lang-list .pbtn {
    width: calc(var(--u) * 27.72);
    height: calc(var(--u) * 10.53);
    flex: none;
  }
  /* 06-vitoria */
  html body:not(#z) #overlay-win .golden {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 57.21);
    height: calc(var(--u) * 70.7);
    left: calc(var(--u) * 26.83);
    right: auto;
    top: calc(50% + var(--u) * -46.3);
    bottom: auto;
    object-fit: contain;
  }
  html body:not(#z) #overlay-win .win-num {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 61.65);
    height: calc(var(--u) * 15.9);
    left: calc(var(--u) * 22.57);
    right: auto;
    bottom: calc(var(--u) * 10.2);
    top: auto;
  }
  html body:not(#z) #overlay-win .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 78.89);
    height: calc(var(--u) * 13.7);
    left: calc(50% + var(--u) * -6.4);
    right: auto;
    top: calc(var(--u) * 16.8);
    bottom: auto;
  }
  html body:not(#z) #win-continue {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 61.12);
    height: calc(var(--u) * 15.9);
    right: calc(var(--u) * 25.94);
    left: auto;
    top: calc(50% + var(--u) * -16);
    bottom: auto;
  }
  html body:not(#z) #win-new {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 61.12);
    height: calc(var(--u) * 15.9);
    right: calc(var(--u) * 25.94);
    left: auto;
    top: calc(50% + var(--u) * 3.5);
    bottom: auto;
  }
  html body:not(#z) #overlay-win .win-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 68.41);
    height: calc(var(--u) * 14.1);
    right: calc(var(--u) * 21.32);
    left: auto;
    bottom: calc(var(--u) * 11.8);
    top: auto;
  }
  html body:not(#z) #win-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 13);
    height: calc(var(--u) * 13);
    right: calc(var(--u) * 3.09);
    left: auto;
    top: calc(var(--u) * 2.05);
    bottom: auto;
  }
  html body:not(#z) #overlay-win .win-num span {
    font-size: calc(var(--u) * 15.41);
  }
  html body:not(#z) #win-title {
    font-size: calc(var(--u) * 6.51);
  }
  html body:not(#z) #win-continue .lbl {
    font-size: calc(var(--u) * 7.11);
  }
  html body:not(#z) #win-new .lbl {
    font-size: calc(var(--u) * 7.25);
  }
  html body:not(#z) #overlay-win .win-plate .prow {
    font-size: calc(var(--u) * 7.93);
  }
  /* 07-fim */
  html body:not(#z) #overlay-over .card {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 86.35);
    height: calc(var(--u) * 68.5);
    left: calc(50% + var(--u) * -4.98);
    right: auto;
    top: calc(50% + var(--u) * -26.1);
    bottom: auto;
  }
  html body:not(#z) #overlay-over .title-plate {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 64.85);
    height: calc(var(--u) * 13.5);
    left: calc(var(--u) * 11.19);
    top: calc(var(--u) * 0);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #overlay-over .card-blip {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 39.09);
    height: calc(var(--u) * 25.5);
    left: calc(var(--u) * 23.28);
    top: calc(var(--u) * -23.4);
    right: auto;
    bottom: auto;
    object-fit: cover;
    object-position: 50% 0;
  }
  html body:not(#z) #overlay-over .stat:nth-child(1) {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 36.07);
    height: calc(var(--u) * 28.7);
    left: calc(var(--u) * 6.75);
    top: calc(var(--u) * 16.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #overlay-over .stat:nth-child(2) {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 35.71);
    height: calc(var(--u) * 28.7);
    left: calc(var(--u) * 44.42);
    top: calc(var(--u) * 16.2);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-retry {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 30.21);
    height: calc(var(--u) * 13);
    left: calc(var(--u) * 5.86);
    top: calc(var(--u) * 48.1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-undo {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 30.21);
    height: calc(var(--u) * 13);
    left: calc(var(--u) * 37.14);
    top: calc(var(--u) * 48.1);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) #over-menu {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 13.14);
    height: calc(var(--u) * 13.14);
    left: calc(var(--u) * 67.97);
    top: calc(var(--u) * 47.68);
    right: auto;
    bottom: auto;
  }
  html body:not(#z) .app[data-over='1'] #stage {
    position: absolute;
    margin: 0;
    width: calc(var(--u) * 68.76);
    height: calc(var(--u) * 82.9);
    left: calc(50% + var(--u) * -76.22);
    right: auto;
    top: calc(50% + var(--u) * -39.4);
    bottom: auto;
  }
  html body:not(#z) .app[data-over='1'] #screen-play .logo-s {
    display: none;
  }
  html body:not(#z) #over-title {
    font-size: calc(var(--u) * 8.54);
  }
  html body:not(#z) #over-retry .lbl {
    font-size: calc(var(--u) * 5.29);
  }
  html body:not(#z) #over-undo > .lbl {
    font-size: calc(var(--u) * 3.51);
  }
  html body:not(#z) #overlay-over .stat .plate-label {
    font-size: calc(var(--u) * 4.3);
  }
  html body:not(#z) #over-score {
    margin-top: calc(var(--u) * 1.15);
  }
  html body:not(#z) #overlay-over .stat b {
    font-size: calc(var(--u) * 9.76);
  }
  html body:not(#z) #over-tile-img {
    height: calc(var(--u) * 15.5);
  }
  html body:not(#z) #overlay-over .stat:nth-child(2) b {
    font-size: calc(var(--u) * 6.31);
    bottom: calc(var(--u) * 2.3);
  }
  html body:not(#z) #over-best {
    font-size: calc(var(--u) * 3.42);
    height: calc(var(--u) * 6.1);
    padding: 0 calc(var(--u) * 3.96);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  html body:not(#z) #over-best .fit {
    max-width: calc(86cqw - var(--u) * 7.93);
  }
  html body:not(#z) #over-best .star {
    width: calc(var(--u) * 7.93);
    height: calc(var(--u) * 7.93);
    left: calc(var(--u) * -1.83);
  }
}
/* End of css/06-layout.css (complete file). */
