/* Base and HUD. Measures in --u = 1% of the smallest usable side (the portrait design width, the landscape height). */
/* Nunito 900: round, a real outline without smudges (Fredoka smudged the "5" and the "3"). Latin, accents and Cyrillic from the same font. Weight 100-900 = one file only, no fake bold. */
@font-face {
  font-family: Game;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-900.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: Game;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-900.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF;
}
@font-face {
  font-family: Game;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/nunito-cyrillic-900.woff2) format('woff2');
  unicode-range: U+0400-04FF;
}

:root {
  --u: calc(min(100vw, 100vh * 0.5625) / 100);
  --navy: #14235c;
  --white: #fff;
  --blue: #2fb4ff;
  --ring: rgba(255, 255, 255, 0.55);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --pop: cubic-bezier(0.3, 1.6, 0.5, 1);
}
body.land {
  --u: calc(min(100vh, 100vw * 0.5625) / 100);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--blue);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body {
  font-family:
    Game, 'Hiragino Maru Gothic ProN', 'Yu Gothic', 'Malgun Gothic', 'Microsoft YaHei', 'PingFang SC', system-ui,
    sans-serif;
  font-weight: 700;
  color: var(--white);
}
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
img {
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
/* HUD text: white with dark outline and short shadow, as in the design */
/* real outline (Nunito has no overlapping strokes, so it does not smudge) drawn under the fill, plus a short shadow */
/* outline made by a ring of 24 + 12 copies in a circle (radius = half of --o): corners always round. The -webkit-text-stroke
   made flat tips on the font's sharp corners (the stroke on the 1, 2 and 4). Plus a short shadow below. */
b,
.txt,
[data-t],
h2 {
  --o: 0.16em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    calc(var(--o) * 0.5) calc(var(--o) * 0) 0 var(--navy),
    calc(var(--o) * 0.483) calc(var(--o) * 0.129) 0 var(--navy),
    calc(var(--o) * 0.433) calc(var(--o) * 0.25) 0 var(--navy),
    calc(var(--o) * 0.354) calc(var(--o) * 0.354) 0 var(--navy),
    calc(var(--o) * 0.25) calc(var(--o) * 0.433) 0 var(--navy),
    calc(var(--o) * 0.129) calc(var(--o) * 0.483) 0 var(--navy),
    calc(var(--o) * 0) calc(var(--o) * 0.5) 0 var(--navy),
    calc(var(--o) * -0.129) calc(var(--o) * 0.483) 0 var(--navy),
    calc(var(--o) * -0.25) calc(var(--o) * 0.433) 0 var(--navy),
    calc(var(--o) * -0.354) calc(var(--o) * 0.354) 0 var(--navy),
    calc(var(--o) * -0.433) calc(var(--o) * 0.25) 0 var(--navy),
    calc(var(--o) * -0.483) calc(var(--o) * 0.129) 0 var(--navy),
    calc(var(--o) * -0.5) calc(var(--o) * 0) 0 var(--navy),
    calc(var(--o) * -0.483) calc(var(--o) * -0.129) 0 var(--navy),
    calc(var(--o) * -0.433) calc(var(--o) * -0.25) 0 var(--navy),
    calc(var(--o) * -0.354) calc(var(--o) * -0.354) 0 var(--navy),
    calc(var(--o) * -0.25) calc(var(--o) * -0.433) 0 var(--navy),
    calc(var(--o) * -0.129) calc(var(--o) * -0.483) 0 var(--navy),
    calc(var(--o) * -0) calc(var(--o) * -0.5) 0 var(--navy),
    calc(var(--o) * 0.129) calc(var(--o) * -0.483) 0 var(--navy),
    calc(var(--o) * 0.25) calc(var(--o) * -0.433) 0 var(--navy),
    calc(var(--o) * 0.354) calc(var(--o) * -0.354) 0 var(--navy),
    calc(var(--o) * 0.433) calc(var(--o) * -0.25) 0 var(--navy),
    calc(var(--o) * 0.483) calc(var(--o) * -0.129) 0 var(--navy),
    calc(var(--o) * 0.25) calc(var(--o) * 0) 0 var(--navy),
    calc(var(--o) * 0.217) calc(var(--o) * 0.125) 0 var(--navy),
    calc(var(--o) * 0.125) calc(var(--o) * 0.217) 0 var(--navy),
    calc(var(--o) * 0) calc(var(--o) * 0.25) 0 var(--navy),
    calc(var(--o) * -0.125) calc(var(--o) * 0.217) 0 var(--navy),
    calc(var(--o) * -0.217) calc(var(--o) * 0.125) 0 var(--navy),
    calc(var(--o) * -0.25) calc(var(--o) * 0) 0 var(--navy),
    calc(var(--o) * -0.217) calc(var(--o) * -0.125) 0 var(--navy),
    calc(var(--o) * -0.125) calc(var(--o) * -0.217) 0 var(--navy),
    calc(var(--o) * -0) calc(var(--o) * -0.25) 0 var(--navy),
    calc(var(--o) * 0.125) calc(var(--o) * -0.217) 0 var(--navy),
    calc(var(--o) * 0.217) calc(var(--o) * -0.125) 0 var(--navy),
    0 calc(var(--o) * 0.8) 0 var(--navy);
}

.layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.layer > *,
.layer button {
  pointer-events: auto;
}
body:not(.started) #hud,
body:not(.started) #corner,
body:not(.started) #mini-hud,
body.mini #hud,
body:not(.mini) #mini-hud {
  display: none;
}

