@font-face {
  font-family: 'razmochaev';
  src:
    url('../assets/razmochaev.woff2') format('woff2'),
    url('../assets/razmochaev.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'razmochaev-lock';
  size-adjust: 140%;
  src:
    url('../assets/razmochaev.woff2') format('woff2'),
    url('../assets/razmochaev.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'clock-adttime-semibold';
  size-adjust: 140%;
  src: url('data:font/woff2;base64,d09GMgABAAAAAAvsABEAAAAAG+QAAAuQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbhEgcgVIGYACDWggmCYhZEQgKmzSYeQE2AiQDPgsiAAQgBYFCB1MMgiAbVhkjEcLGgYBNfnYQf3VgGzMf+o6OnTocxsqAAYRnBApOXPNjGCyHj9u/UNb6Nxa1SQXC3RGSzMLzVFf1fiQiXdWKgqKnY+CYWci+Qbkgz+vDCTL7vesRWtkJYVAsXCk1c3qFRB4OIewvPE+/9juPXSR+slhk/8yWgjbXRrXQSZ1IST79l4roHcAzSzcXpySFUzE9qfVRTdoTRrVDu7l3Aw8a1OsEtnswDwEyPBUGNvaZD6xgzy+Vl0gkclJoAMJDP1favKTNTNzlciVH4CoUspEkTLZ/4ZDRt2ur2CGisuiqZF3P6QpXtjnW4BCtLEu+dFjzTCZGadDpb+8RAgoAoIhQSQjIbOt8wezGW+7I5Mnx++2PPT/o5OWsLgT8f3VARja239AyTvRRd9sLY9VAeHHQ8UfTPShWmbMki4BAQPw6lYSSlTORsj8hyFkb29X5HvSFf0TG+WzZkVQE4gydkQQpyLMoImWkEYQik1KZXKYAmTAWycQJHUnyk8ayWB4rYmWORBTE2XS2BKSJPK0IQjJyYQIKwAuBHllKwFlcSp+GcB9gaRo8DgEDXmaWpIEQIBPKK0p4FDGJJWt5QSpNxnjR9gmCZEKjFBX+IdDQ2JvSFgJrebG4BP2vIOtaEaPFIZMRc3tN/O5IpYF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LQConWnORNb8q2s7GWbrmxgNUu4mvvkBZoomxqKAQ==') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 768px) {
  @font-face {
    font-family: 'razmochaev-lock';
    size-adjust: 110%;
    src:
      url('../assets/razmochaev.woff2') format('woff2'),
      url('../assets/razmochaev.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'clock-adttime-semibold';
    size-adjust: 110%;
    src: url('data:font/woff2;base64,d09GMgABAAAAAAvsABEAAAAAG+QAAAuQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbhEgcgVIGYACDWggmCYhZEQgKmzSYeQE2AiQDPgsiAAQgBYFCB1MMgiAbVhkjEcLGgYBNfnYQf3VgGzMf+o6OnTocxsqAAYRnBApOXPNjGCyHj9u/UNb6Nxa1SQXC3RGSzMLzVFf1fiQiXdWKgqKnY+CYWci+Qbkgz+vDCTL7vesRWtkJYVAsXCk1c3qFRB4OIewvPE+/9juPXSR+slhk/8yWgjbXRrXQSZ1IST79l4roHcAzSzcXpySFUzE9qfVRTdoTRrVDu7l3Aw8a1OsEtnswDwEyPBUGNvaZD6xgzy+Vl0gkclJoAMJDP1favKTNTNzlciVH4CoUspEkTLZ/4ZDRt2ur2CGisuiqZF3P6QpXtjnW4BCtLEu+dFjzTCZGadDpb+8RAgoAoIhQSQjIbOt8wezGW+7I5Mnx++2PPT/o5OWsLgT8f3VARja239AyTvRRd9sLY9VAeHHQ8UfTPShWmbMki4BAQPw6lYSSlTORsj8hyFkb29X5HvSFf0TG+WzZkVQE4gydkQQpyLMoImWkEYQik1KZXKYAmTAWycQJHUnyk8ayWB4rYmWORBTE2XS2BKSJPK0IQjJyYQIKwAuBHllKwFlcSp+GcB9gaRo8DgEDXmaWpIEQIBPKK0p4FDGJJWt5QSpNxnjR9gmCZEKjFBX+IdDQ2JvSFgJrebG4BP2vIOtaEaPFIZMRc3tN/O5IpYFn+x15orijWHlOc9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7GWbrmxgNUu4mvvkBZoomxqKAQ==') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
}

:root {
  --accent: 200, 180, 255;
  --accent-deep: 160, 140, 255;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #010208;
}

#space-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #010208;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Инжектируемый WebGL-слой LiquidGlass (строго по центру кнопки) ─── */

.lg-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-card > * {
    animation: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .fullscreen-btn.is-blinking,
  .settings-btn.is-blinking {
    animation: none !important;
  }
}

/* ─── Карточка (прозрачная, элементы свободно парят над космосом) ─── */

.bio {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.bio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  user-select: none;
  -webkit-user-select: none;
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-page-leaving .bio-card {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.96);
  filter: blur(6px);
  pointer-events: none;
}

.bio-card > * {
  animation: card-appear 0.68s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bio-card > *:nth-child(1) { animation-delay: 0.04s; }
.bio-card > *:nth-child(2) { animation-delay: 0.12s; }
.bio-card > *:nth-child(3) { animation-delay: 0.20s; }

/* ─── Аватар ─────────────────────────────────────────── */

.avatar-wrap {
  display: block;
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-wrap:hover {
  transform: translate3d(0, -2px, 0) scale(1.03);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.5),
    0 0 22px rgba(255, 255, 255, 0.15);
}

.avatar-wrap:active {
  transform: translate3d(0, 0, 0) scale(0.96);
}

.avatar-wrap:focus-visible {
  outline: 2px solid rgba(var(--accent), 0.78);
  outline-offset: 4px;
}

/* Прозрачный оверлей — перехватывает правый клик и drag */
.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-user-drag: none;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Ник ────────────────────────────────────────────── */

.username {
  position: relative;
  isolation: isolate;
  font-family: 'razmochaev', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 4vw, 1.25rem);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 0 20px rgba(var(--accent), 0.5),
    0 0 40px rgba(var(--accent-deep), 0.2);
}

/* ─── Соцсети (круглые линзы Liquid Glass) ───────────── */

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.social-link {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease;
}

.social-link.lg-active {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.social-link svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.36));
}

.social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-link:not(.lg-active):hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.social-link:active {
  transform: translateY(0) scale(0.95);
}

.social-link:focus-visible {
  outline: 2px solid rgba(var(--accent), 0.78);
  outline-offset: 4px;
}

@media (max-width: 430px) {
  .socials {
    gap: 14px;
  }
}

/* ─── Скрытые кнопки справа снизу (полный экран и настройки) ── */

.fullscreen-btn,
.settings-btn,
.center-btn,
.hint-btn,
.lang-btn,
.night-btn {
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease;
}

.fullscreen-btn,
.settings-btn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    background 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease;
}

@keyframes cornerBtnBlink {
  0%,
  28%,
  100% {
    opacity: 0;
  }
  56%,
  66% {
    opacity: 0.86;
  }
}

@keyframes cornerBtnBlinkNight {
  0%,
  28%,
  100% {
    opacity: 0;
  }
  56%,
  66% {
    opacity: 0.52;
  }
}

.fullscreen-btn.is-blinking,
.settings-btn.is-blinking {
  animation: cornerBtnBlink 2.5s ease-in-out infinite;
}

.lockscreen.is-visible.is-night ~ .fullscreen-btn.is-blinking,
.lockscreen.is-visible.is-night ~ .settings-btn.is-blinking {
  animation: cornerBtnBlinkNight 2.5s ease-in-out infinite;
}

.settings-btn {
  right: 20px;
}

.fullscreen-btn {
  right: 78px;
}

.settings-menu {
  position: fixed;
  right: 20px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.settings-menu.is-open {
  pointer-events: auto;
}

.center-btn,
.hint-btn,
.lang-btn,
.night-btn {
  position: relative;
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, 18px, 0) scale(0.76);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.settings-menu:not(.is-open) > :nth-child(1) { transition-delay: 0ms; }
.settings-menu:not(.is-open) > :nth-child(2) { transition-delay: 25ms; }
.settings-menu:not(.is-open) > :nth-child(3) { transition-delay: 50ms; }
.settings-menu:not(.is-open) > :nth-child(4) { transition-delay: 75ms; }

.settings-menu.is-open .center-btn,
.settings-menu.is-open .hint-btn,
.settings-menu.is-open .lang-btn,
.settings-menu.is-open .night-btn {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0px);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 380ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 440ms cubic-bezier(0.16, 1, 0.3, 1),
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    box-shadow 260ms ease;
}

.settings-menu.is-open > :nth-child(4) { transition-delay: 0ms; }
.settings-menu.is-open > :nth-child(3) { transition-delay: 38ms; }
.settings-menu.is-open > :nth-child(2) { transition-delay: 76ms; }
.settings-menu.is-open > :nth-child(1) { transition-delay: 114ms; }

.fullscreen-btn.lg-active,
.settings-btn.lg-active,
.center-btn.lg-active,
.hint-btn.lg-active,
.lang-btn.lg-active,
.night-btn.lg-active {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.fullscreen-btn svg,
.settings-btn svg,
.center-btn svg,
.hint-btn svg,
.night-btn svg {
  grid-area: 1 / 1;
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.36));
}

