:root {
  --bg: #14121c;
  --panel: rgba(20, 18, 30, 0.62);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f6f1ea;
  --muted: #b9b2c4;
  --accent: #ffc56e;
  --accent-2: #8fd3c1;
  --danger: #ff8a8a;
  --gap: 16px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --btn: clamp(64px, 17vmin, 96px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#objective {
  position: absolute;
  top: calc(var(--gap) + var(--safe-t));
  left: calc(var(--gap) + var(--safe-l));
  max-width: min(420px, 60vw);
  padding: 10px 14px;
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.35;
}
#objective .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
#hint-text {
  color: var(--accent-2);
  font-size: 0.88em;
  margin-top: 4px;
}
#hint-text:empty { display: none; }

#calm-meter {
  position: absolute;
  top: calc(var(--gap) + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 42vw);
  padding: 8px 12px 10px;
  font-size: 13px;
}
.calm-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.bar.big { height: 10px; margin: 18px 0 8px; }
.bar > div {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s linear;
}

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

#prompt {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: clamp(14px, 1.8vw, 18px);
  white-space: nowrap;
  animation: pulse 1.4s ease-in-out infinite;
}
#prompt kbd { margin: 0 4px; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.icon-btn {
  pointer-events: auto;
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
#btn-pause {
  top: calc(var(--gap) + var(--safe-t));
  right: calc(var(--gap) + var(--safe-r));
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px;
  margin-right: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-width: 3px;
  background: rgba(255, 255, 255, 0.08);
  font: 600 13px/1.4 inherit;
  text-align: center;
  color: var(--text);
}

/* ---------- Touch controls ---------- */
#touch {
  position: fixed;
  inset: 0;
  z-index: 9; /* below #hud so its pause button stays tappable */
}
#touch-move, #touch-look {
  position: absolute;
  top: 0;
  bottom: 0;
  touch-action: none;
}
#touch-move { left: 0; width: 45%; }
#touch-look { right: 0; width: 55%; }

#joy-base {
  position: absolute;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
#joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.touch-btn {
  position: absolute;
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 18, 30, 0.55);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  touch-action: none;
  transition: transform 0.08s, background 0.2s, opacity 0.2s;
}
.touch-btn .key { font-size: calc(var(--btn) * 0.32); font-weight: 700; line-height: 1; }
.touch-btn .cap { font-size: calc(var(--btn) * 0.14); color: var(--muted); }
.touch-btn:active { transform: scale(0.94); }
.touch-btn:disabled { opacity: 0.35; }
.touch-btn:not(:disabled) {
  border-color: var(--accent);
  background: rgba(255, 197, 110, 0.22);
}
#btn-interact:not(:disabled) { animation: pulse 1.2s ease-in-out infinite; }
#btn-interact {
  right: calc(var(--gap) * 1.5 + var(--safe-r));
  bottom: calc(var(--gap) * 1.5 + var(--safe-b));
}
#btn-fullscreen {
  top: calc(var(--gap) + var(--safe-t));
  right: calc(var(--gap) * 1.5 + 44px + var(--safe-r));
}

/* ---------- Overlays ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(20, 18, 30, 0.72), rgba(10, 9, 15, 0.92));
  touch-action: auto;
}
.card {
  width: min(460px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(30, 27, 42, 0.9);
  border: 1px solid var(--panel-border);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.card h1 {
  margin: 4px 0 10px;
  font-size: clamp(22px, 4.5vw, 30px);
  line-height: 1.2;
}
.card p { margin: 8px 0; line-height: 1.5; }
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 !important;
}
.sub { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.tips {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  font-size: 14px;
}
.card .tips-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tips ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.controls {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  text-align: left;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

button.primary, button.ghost {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font: 600 16px/1 inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button.primary {
  border: none;
  background: var(--accent);
  color: #241a0b;
}
button.primary:hover { filter: brightness(1.06); }
button.ghost {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text);
}

/* Main menu: level select */
#level-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
.level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 600 15px/1.3 inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.level-item:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.level-item .mark { flex: none; font-size: 13px; }
.level-item.done .mark { color: var(--accent-2); }
.level-item.current { border-color: var(--accent); }
.level-item.current .mark { color: var(--accent); }
.level-item:disabled { opacity: 0.45; cursor: not-allowed; }