/* --- top right corner: sound and gear, always in the same place --- */
#corner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 1.7 + var(--sat)) calc(var(--u) * 2.4 + var(--sar)) 0 0;
}
.rb {
  position: relative;
  width: calc(var(--u) * 11.2);
  height: calc(var(--u) * 11.2);
  transition:
    transform 0.14s var(--pop),
    filter 0.14s;
}
.rb > img:first-child {
  width: 100%;
  height: 100%;
}
.rb .ic {
  position: absolute;
  left: 22%;
  top: 20%;
  width: 56%;
  height: 56%;
  object-fit: contain;
}
.rb:active,
.pill:active,
.room:active,
.item:active,
.tile:active,
.arrow:active,
.tog:active {
  transform: translateY(3%) scale(0.94);
  filter: brightness(0.9);
}

/* --- level and coins --- */
#level {
  position: absolute;
  left: calc(var(--u) * 3 + var(--sal));
  top: calc(var(--u) * 2 + var(--sat));
  width: calc(var(--u) * 37);
}
#level img {
  width: 100%;
}
#level b {
  position: absolute;
  left: 0;
  top: 0;
  width: 32.5%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: calc(var(--u) * 6.2);
  padding-top: 1%;
} /* center of the INK in the circle (measured) */
#xp {
  position: absolute;
  left: 33.5%;
  top: 36.5%;
  height: 30%;
  width: 0;
  max-width: 62%;
  border-radius: 99px;
  background: linear-gradient(#7dfb6a, #2fd03c);
  transition: width 0.5s var(--pop);
}
/* HUD pills: grow with the number (99559 fits); the art's round ends do not stretch (9-slice by the border) */
#coins-pill,
.mpill {
  position: absolute;
  left: calc(var(--u) * 42.5 + var(--sal));
  top: calc(var(--u) * 3 + var(--sat));
  --h: calc(var(--u) * 9.26);
  height: var(--h);
  min-width: calc(var(--h) * 2.66);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: calc(var(--h) * 0.62);
  border: solid transparent;
  border-width: 0 calc(var(--h) / 2);
  border-image-source: url(../assets/ui/pill-coin.webp);
  border-image-slice: 0 67 fill;
  font-size: calc(var(--h) * 0.62);
}
#coins-pill .art,
.mpill .art {
  display: none;
}
#coins-pill .coin,
.mpill .coin {
  position: absolute;
  left: calc(var(--h) * -0.6);
  top: -6%;
  height: 112%;
}
#coins-pill b,
.mpill b {
  position: relative;
  top: 0.05em;
  line-height: 1;
  white-space: nowrap;
} /* Nunito has extra space on top: moves down to the center of the ink */