.fullscreen-btn svg,
.center-btn svg,
.hint-btn svg,
.lang-btn svg,
.night-btn svg {
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.settings-btn svg {
  transition: transform 440ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-btn.is-triggered,
.settings-btn.is-open {
  opacity: 1;
  color: #fff;
}

.fullscreen-btn:not(.lg-active).is-triggered,
.settings-btn:not(.lg-active).is-open {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.settings-btn.is-open svg {
  transform: rotate(90deg);
}

.lang-btn svg {
  grid-area: 1 / 1;
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.36));
}

.fullscreen-btn svg.icon-swap-out,
.center-btn svg.icon-swap-out,
.hint-btn svg.icon-swap-out,
.lang-btn svg.icon-swap-out,
.night-btn svg.icon-swap-out {
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.36)) blur(3px);
  pointer-events: none;
  transform: scale(0.62) rotate(-18deg);
}

.fullscreen-btn svg.icon-swap-in,
.center-btn svg.icon-swap-in,
.hint-btn svg.icon-swap-in,
.lang-btn svg.icon-swap-in,
.night-btn svg.icon-swap-in {
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.36)) blur(3px);
  transform: scale(0.62) rotate(18deg);
  transition: none !important;
}

.center-btn svg.icon-swap-out[data-swap="up"] {
  transform: translate3d(0, -6px, 0) scale(0.8);
}

