:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --card: #fff;
  --primary: #29C2FF;
  --accent: radial-gradient(74.56% 52.05% at 50% 100%, rgba(88, 233, 255, 0.48) 0%, rgba(0, 0, 0, 0) 100%), #061B1E;
  --muted: #666;
  --font-1: rgba(6, 27, 30, 0.8);
  --font-2: rgba(6, 27, 30, 0.6);
  --font-3: rgba(6, 27, 30, 0.4);
  --font-4: rgba(6, 27, 30, 0.2);

  /* 语义化表面色：浅色主题 */
  --surface-2: rgba(6, 27, 30, 0.05);      /* 次级填充：按钮底、开关轨道、分段控件 */
  --border: rgba(0, 0, 0, 0.1);            /* 普通描边/分隔线 */
  --border-strong: rgba(6, 27, 30, 0.16);  /* 描边按钮等更强的描边 */
  --shadow: 0 20px 48px rgba(6, 27, 30, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --track: #eeeeee;                        /* 进度条未填充轨道 */
  --brand-wash: rgba(41, 194, 255, 0.06);  /* 品牌色极淡底色 */
  --brand-wash-strong: rgba(41, 194, 255, 0.16);
  --wrap-bg: url("../img/drop_bg.png");    /* 首页城市剪影背景 */
  --wrap-image-filter: none;
  --wrap-image-opacity: 1;
  --entry-arrow-filter: none;              /* 首页上传区箭头：深色下提亮 */
  --switch-bg: #e6e9eb;                    /* 主题开关轨道 */
  --switch-knob: #ffffff;
  --compress-bar-bg: linear-gradient(270deg, #2EDCFF 0%, rgba(46, 220, 255, 0) 49.75%), #061B1E; /* 压缩进度条：浅色渐变 */
  --toast-bg: rgba(6, 27, 30, 0.8);        /* 提示条：浅色深色胶囊 + 白字 */
  --toast-fg: #ffffff;
  --toast-shadow: 0 6px 20px rgba(6, 27, 30, 0.18);
}

/* 深色主题：参考 Figma 配色（背景 #15161E / 面板 #2E2F33 / 卡片 #161F29 / 品牌蓝 #29C6FF）
   两条选择器共用同一组变量：
   - data-theme="dark"：JS 明确解析/手动选中的深色
   - data-theme-mode="system" + 系统偏好深色：纯 CSS 兜底，事件丢失也能跟随系统 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15161E;
  --card: #2E2F33;
  --accent: #29C2FF;
  --muted: #97a2a8;
  --font-1: rgba(236, 243, 246, 1);
  --font-2: rgba(236, 243, 246, 0.8);
  --font-3: rgba(236, 243, 246, 0.6);
  --font-4: rgba(236, 243, 246, 0.4);

  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --track: #2b353b;
  --brand-wash: rgba(41, 194, 255, 0.12);
  --brand-wash-strong: rgba(41, 194, 255, 0.24);
  --wrap-image-filter: invert(0.92) hue-rotate(180deg) brightness(0.72);
  --wrap-image-opacity: 0.7;
  --entry-arrow-filter: brightness(5);
  --switch-bg: rgba(255, 255, 255, 0.18);
  --switch-knob: #29C2FF;
  --compress-bar-bg: #29C2FF;
  --toast-bg: rgba(236, 243, 246, 0.96);
  --toast-fg: #15161E;
  --toast-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 跟随系统模式：由 CSS 媒体查询直接响应系统偏好，不依赖 JS 的 change 事件。
   JS 正常时 data-theme 已被正确设置，这里的变量值与之相同，不会产生冲突。 */
@media (prefers-color-scheme: dark) {
  :root[data-theme-mode="system"] {
    color-scheme: dark;
    --bg: #15161E;
    --card: #2E2F33;
    --accent: #29C2FF;
    --muted: #97a2a8;
    --font-1: rgba(236, 243, 246, 1);
    --font-2: rgba(236, 243, 246, 0.8);
    --font-3: rgba(236, 243, 246, 0.6);
    --font-4: rgba(236, 243, 246, 0.4);

    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --track: #2b353b;
    --brand-wash: rgba(41, 194, 255, 0.12);
    --brand-wash-strong: rgba(41, 194, 255, 0.24);
    --wrap-image-filter: invert(0.92) hue-rotate(180deg) brightness(0.72);
    --wrap-image-opacity: 0.7;
    --entry-arrow-filter: brightness(5);
    --switch-bg: rgba(255, 255, 255, 0.18);
    --switch-knob: #29C2FF;
    --compress-bar-bg: #29C2FF;
    --toast-bg: rgba(236, 243, 246, 0.96);
    --toast-fg: #15161E;
    --toast-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }
}

/* 主题过渡：切换时让页面颜色平滑变化，但尊重减少动态效果偏好 */
@media (prefers-reduced-motion: no-preference) {
  html.theme-transition,
  html.theme-transition body,
  html.theme-transition .entry-card,
  html.theme-transition .modal,
  html.theme-transition .sponsor-modal,
  html.theme-transition .settings-menu {
    transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
  }
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  font-family:阿里妈妈方圆体 VF Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url('/img/cursor.svg') 6 6, auto !important;
}

button,
a,
input[type="file"],
.sponsor-btn,
.sponsor-level,
.sponsor-payment-option,
.announcement-primary,
.preview-btn,
.settings-btn,
.settings-item,
.changelog-item,
.compression-entry,
.preview-entry,
.entry-card {
  cursor: url('/img/cursor.svg') 6 6, pointer !important;
}

img{
  pointer-events: none;
}

button {
  cursor: pointer;
  transition: all 0.3s;
  font-family: 阿里妈妈方圆体 VF Regular;
}

button:hover {
  transform: scale(1.1);
}

svg {
  pointer-events: none;
}

/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
@font-face {
  font-family: "阿里妈妈方圆体 VF Regular";src: url("//at.alicdn.com/wf/webfont/E8MsvTlikPPO/g3g9DvOWdPdf.woff2") format("woff2"),
  url("//at.alicdn.com/wf/webfont/E8MsvTlikPPO/ANGsC2dCtIpq.woff") format("woff");font-variation-settings: "BEVL" 100, "wght" 600;font-display: swap;
}

.webfont {
  font-family: "阿里妈妈方圆体 VF Regular";font-variation-settings: "BEVL" 100, "wght" 600; /* Chrome 140 以下版本需要 */}


.checkbox {
  position: relative;
  display: flex;
  grid-gap: 8px;
  justify-content: center;
  align-items: center;
  background: var(--card);
  height: 36px;
  border-radius: 18px;
  padding: 0 12px;
  transition: all 0.3s;
  font-family: 阿里妈妈方圆体 VF Regular;
}

.checkbox:hover {
  transform: scale(1.05);
}

.checkbox p {
  font-size: 14px;
  color: var(--font-1);
  margin: 0;
}

.checkbox .icon {
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 9px;
  background: var(--border-strong);
}

.on .icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: url("../img/checkbox_on.png");
  background-size: cover;
  transform: scale(1);
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 1.5, 0.5, 1);
}