/* --- meters --- */
#needs {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--u) * 14.6 + var(--sat));
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 1.5);
}
.gauge {
  position: relative;
  width: calc(var(--u) * 15.6);
  height: calc(var(--u) * 15.6);
  border-radius: 50%;
  padding: calc(var(--u) * 1.5);
  background: conic-gradient(var(--c) calc(var(--v) * 3.6deg), var(--ring) 0); /* full circle: 100% closes the ring */
  filter: drop-shadow(0 calc(var(--u) * 0.5) 0 rgba(20, 35, 92, 0.25));
}
.gauge img {
  width: 100%;
  height: 100%;
}
.gauge.low {
  animation: nudge 1.7s ease-in-out infinite;
}
/* the piece that receives the gain stretches and springs back */
.hit {
  animation: hit 0.5s var(--pop);
}
.gauge.low.hit {
  animation: hit 0.5s var(--pop);
}
@keyframes hit {
  0% {
    scale: 1;
  }
  30% {
    scale: 1.3;
  }
  100% {
    scale: 1;
  }
}
.room.call:not(.on) {
  animation: nudge 1.3s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* --- tray and rooms (portrait: at the bottom) --- */
#rooms {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--u) * 3 + var(--sab));
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 2.2);
}
.room {
  position: relative;
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22.6);
  transition:
    transform 0.16s var(--pop),
    filter 0.16s;
}
.room img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.room span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  text-align: center;
  font-size: calc(var(--u) * 4.7);
  white-space: nowrap;
}
.room.on {
  transform: scale(1.07);
  filter: drop-shadow(0 0 calc(var(--u) * 1.6) #fff36b) drop-shadow(0 0 calc(var(--u) * 0.7) #fff);
}
.frame {
  border: calc(var(--u) * 4.2) solid transparent;
  border-image: url(../assets/ui/tray.webp) 60 fill / calc(var(--u) * 4.2) stretch;
}
.nine {
  border-image: none !important;
  background-size: 100% 100% !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  background-repeat: no-repeat !important;
}
#tray {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--u) * 29.5 + var(--sab));
  min-width: calc(var(--u) * 50);
  max-width: calc(var(--u) * 96);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 2.4);
  padding: calc(var(--u) * 0.4) calc(var(--u) * 1);
}
.item {
  position: relative;
  width: calc(var(--u) * 15.4);
  height: calc(var(--u) * 15.4);
  flex: none;
  touch-action: none;
  transition:
    transform 0.14s var(--pop),
    filter 0.14s;
}
.item > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.item.on {
  filter: drop-shadow(0 0 calc(var(--u) * 1.4) #fff36b) drop-shadow(0 0 calc(var(--u) * 0.6) #fff);
  transform: scale(1.08);
}
.item.pulse {
  animation: nudge 1.4s ease-in-out infinite;
}
.item.lock > img {
  filter: grayscale(0.85) brightness(0.9);
  opacity: 0.75;
}
.tag {
  container-type: size;
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
  width: 74%;
  aspect-ratio: 323 / 128;
  background: url(../assets/ui/tag-price.webp) center / 100% 100% no-repeat;
  display: grid;
  place-items: center;
}
.tag.lk {
  background-image: url(../assets/ui/tag-lock.webp);
}
.tag img {
  position: absolute;
  left: 6%;
  top: 12%;
  height: 70%;
}
.tag b {
  position: absolute;
  left: 36%;
  right: 6%;
  top: 15%;
  bottom: 14%;
  display: grid;
  place-items: center;
  line-height: 1;
  white-space: nowrap;
  font-size: calc(var(--u) * 3.4);
  font-size: 58cqh;
  --o: 0.13em;
  text-shadow: none;
}
.no {
  animation: no 0.3s;
}
@keyframes no {
  25% {
    translate: -6px 0;
  }
  75% {
    translate: 6px 0;
  }
}

/* --- mini-game: pause on the left, time and points in the middle --- */
#m-pause {
  position: absolute;
  left: calc(var(--u) * 3 + var(--sal));
  top: calc(var(--u) * 1.7 + var(--sat));
}
#m-pills {
  position: absolute;
  left: calc(var(--u) * 17 + var(--sal));
  top: calc(var(--u) * 2.9 + var(--sat));
  display: flex;
  gap: calc(var(--u) * 3.2);
}
.mpill {
  position: relative;
  left: 0;
  top: 0;
  --h: calc(var(--u) * 9.4);
}
.mpill .coin {
  top: -8%;
  height: 116%;
}

/* --- lying: rooms in the left column, tray in the right column, meters at the top --- */
body.land #needs {
  top: calc(var(--u) * 1.3 + var(--sat));
  left: calc(var(--u) * 62);
  right: calc(var(--u) * 30);
  gap: calc(var(--u) * 2.2);
}
body.land .gauge {
  width: calc(var(--u) * 13.4);
  height: calc(var(--u) * 13.4);
  padding: calc(var(--u) * 1.3);
}
body.land #level {
  width: calc(var(--u) * 29);
  left: calc(var(--u) * 2.4 + var(--sal));
  top: calc(var(--u) * 2.6 + var(--sat));
}
body.land #level b {
  font-size: calc(var(--u) * 5);
}
body.land #coins-pill {
  left: calc(var(--u) * 33.5 + var(--sal));
  top: calc(var(--u) * 3.6 + var(--sat));
  --h: calc(var(--u) * 8.1);
}
body.land #rooms {
  left: calc(var(--u) * 2.2 + var(--sal));
  right: auto;
  top: calc(var(--u) * 16);
  bottom: calc(var(--u) * 2 + var(--sab));
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}
body.land .room {
  width: calc(var(--u) * 18.6);
  height: calc(var(--u) * 19.1);
}
body.land .room span {
  font-size: calc(var(--u) * 3.7);
}
body.land #tray {
  left: auto;
  right: calc(var(--u) * 2.6 + var(--sar));
  transform: none;
  top: calc(var(--u) * 17);
  bottom: auto;
  min-width: 0;
  max-height: calc(100% - var(--u) * 20);
  flex-direction: column;
  justify-content: space-evenly;
  min-height: calc(var(--u) * 58);
  gap: calc(var(--u) * 1.6);
  padding: calc(var(--u) * 1) calc(var(--u) * 0.4);
}
body.land .item {
  width: calc(var(--u) * 13.2);
  height: calc(var(--u) * 13.2);
}
body.land .rb {
  width: calc(var(--u) * 11.6);
  height: calc(var(--u) * 11.6);
}
body.land #m-pills {
  left: 50%;
  translate: -50% 0;
}
body.land .mpill {
  --h: calc(var(--u) * 10.2);
}