/* Player name */
#menu-greet { margin: 6px 0 4px; }
#menu-name { color: var(--accent); overflow-wrap: anywhere; }
button.link {
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
#name-input,
#gender-input,
#age-input {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: 600 17px/1.2 inherit;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
}
#name-input:focus,
#gender-input:focus,
#age-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#name-count { text-align: right; margin: 4px 2px 0; }
.profile-row { display: flex; gap: 10px; margin-top: 10px; }
.profile-row > * { flex: 1; min-width: 0; }
#gender-input,
#age-input { margin-top: 0; }
#gender-input { cursor: pointer; text-align-last: center; }
#gender-input:has(option[value=""]:checked) { color: var(--muted); }
#gender-input option { background: #14121c; color: var(--text); }
button.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

/* Certificate */
/* Certificate: designed image (asset/certImg.png) + the player's name over its name box.
   Box position/size come from CERT_NAME_BOX in ui.js via --name-x/-y/-w/-size. */
.cert-wrap {
  /* As wide as possible while the image (ratio 1492:1054) + buttons still fit the screen */
  width: min(960px, 100%, calc((100dvh - 96px) * 1.4155));
}
.cert {
  position: relative;
  aspect-ratio: 1492 / 1054;
  container-type: inline-size;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.cert img {
  display: block;
  width: 100%;
  height: 100%;
}
.cert-name {
  position: absolute;
  left: var(--name-x);
  top: var(--name-y);
  width: var(--name-w);
  margin: 0;
  transform: translate(-50%, -50%);
  color: #2141c4;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--name-size);
  line-height: var(--name-lh);
  text-align: center;
  white-space: pre; /* lines are split in ui.js */
}
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.cert-actions button { flex: 1 1 0; min-width: 7.5em; }
@media (max-height: 460px) {
  .cert-actions button { margin-top: 4px; padding: 10px 12px; }
}

body:not(.is-touch) .touch-only { display: none; }
body.is-touch .desktop-only { display: none; }
body.is-touch #crosshair { opacity: 0.6; }

#rotate-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 140px);
  transform: translateX(-50%);
  z-index: 12;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}

/* Portrait phones: tighter HUD */
@media (orientation: portrait) and (max-width: 600px) {
  #objective { max-width: calc(100vw - 32px - 100px); font-size: 13px; }
  #calm-meter {
    top: auto;
    bottom: calc(var(--safe-b) + 110px + var(--btn));
    width: min(260px, 70vw);
  }
  #prompt { top: 62%; font-size: 14px; }
}

/* Short landscape phones */
@media (max-height: 460px) {
  #objective { padding: 6px 10px; font-size: 13px; max-width: 40vw; }
  #calm-meter { width: 30vw; padding: 6px 10px 8px; }
  .card { padding: 16px; }
  .controls { margin: 10px 0 12px; }
}