.center-btn svg.icon-swap-out[data-swap="down"] {
  transform: translate3d(0, 6px, 0) scale(0.8);
}

.center-btn svg.icon-swap-in[data-swap="up"] {
  transform: translate3d(0, 6px, 0) scale(0.8);
}

.center-btn svg.icon-swap-in[data-swap="down"] {
  transform: translate3d(0, -6px, 0) scale(0.8);
}

@media (hover: hover) {
  .fullscreen-btn:hover,
  .settings-btn:hover,
  .settings-menu.is-open .center-btn:hover,
  .settings-menu.is-open .hint-btn:hover,
  .settings-menu.is-open .lang-btn:hover,
  .settings-menu.is-open .night-btn:hover {
    opacity: 1;
    color: #fff;
    transform: translateY(-2px);
    transition-delay: 0ms;
  }

  .fullscreen-btn:not(.lg-active):hover,
  .settings-btn:not(.lg-active):hover,
  .settings-menu.is-open .center-btn:not(.lg-active):hover,
  .settings-menu.is-open .hint-btn:not(.lg-active):hover,
  .settings-menu.is-open .lang-btn:not(.lg-active):hover,
  .settings-menu.is-open .night-btn:not(.lg-active):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

.fullscreen-btn:active,
.settings-btn:active,
.settings-menu.is-open .center-btn:active,
.settings-menu.is-open .hint-btn:active,
.settings-menu.is-open .lang-btn:active,
.settings-menu.is-open .night-btn:active {
  opacity: 1;
  color: #fff;
  transform: translateY(0) scale(0.95);
  transition-delay: 0ms;
}

.fullscreen-btn:focus-visible,
.settings-btn:focus-visible,
.center-btn:focus-visible,
.hint-btn:focus-visible,
.lang-btn:focus-visible,
.night-btn:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(var(--accent), 0.78);
  outline-offset: 4px;
}