.off .icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: url("../img/checkbox_on.png");
  background-size: cover;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s;
}

.checkbox input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nav {
  height: 80px;
  width: 60%;
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  grid-gap: 12px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav .logo {
  height: 48px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--font-1);
  white-space: nowrap;
}

.settings-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  color: var(--font-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.settings-menu {
  position: absolute;
  top: 66px;
  right: 0;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 236px;
  z-index: 1000;
  transform-origin: top right;
}

.settings-menu.show {
  display: flex;
  animation: showSettingsMenu 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.settings-menu.closing {
  display: flex;
  animation: closeSettingsMenu 0.2s ease forwards;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 16px;
  user-select: none;
  height: 44px;
  box-sizing: border-box;
  background: rgba(41, 194, 255, 0);
  transition: background 0.3s;

}

.menu-item:hover {
  background: var(--brand-wash);
}

/* 菜单图标统一跟随主题文字色：深色下偏白、浅色下偏深，蓝/白装饰部分单独着色 */
.menu-icon {
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--font-2);
}

.menu-label {
  font-size: 14px;
  color: var(--font-2);
  flex: 1;
  margin-right: 32px;
}

.settings-menu .lang-switch {
  color: var(--font-3);
  font-size: 14px;
}

/* 带二级菜单的一级项作为定位锚点（外观 / 语言通用） */
.has-submenu {
  position: relative;
}

.theme-menu-item {
  gap: 2px;
}

.theme-menu-item .menu-icon {
  color: var(--font-2);
}

.theme-menu-item .menu-label {
  margin-right: 0;
}

.submenu-arrow {
  flex-shrink: 0;
  color: var(--font-3);
  transition: transform 0.2s ease, color 0.2s ease;
}

.has-submenu:hover > .submenu-arrow,
.has-submenu.submenu-open > .submenu-arrow {
  transform: translateX(2px);
  color: var(--font-2);
}

/* 二级菜单：向右侧展开，顶部与一级项对齐 */
.submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  transform: translateX(-8px);
  min-width: 172px;
  padding: 8px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* 对齐选项控件规范：展开 180ms / 收起 120ms */
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s linear 0.12s;
  z-index: 1001;
}

/* 安全区：覆盖一级项与二级菜单之间的 12px 间隙并向外扩，
   让鼠标沿自然路径（含斜向）移动时 hover 不中断；
   上下各外扩 10px，形成可 hover 的三角通道 */
.submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -16px;
  width: 20px;
  height: calc(100% + 20px);
}

.has-submenu:hover > .submenu,
.has-submenu.submenu-open > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  /* 展开用 180ms，收起由基础规则的 120ms 承担 */
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* hover 切换到另一个一级项时，旧二级菜单立即消失（不走淡出），
   避免与新展开的菜单在过渡期叠加；下一帧移除该类以恢复常规过渡 */
.has-submenu.submenu-instant-hide > .submenu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--font-2);
  font-size: 13px;
  white-space: nowrap;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
}

.submenu-item:hover {
  background: var(--brand-wash);
  color: var(--font-1);
  transform: none;
}

/* 覆盖全局 button:hover 的放大效果，一级/二级菜单项只做颜色反馈 */
.has-submenu:hover,
.submenu-item:hover {
  transform: none;
}

.submenu-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.submenu-item-icon {
  flex-shrink: 0;
  color: var(--font-3);
}

.submenu-item .theme-seg-text,
.submenu-item .lang-seg-text {
  flex: 1;
}

.submenu-item-check {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.submenu-item[aria-checked="true"] {
  background: var(--brand-wash);
  color: var(--primary);
  font-weight: 600;
}

.submenu-item[aria-checked="true"] .submenu-item-icon {
  color: var(--primary);
}

.submenu-item[aria-checked="true"] .submenu-item-check {
  opacity: 1;
}

.settings-menu .checkbox {
  background: transparent;
  border-radius: 0;
  height: auto;
  padding: 0;
  grid-gap: 0;
}

.footer {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: var(--font-4);
}

.footer a {
  color: var(--font-4);
  transition: color 0.3s;
}

.footer a:visited {
  color: var(--font-4);
}

.footer a:active {
  color: var(--font-4);
}

.footer a:hover {
  color: var(--font-2);
}



.nav p {
  white-space: nowrap;
}

.announcement-entry {
  border: none;
  border-radius: 18px;
  padding: 0 14px;
  height: 36px;
  background: var(--card);
  color: var(--font-1);
  margin-left: auto;
}

.announcement-entry:hover {
  transform: scale(1.05);
}

.lang-switch {
  border: none;
  color: var(--font-1);
}

.wrap {
  width: 637px;
  height: 516px;
  left: calc(50% - 637px/2);
  top: calc(50% - 480px/2);
  transition: all 0.6s, transform 0.3s ease-out;
  transform-origin: top center;
  font-family: 阿里妈妈方圆体 VF Regular;
  display: flex;
  gap: 48px;
  background: var(--wrap-bg);
  background-size: cover;
  justify-content: center;
  align-items: flex-end;
}

/* 深色主题下换用反相后的城市剪影，避免大面积浅色底 */
:root[data-theme="dark"] {
  --wrap-bg: url("../img/drop_bg_dark.png");
}
@media (prefers-color-scheme: dark) {
  :root[data-theme-mode="system"] {
    --wrap-bg: url("../img/drop_bg_dark.png");
  }
}

.title {
  text-align: center;
}

.card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.entry-card {
  width: 240px;
  height: 360px;
  padding-top: 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  background: rgba(32, 43, 54, 0);
  border: 2px solid rgba(32, 43, 54, 0);
  border-radius: 32px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, transform 0.3s ease-out;
}

.entry-card.hover,
.entry-card:hover:not(.compress-disabled) {
  background: var(--brand-wash);
  border-color: rgba(41, 194, 255, 0.6);
}

.drop {
  position: relative;
  text-align: center;
}

.drop.compress-disabled {
  cursor: not-allowed;
}

.drop.compress-disabled .entry-illustration,
.drop.compress-disabled .entry-arrow,
.drop.compress-disabled .dropTitle {
  opacity: 0.4;
}

.drop.compress-disabled:hover {
  background: rgba(32, 43, 54, 0);
  border-color: rgba(32, 43, 54, 0);
}

.drop.compress-disabled:hover .entry-illustration,
.drop.compress-disabled:hover .entry-arrow,
.drop.compress-disabled:hover .dropTitle {
  opacity: 0.4;
}

.entry-illustration {
  position: relative;
  width: 150px;
  height: 180px;
}

.entry-arrow {
  width: 20px;
  animation: arrowloop 2s infinite;
  filter: var(--entry-arrow-filter);
}

.wrap .dropTitle {
  font-size: 18px;
  color: var(--font-1);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  position: absolute;
  bottom: 32px;
  padding: 10px 24px;
  border-radius: 29px;
  height: 58px;
  cursor: pointer;
  background: var(--accent);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  font-size: 16px;
  grid-gap: 8px;
  text-align: center;
}

.batch-compress-btn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: var(--surface-2);
  color: var(--font-1);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.batch-compress-btn:hover {
  background: var(--border-strong);
  transform: translateX(-50%) translateY(-1px);
}

/* 统一规范的关闭按钮样式 */
.btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 36px;
  width: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface-2);
  border-radius: 50%;
  border: 0px;
  color: var(--font-2);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close:hover {
  background: var(--border);
  transform: scale(1.1);
  color: var(--font-1);
}