/* dragged food and tutorial little hand: over the whole interface */
#dragimg,
#hand,
#handfood {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}
#handfood {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  object-fit: contain;
}
#handfood[hidden] {
  display: none;
}
/* short notice over everything (missing coins, level): readable even with a panel open */
#toast {
  position: fixed;
  left: 50%;
  bottom: 13%;
  translate: -50% 0;
  z-index: 9;
  padding: calc(var(--u) * 1.6) calc(var(--u) * 4.5);
  border-radius: 99px;
  background: var(--navy);
  box-shadow:
    0 0 0 calc(var(--u) * 0.7) #fff,
    0 calc(var(--u) * 1) calc(var(--u) * 2) rgba(0, 0, 0, 0.3);
  font-size: calc(var(--u) * 5.6);
  white-space: nowrap;
  pointer-events: none;
  animation: pop 0.28s var(--pop);
  text-shadow: none;
}
#toast[hidden] {
  display: none;
}
#dragimg {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
  object-fit: contain;
  filter: drop-shadow(0 calc(var(--u) * 1) calc(var(--u) * 0.8) rgba(20, 35, 92, 0.35));
}
#hand {
  width: calc(var(--u) * 15);
  filter: drop-shadow(0 calc(var(--u) * 0.8) calc(var(--u) * 0.6) rgba(20, 35, 92, 0.4));
}
#dragimg[hidden],
#hand[hidden] {
  display: none;
}

/* --- start --- */
#start {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--u) * 5 + var(--sat)) 0 calc(var(--u) * 10 + var(--sab));
  cursor: pointer;
}
#start[hidden] {
  display: none;
}
#logo {
  width: calc(var(--u) * 84);
  filter: drop-shadow(0 calc(var(--u) * 1.2) calc(var(--u) * 1) rgba(20, 35, 92, 0.3));
  animation: floaty 3.4s ease-in-out infinite;
}
#start-btn {
  --ph: calc(var(--u) * 17);
  width: calc(var(--u) * 72);
  animation: nudge 1.9s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 calc(var(--u) * -1.2);
  }
}
body.land #start {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: calc(var(--u) * 6);
  padding-left: calc(var(--u) * 9 + var(--sal));
}
body.land #logo {
  width: calc(var(--u) * 70);
}
body.land #start-btn {
  --ph: calc(var(--u) * 15);
  margin-left: calc(var(--u) * 4);
  width: calc(var(--u) * 62);
}

/* pill button in 3 pieces (fixed ends, middle stretches): never deforms. Face ruler: smooth from 17% to 87% of the height. */
.pill {
  --ph: calc(var(--u) * 14);
  position: relative;
  height: var(--ph);
  min-width: calc(var(--ph) * 1.7);
  display: grid;
  place-items: center;
  padding: 0 0 calc(var(--ph) * 0.04);
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(var(--ph) * 0.42);
  border-image: url(../assets/ui/pill-green.webp) 0 71 fill / 0 calc(var(--ph) * 0.42) stretch;
  transition:
    transform 0.14s var(--pop),
    filter 0.14s;
}
.pill.yellow {
  border-image-source: url(../assets/ui/pill-yellow.webp);
}
.pill.blue {
  border-image-source: url(../assets/ui/pill-blue.webp);
}
.pill.blue.green {
  border-image-source: url(../assets/ui/pill-green.webp);
} /* language chosen from the list */
.pill span {
  display: block;
  max-width: 100%;
  text-align: center;
  font-size: calc(var(--ph) * 0.44);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}