.lockscreen.is-visible.is-night ~ .fullscreen-btn:not(.lg-active),
.lockscreen.is-visible.is-night ~ .settings-btn:not(.lg-active),
.lockscreen.is-visible.is-night ~ .settings-menu button:not(.lg-active) {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ─── Капсулы навигации / проектов (Liquid Glass) ────── */

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.projects-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.project-link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 13px 7px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-family: 'razmochaev', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-shadow:
    0 0 20px rgba(var(--accent), 0.5),
    0 0 40px rgba(var(--accent-deep), 0.2);
  transition:
    background 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    transform 540ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease,
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-link.lg-active {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.project-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
}

.project-logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  -webkit-user-drag: none;
}

.project-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-name {
  white-space: nowrap;
  line-height: 1;
}

.project-link:hover {
  color: #fff;
  transform: translateY(-2px);
  transition-duration: 360ms;
}

.project-link:not(.lg-active):hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.project-link:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 240ms;
}

.project-link:focus-visible {
  outline: 2px solid rgba(var(--accent), 0.78);
  outline-offset: 4px;
}

.project-link.is-idle {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.94);
  filter: blur(6px);
  pointer-events: none;
}

/* ─── Экран блокировки с часами (режим ожидания на /) ── */

.lockscreen {
  --fg-dim: rgba(212, 223, 238, 0.82);
  --shadow-soft: 0 1px 8px rgba(0, 0, 0, 0.5);
  --shadow-time: 0 6px 28px rgba(0, 0, 0, 0.35);
  --clock-top: 72px;
  --burnin-x: 0px;
  --burnin-y: 0px;
  --month-dot-size: 9px; /* базовый размер квадратика дня */
  --month-dot-gap: 3.5px; /* зазор между квадратиками в сетке */
  --month-dot-radius: 28%; /* радиус скругления квадратика (~28% стороны) */
  --month-dot-active: rgba(245, 250, 255, 0.92); /* цвет прошедших дней и сегодня */
  --month-dot-inactive: rgba(198, 213, 232, 0.22); /* цвет оставшихся дней месяца */
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
  color: #ffffff;
  background-color: transparent;
  font-family: 'razmochaev-lock', 'razmochaev', sans-serif;
  font-weight: 400;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  visibility: hidden;
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1200ms ease,
    visibility 0s linear 560ms;
  will-change: transform, opacity, filter;
}