.compress-progress {
  position: absolute;
  height: 8px;
  width: 160px;
  top: 0;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.3s;
}

.compress-progress>i {
  display: block;
  height: 100%;
  background: var(--compress-bar-bg);
  border-radius: 7px;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

.info {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

input[type=file] {
  display: none;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.notsuppport {
  text-align: center;
}

.notsuppport img {
  width: 120px;
}

/* --- 已统一规范的瘦身完成弹窗 --- */
.finishdialog {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 480px;
  height: 480px;
  background: var(--card, #FFFFFF);
  box-shadow: var(--shadow);
  /* 统一高级深邃阴影 */
  border-radius: 32px;
  /* 统一主流圆角 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(60px) scale(0.9);
  transform-origin: center;
  z-index: 9;
  font-family: "阿里妈妈方圆体 VF Regular", system-ui, sans-serif;
  box-sizing: border-box;
}

.finishdialog .topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.finishdialog .topbar .title {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 4px;
}

.finishdialog .topbar p {
  margin: 0;
  font-size: 18px;
  color: var(--font-1);
}

.finishdialog .jsonname-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 16px 0;
  width: 100%;
}

.finishdialog .nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.finishdialog .nav-btn:hover:not(:disabled) {
  background: var(--border);
  transform: scale(1.1);
}

.finishdialog .nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.finishdialog .jsonname {
  font-size: 14px;
  color: var(--font-4);
  pointer-events: none;
  font-family: system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 200px;
  text-align: center;
}

.finishdialog #lottie_firework {
  position: absolute;
  top: 0;
  pointer-events: none;
}

/* 统一引入带有微回弹曲线的动画过渡节奏 */
.finishdialog.show {
  animation: showFinishDialog 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.finishdialog.close {
  animation: closeFinishDialog 0.4s ease forwards;
}

.finishdialog .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finishdialog .illustration {
  width: 120px;
  height: 120px;
}

.finishdialog .content .title {
  display: flex;
  justify-content: center;
  grid-gap: 4px;
  font-size: 24px;
  padding-right: 16px;
  color: var(--font-1);
}

.finishdialog .content .title img {
  width: 32px;
}

.finishdialog .filedate {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 16px;
}

/* filedate 中间箭头跟随主题色，深色下不隐形 */
.finishdialog .filedate svg {
  color: var(--font-1);
}

.finishdialog .orgiSize {
  color: var(--font-1);
  font-size: 32px;
  margin: 0;
}

.finishdialog .outSize {
  font-size: 32px;
  margin: 0;
}

.toast {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  gap: 8px;
  position: absolute;
  height: 48px;
  left: 50%;
  top: 15%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--toast-bg);
  border-radius: 60px;
  color: var(--toast-fg);
  box-shadow: var(--toast-shadow);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 999;
}

.toast #ic_fail, .toast #ic_success {
  display: none;
  width: 24px;
}

.toasTtext {
  font-size: 16px;
  margin: 0;
}

.toast.show {
  animation: showtoast 2s;
}

#lottie_running .bg,
#preview_running .bg {
  display: block;
  transition: all 0.3s;
}

#lottie_running canvas,
#preview_running canvas {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  transition: all 0.3s;
}

/* 核心核心动画关键帧 */
@keyframes showFinishDialog {
  from {
    transform: translate(-50%, -50%) translateY(60px) scale(0.85);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes closeFinishDialog {
  from {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translate(-50%, -50%) translateY(60px) scale(0.85);
    opacity: 0;
  }
}

@keyframes showtoast {
  0% {
    transform: translateX(-50%) translateY(-80px);
    opacity: 0;
  }

  25% {
    transform: translateX(-50%) translateY(0px);
    opacity: 1;
  }

  75% {
    transform: translateX(-50%) translateY(0px);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-80px);
    opacity: 0;
  }
}

@keyframes arrowloop {
  0% {
    transform: translateY(0) rotate(-15deg);
  }

  50% {
    transform: translateY(10px) rotate(0);
  }

  100% {
    transform: translateY(0) rotate(-15deg);
  }
}

@keyframes showSettingsMenu {
  from {
    transform: translateY(-10px) scale(0.85);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes closeSettingsMenu {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translateY(-10px) scale(0.85);
    opacity: 0;
  }
}

body.compressing .nav,
body.compressing .wrap {
  pointer-events: none !important;
  cursor: not-allowed;
}