body.reduced *,
body.reduced *::before {
  animation: none !important;
  transition: none !important;
}
/* --- fine layout adjustments: measures and details that were far from the design --- */
:root {
  --ring: rgba(255, 255, 255, 0.92);
}
.gauge {
  padding: calc(var(--u) * 1.95);
} /* thick ring, white track */
body.land .gauge {
  padding: calc(var(--u) * 1.7);
}
.room span {
  font-size: calc(var(--u) * 3.9);
  bottom: 7%;
  left: 6%;
  right: 6%;
} /* label inside the circle */
body.land .room span {
  font-size: calc(var(--u) * 3.2);
}
#tray {
  min-width: calc(var(--u) * 93);
} /* the tray takes the full width, as in the design */
body.land #tray {
  min-width: 0;
}
.item .tag {
  width: 96%;
  bottom: -14%;
}
/* kitchen tray in pages */
.tarrow {
  width: calc(var(--u) * 8.5);
  height: calc(var(--u) * 11);
  background: url(../assets/ui/arrow-left.webp) center / contain no-repeat;
}
.tarrow.r {
  background-image: url(../assets/ui/arrow-right.webp);
}
.tdots {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * -3.4);
  translate: -50% 0;
  display: flex;
  gap: calc(var(--u) * 1.2);
  font-style: normal;
}
.tdots b {
  width: calc(var(--u) * 1.6);
  height: calc(var(--u) * 1.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  text-shadow: none;
}
.tdots b.on {
  background: #fff;
  box-shadow: 0 0 0 calc(var(--u) * 0.3) var(--navy);
}
/* ribbon: window of --per items, scrolls by code (arrows, wheel); the scrollbar does not show; room at the bottom for the price tag */
.tview {
  overflow: hidden;
  flex: none;
  width: calc(var(--per) * var(--it) + (var(--per) - 1) * var(--tg));
  padding: calc(var(--u) * 0.6) 0 calc(var(--u) * 3);
  margin-bottom: calc(var(--u) * -2.4);
}
.tstrip {
  display: flex;
  gap: var(--tg);
}
#tray {
  --it: calc(var(--u) * 15.4);
  --tg: calc(var(--u) * 2.4);
}
body.land #tray {
  --it: calc(var(--u) * 13.2);
  --tg: calc(var(--u) * 3.4);
}
body.land .tview {
  width: auto;
  height: calc(var(--per) * var(--it) + (var(--per) - 1) * var(--tg));
  padding: 0 calc(var(--u) * 0.6) calc(var(--u) * 4.4);
  margin: 0 0 calc(var(--u) * -4.4);
} /* room for the last item's price tag */
body.land .tstrip {
  flex-direction: column;
}
#tray.flip > .item:not(.tarrow) {
  animation: pop 0.26s var(--pop) both;
}
#tray.flip > .item:nth-child(3) {
  animation-delay: 0.03s;
}
#tray.flip > .item:nth-child(4) {
  animation-delay: 0.06s;
}
#tray.flip > .item:nth-child(5) {
  animation-delay: 0.09s;
}
body.land .tarrow {
  width: calc(var(--u) * 11);
  height: calc(var(--u) * 7.5);
  rotate: 90deg;
}
body.land .tdots {
  left: auto;
  right: calc(var(--u) * -2.6);
  bottom: auto;
  top: 50%;
  translate: 0 -50%;
  flex-direction: column;
}
/* emotion balloon: over the head; the need one pulses and leads to the room when tapped */
#emo {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(var(--u) * 15);
  translate: -50% -100%;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}
#emo[hidden] {
  display: none;
}
html[lang='ja'] [data-t],
html[lang='ko'] [data-t] {
  word-break: keep-all;
} /* Japanese/Korean: no breaking a word in the middle (こと/ば); the text shrinks to fit */
:focus,
:focus-visible {
  outline: none;
} /* no focus outline */
#emo img {
  width: 100%;
  filter: drop-shadow(0 calc(var(--u) * 0.8) calc(var(--u) * 0.6) rgba(20, 35, 92, 0.3));
  transform-origin: 20% 100%;
}
#emo.in img {
  animation: emoin 0.42s var(--pop) both;
}
#emo.tap {
  pointer-events: auto;
  cursor: pointer;
}
#emo.tap img {
  animation:
    emoin 0.42s var(--pop) both,
    nudge 1.3s ease-in-out 0.5s infinite;
}
@keyframes emoin {
  from {
    transform: scale(0.2) rotate(-20deg);
    opacity: 0;
  }
}
body.land #emo {
  width: calc(var(--u) * 12.5);
}
.item.mini > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* End of src/styles.css (complete file). */