/* ---------- Timing bar (put the baby down at the right moment) ---------- */
#timing {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  width: min(560px, 82vw);
  text-align: center;
  --perfect: 12%;
}
.timing-arrow {
  width: 0;
  height: 0;
  margin: 0 auto 4px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #ff4d4d;
  filter: drop-shadow(0 0 6px rgba(255, 77, 77, 0.8));
}
.timing-bar {
  position: relative;
  height: clamp(30px, 6vmin, 44px);
  border-radius: 99px;
  border: 3px solid #5fb3ff;
  box-shadow: 0 0 0 3px rgba(20, 40, 80, 0.85), 0 0 18px rgba(95, 179, 255, 0.75);
  background: linear-gradient(
    90deg,
    #e8322b 0%,
    #f26b2a 14%,
    #f7b733 28%,
    #c9e23c 40%,
    #3fd05a 50%,
    #c9e23c 60%,
    #f7b733 72%,
    #f26b2a 86%,
    #e8322b 100%
  );
  overflow: hidden;
}
.timing-perfect {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--perfect);
  transform: translateX(-50%);
  background: rgba(60, 255, 120, 0.35);
  border-left: 2px solid rgba(255, 255, 255, 0.85);
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(80, 255, 140, 0.9) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timing-perfect span {
  font-weight: 800;
  font-size: clamp(10px, 1.8vmin, 14px);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 120, 40, 0.9);
}
#timing-needle {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 0 2px #c0182a, 0 0 10px rgba(255, 255, 255, 0.9);
}
#timing-text {
  margin-top: 10px;
  font-weight: 800;
  font-size: clamp(15px, 2.4vmin, 22px);
  color: #fff;
  text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.7);
}
#timing-text.good { color: #6dff8f; }
#timing-text.bad { color: #ff7070; }
#timing.locked #timing-needle { box-shadow: 0 0 0 2px #c0182a, 0 0 18px #fff; }

/* ---------- Level 3: diaper change / dodging ---------- */
#item {
  position: absolute;
  top: calc(var(--gap) + var(--safe-t) + 96px);
  left: calc(var(--gap) + var(--safe-l));
  padding: 6px 12px;
  font-size: 14px;
}
#dodge-hud {
  position: absolute;
  top: calc(var(--gap) + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 16px;
  font-weight: 700;
}
#lives {
  color: #ff6b81;
  font-size: 20px;
  letter-spacing: 4px;
}
#lives .lost { color: rgba(255, 255, 255, 0.25); }

.warn {
  position: absolute;
  top: 50%;
  width: clamp(64px, 14vmin, 110px);
  height: clamp(64px, 14vmin, 110px);
  margin-top: calc(clamp(64px, 14vmin, 110px) / -2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 900 clamp(44px, 10vmin, 80px) / 1 sans-serif;
  color: #fff;
  background: radial-gradient(circle, #ff3b3b 0%, #c0122a 70%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 0 30px rgba(255, 40, 40, 0.9);
  animation: warn-blink 0.35s ease-in-out infinite alternate;
}
#warn-left { left: calc(var(--gap) * 2 + var(--safe-l)); }
#warn-right { right: calc(var(--gap) * 2 + var(--safe-r)); }
@keyframes warn-blink {
  from { transform: scale(0.9); opacity: 0.75; }
  to { transform: scale(1.12); opacity: 1; }
}

#splat {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease-out;
  background:
    radial-gradient(circle at 30% 40%, rgba(110, 66, 24, 0.92) 0 9%, transparent 10%),
    radial-gradient(circle at 46% 55%, rgba(122, 74, 28, 0.9) 0 14%, transparent 15%),
    radial-gradient(circle at 62% 38%, rgba(98, 58, 20, 0.88) 0 7%, transparent 8%),
    radial-gradient(circle at 55% 72%, rgba(110, 66, 24, 0.85) 0 5%, transparent 6%),
    radial-gradient(circle at 38% 68%, rgba(98, 58, 20, 0.85) 0 4%, transparent 5%),
    radial-gradient(ellipse at 50% 50%, rgba(80, 50, 10, 0.25), transparent 70%);
}
#splat.on {
  opacity: 1;
  transition: none;
}

/* Touch: dodge buttons replace joystick/look while changing the diaper */
.dodge-btn {
  display: none;
  bottom: calc(var(--gap) * 1.5 + var(--safe-b));
  --btn: clamp(76px, 20vmin, 110px);
}
#btn-dodge-left { left: calc(var(--gap) * 1.5 + var(--safe-l)); }
#btn-dodge-right { right: calc(var(--gap) * 2 + var(--safe-r) + clamp(64px, 17vmin, 96px)); }
.dodge-btn .cap { color: var(--text); }
body.dodge-mode .dodge-btn { display: flex; }
body.dodge-mode #touch-move,
body.dodge-mode #touch-look,
body.dodge-mode #joy-base { display: none !important; }
body.dodge-mode #crosshair { display: none; }