.lockscreen * {
  font-family: 'razmochaev-lock', 'razmochaev', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.lockscreen.is-visible {
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  visibility: visible;
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1200ms ease,
    visibility 0s linear 0s;
}

.lockscreen.is-visible.is-night {
  background-color: #000000;
}

.lockscreen.is-visible.is-night .clock-wrap,
.lockscreen.is-visible.is-night .unlock-hint {
  opacity: 0.48;
}

.lockscreen.is-visible.is-drifting .clock-wrap {
  transition:
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 28s ease-in-out,
    opacity 1200ms ease,
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lockscreen.is-visible.is-drifting .unlock-hint {
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 28s ease-in-out,
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 460ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease,
    text-shadow 180ms ease,
    visibility 0s linear 0s;
}

.clock-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  padding: 0 12px;
  z-index: 1;
  isolation: isolate;
  translate: 0px 0px;
  transition:
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, translate, opacity, filter;
}

.lock-blur-canvas {
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 600ms ease;
}

.lockscreen.is-night .lock-blur-canvas {
  opacity: 0;
}

.lockscreen:not(.is-visible) .clock-wrap {
  translate: 0px 0px;
  transform: translate3d(0, calc(var(--clock-top) - 64px), 0) scale(0.965);
  opacity: 0;
  filter: blur(6px);
}

.lockscreen.is-visible .clock-wrap {
  translate: var(--burnin-x, 0px) var(--burnin-y, 0px);
  transform: translate3d(0, var(--clock-top), 0) scale(1);
  opacity: 1;
  filter: blur(0px);
}

.lockscreen.is-centered:not(.is-visible) .clock-wrap {
  translate: 0px 0px;
  transform: translate3d(0, calc(50vh - 50% - 64px), 0) scale(0.965);
  transform: translate3d(0, calc(50dvh - 50% - 64px), 0) scale(0.965);
}

.lockscreen.is-centered.is-visible .clock-wrap {
  translate: var(--burnin-x, 0px) var(--burnin-y, 0px);
  transform: translate3d(0, calc(50vh - 50%), 0) scale(1);
  transform: translate3d(0, calc(50dvh - 50%), 0) scale(1);
}

.lockscreen .date,
.lockscreen .calendar-weekday,
.lockscreen .month-name,
.lockscreen .worldclock-city {
  transition:
    opacity 360ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 360ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.lockscreen.is-lang-switching .date,
.lockscreen.is-lang-switching .calendar-weekday,
.lockscreen.is-lang-switching .month-name,
.lockscreen.is-lang-switching .worldclock-city {
  opacity: 0;
  transform: translate3d(0, -6px, 0) scale(0.96);
  filter: blur(5px);
  transition:
    opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lockscreen.is-lang-entering .date,
.lockscreen.is-lang-entering .calendar-weekday,
.lockscreen.is-lang-entering .month-name,
.lockscreen.is-lang-entering .worldclock-city {
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(0.96);
  filter: blur(5px);
  transition: none !important;
}

.iphone-lockscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.time {
  font-family: 'clock-adttime-semibold', 'razmochaev-lock', sans-serif;
  font-size: clamp(5.4rem, 14vw, 6.4rem);
  line-height: 0.96;
  font-weight: 400;
  font-synthesis: none;
  -webkit-text-stroke: 0;
  letter-spacing: -0.038em;
  text-indent: -0.038em;
  margin: 0;
  color: #f6fbff;
  text-shadow: none;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.35));
}

.date {
  margin: 0 0 0.2rem;
  font-size: clamp(0.92rem, 2.8vw, 1.06rem);
  color: rgba(244, 249, 255, 0.88);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-indent: -0.015em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.lock-widgets {
  margin: -9px auto 0;
  width: min(352px, calc(100vw - 20px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 14px;
  align-items: stretch;
  text-shadow: none;
}

.lock-widget {
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  width: 100%;
  height: 94px;
  min-width: 0;
  color: rgba(248, 252, 255, 0.95);
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  height: 100%;
}

.calendar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  min-height: 22px;
  height: 22px;
  width: 100%;
}

.calendar-row > span {
  width: calc(100% / 7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-weekday {
  font-size: 9.5px;
  letter-spacing: 0.15px;
  opacity: 0.86;
  color: rgba(239, 247, 255, 0.95);
  text-shadow: var(--shadow-soft);
  font-weight: 400;
}

.calendar-day-chip {
  min-width: 16px;
  height: 16px;
  padding-top: 1.5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  line-height: 1;
  color: rgba(248, 251, 255, 0.96);
  text-shadow: var(--shadow-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.calendar-day-chip.past {
  color: rgba(198, 213, 232, 0.74);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.calendar-day-chip.active {
  position: relative;
  isolation: isolate;
  min-width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  font-weight: 400;
  font-size: 10.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transition:
    box-shadow 650ms cubic-bezier(0.22, 1, 0.36, 1),
    background 400ms ease,
    border-color 400ms ease;
}

.calendar-day-chip.active.lg-active {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.lockscreen.is-night .calendar-day-chip.active,
.lockscreen.is-night .calendar-day-chip.active.lg-active {
  box-shadow: inset 0 0 0 1.25px rgba(255, 255, 255, 0.88);
}

.month-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  height: 100%;
  text-align: left;
}

.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 22px;
}

.month-name {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.15px;
  line-height: 1;
  opacity: 0.86;
  color: rgba(239, 247, 255, 0.95);
  text-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.month-percent {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(248, 251, 255, 0.96);
  text-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.month-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: var(--month-dot-gap);
  align-content: space-between;
  padding: 6px 0 5px;
  width: 100%;
}

.month-day-dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--month-dot-radius);
  background: var(--month-dot-inactive);
  transition:
    background-color 450ms ease,
    box-shadow 450ms ease;
}

.month-day-dot.is-active {
  background: var(--month-dot-active);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.worldclock-widget {
  grid-column: 1 / -1;
  justify-self: center;
  width: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  text-align: left;
  padding: 0;
  height: 94px;
}

.worldclock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.25;
  min-height: 22px;
  height: 22px;
  color: rgba(245, 250, 255, 0.95);
  font-weight: 400;
}

.worldclock-city {
  font-size: 9.5px;
  letter-spacing: 0.15px;
  opacity: 0.86;
  font-weight: 400;
  white-space: nowrap;
}

.worldclock-time {
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  font-size: 10.5px;
  text-align: right;
  letter-spacing: 0.12px;
  font-weight: 400;
}

@media (max-width: 420px) {
  .lockscreen {
    --clock-top: 64px;
    --month-dot-size: 8px;
    --month-dot-gap: 3px;
  }

  .date {
    font-size: clamp(0.88rem, 3.6vw, 1rem);
    letter-spacing: -0.008em;
    text-indent: -0.008em;
    margin: 0 0 0.12rem;
  }

  .time {
    font-size: clamp(5rem, 21vw, 6rem);
  }

  .lock-widgets {
    margin-top: -9px;
    width: min(310px, calc(100vw - 50px));
    column-gap: 12px;
    row-gap: 12px;
  }

  .lock-widget {
    height: 92px;
    border-radius: 0;
    padding: 0;
  }

  .month-widget {
    height: 100%;
    gap: 0;
  }

  .month-header {
    height: 21px;
  }

  .month-name {
    font-size: 9px;
  }

  .month-percent {
    font-size: 9.5px;
  }

  .month-grid {
    padding: 5px 0 7px;
  }

  .calendar-row {
    gap: 2px;
    margin-top: 0;
    min-height: 21px;
    height: 21px;
  }

  .calendar-weekday {
    font-size: 9px;
  }

  .worldclock-city {
    font-size: 9px;
  }

  .calendar-day-chip {
    min-width: 16px;
    height: 16px;
    font-size: 9.5px;
  }

  .worldclock-time {
    font-size: 9.5px;
  }

  .worldclock-row {
    font-size: 11px;
    gap: 6px;
    line-height: 1.25;
    min-height: 21px;
    height: 21px;
  }

  .worldclock-widget {
    width: 146px;
    padding: 0;
    gap: 0;
    height: 92px;
  }
}

@media (min-width: 769px) {
  .lockscreen {
    --clock-top: 130px;
    --month-dot-size: 16px;
    --month-dot-gap: 6px;
  }

  .time {
    font-size: clamp(8rem, 9.5vw, 10.5rem);
    letter-spacing: -0.042em;
    text-indent: -0.042em;
  }

  .date {
    font-size: clamp(1.15rem, 1.3vw, 1.45rem);
    margin: 0.15rem 0 1.6rem;
    letter-spacing: -0.012em;
    text-indent: -0.012em;
  }

  .lock-widgets {
    margin-top: 8px;
    width: min(640px, calc(100vw - 80px));
    column-gap: 36px;
    row-gap: 24px;
  }

  .lock-widget {
    height: 132px;
    padding: 0;
  }

  .month-widget {
    height: 100%;
    gap: 0;
  }

  .month-header {
    height: 28px;
  }

  .month-name {
    font-size: 11px;
  }

  .month-percent {
    font-size: 12.5px;
  }

  .month-grid {
    padding: 13px 0 8px;
  }

  .calendar-row {
    min-height: 28px;
    height: 28px;
  }

  .calendar-weekday {
    font-size: 11px;
  }

  .calendar-day-chip {
    min-width: 20px;
    height: 20px;
    padding-top: 2px;
    font-size: 12px;
  }

  .calendar-day-chip.active {
    min-width: 24px;
    height: 24px;
    font-size: 12.5px;
  }

  .worldclock-row {
    min-height: 28px;
    height: 28px;
    font-size: 13px;
    gap: 12px;
  }

  .worldclock-city {
    font-size: 11px;
  }

  .worldclock-time {
    font-size: 12.5px;
    min-width: 52px;
  }

  .worldclock-widget {
    width: 236px;
    height: 132px;
  }
}

.unlock-hint {
  position: absolute;
  left: 50%;
  translate: 0px 0px;
  transform: translate3d(-50%, 0, 0) scale(1);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--fg-dim);
  text-shadow: var(--shadow-soft);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2px;
  cursor: pointer;
  padding: 8px 12px;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 460ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease,
    text-shadow 180ms ease,
    visibility 0s linear 0s;
  transform-origin: center;
  isolation: isolate;
}

.lockscreen.is-visible .unlock-hint {
  pointer-events: auto;
  translate: var(--burnin-x, 0px) var(--burnin-y, 0px);
  transform: translate3d(-50%, 0, 0) scale(1);
  filter: blur(0px);
}

.lockscreen.is-visible .unlock-hint:active,
.unlock-hint:active {
  transform: translate3d(-50%, 0, 0) scale(0.985);
}

.lockscreen:not(.is-visible) .unlock-hint {
  pointer-events: none;
  opacity: 0;
  filter: blur(6px);
  translate: 0px 0px;
  transform: translate3d(-50%, 16px, 0) scale(0.92);
}

.lockscreen .unlock-hint.is-hidden,
.lockscreen.is-visible .unlock-hint.is-hidden,
.unlock-hint.is-hidden {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(-50%, 16px, 0) scale(0.92);
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 28s ease-in-out,
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 460ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease,
    text-shadow 180ms ease,
    visibility 0s linear 520ms;
}

.unlock-hint::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 150%;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.unlock-hint-text {
  opacity: 1;
  animation: blinkText 2.6s ease-in-out infinite;
  cursor: pointer;
}

.unlock-hint.is-pressing {
  animation: hapticTap 180ms cubic-bezier(0.22, 1, 0.36, 1);
  color: rgba(235, 244, 255, 0.98);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.unlock-hint.is-pressing::after {
  animation: hapticGlow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes blinkText {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

@keyframes hapticTap {
  0% {
    transform: translateX(-50%) scale(1);
  }
  35% {
    transform: translateX(-50%) scale(0.972);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes hapticGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  45% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