/* ---------- Level 4: milk shaking panel ---------- */
#shake {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translateX(-50%);
  width: min(440px, 78vw);
  padding: 14px 18px 16px;
  text-align: center;
}
.shake-title {
  font-size: clamp(18px, 2.6vmin, 24px);
  font-weight: 800;
  margin-bottom: 8px;
}
.shake-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
#shake-value { font-weight: 800; }
.shake-bar {
  height: clamp(18px, 3.4vmin, 26px);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
#shake-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8c46a, #f6e7b8 55%, #ffffff);
  box-shadow: 0 0 12px rgba(255, 245, 210, 0.8);
}
#shake.draining .shake-bar {
  border-color: #ff7070;
  animation: shake-warn 0.12s linear infinite alternate;
}
#shake.draining #shake-fill { background: linear-gradient(90deg, #e07a5a, #f2b48e); }
@keyframes shake-warn {
  from { transform: translateX(-2px); }
  to { transform: translateX(2px); }
}
#shake-text {
  margin-top: 10px;
  font-weight: 800;
  font-size: clamp(15px, 2.3vmin, 20px);
  color: #fff;
  text-shadow: 0 2px 0 #000;
}
#shake.done #shake-text { color: #6dff8f; }

/* Short landscape phones: keep the milk panel clear of the objective box and the bottle */
@media (max-height: 460px) {
  #shake {
    left: calc(var(--gap) + var(--safe-l));
    top: calc(var(--gap) + var(--safe-t) + 78px);
    transform: none;
    width: min(320px, 38vw);
    padding: 8px 12px 10px;
  }
  .shake-title { font-size: 16px; margin-bottom: 4px; }
  #shake-text { font-size: 13px; margin-top: 6px; }
}

/* ---------- Level 5: catching toys ---------- */
body.catch-mode #crosshair { display: none; }
#wish {
  position: absolute;
  top: calc(var(--gap) + var(--safe-t) + 52px);
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 70vw);
  padding: 8px 14px 10px;
  text-align: center;
}
#wish-text {
  font-weight: 800;
  font-size: clamp(15px, 2.4vmin, 20px);
  margin-bottom: 6px;
  text-shadow: 0 2px 0 #000;
}
#wish-text[data-tone="good"] { color: #6dff8f; }
#wish-text[data-tone="bad"] { color: #ff7070; }
#wish-text[data-tone="warn"] { color: #ffd166; }
.wish-bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
#wish-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fd6ff, #c6f0ff);
}
#wish.low #wish-fill {
  background: linear-gradient(90deg, #ff5a5a, #ff9b7a);
  animation: warn-blink 0.3s ease-in-out infinite alternate;
}
#catch-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
#catch-ring.good {
  border: 4px solid #6dff8f;
  box-shadow: 0 0 24px rgba(109, 255, 143, 0.9);
  animation: ring-pop 0.35s ease-out;
}
#catch-ring.bad {
  border: 4px solid #ff5a5a;
  box-shadow: 0 0 24px rgba(255, 90, 90, 0.9);
  animation: ring-shake 0.08s linear 4 alternate;
}
@keyframes ring-pop {
  from { transform: translate(-50%, -50%) scale(1.35); }
  to { transform: translate(-50%, -50%) scale(1); }
}
@media (max-height: 460px) {
  #wish {
    left: calc(var(--gap) + var(--safe-l));
    top: calc(var(--gap) + var(--safe-t) + 78px);
    transform: none;
    width: min(300px, 36vw);
    padding: 6px 10px 8px;
  }
  #wish-text { font-size: 14px; }
}
@keyframes ring-shake {
  from { transform: translate(calc(-50% - 4px), -50%); }
  to { transform: translate(calc(-50% + 4px), -50%); }
}
