:root {
  --red: #ff073a;
  --red-soft: #ff365f;
  --red-deep: #770013;
  --black: #080508;
  --ink: #fff7f8;
  --muted: rgba(255, 247, 248, 0.68);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--black);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.entry-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 28, 70, 0.28), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(255, 6, 58, 0.42), transparent 30%),
    radial-gradient(circle at 84% 80%, rgba(255, 67, 93, 0.2), transparent 32%),
    linear-gradient(135deg, #0b0407 0%, #210009 48%, #060307 100%);
}

.entry-loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 28, 70, 0.34), transparent 26%),
    radial-gradient(circle at 18% 18%, rgba(255, 6, 58, 0.28), transparent 30%),
    linear-gradient(135deg, #0b0407 0%, #210009 52%, #060307 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 360ms ease,
    visibility 360ms step-end;
}

.entry-loader::before,
.entry-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry-loader::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0 44%, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

.entry-loader::after {
  opacity: 0.18;
  background-image:
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
}

.entry-loader-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(255, 119, 151, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(65, 12, 28, 0.78), rgba(20, 4, 11, 0.72));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 48px rgba(255, 22, 72, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.entry-loader-mark::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 62, 101, 0.28);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.entry-loader-mark svg {
  width: 38px;
  height: 38px;
  fill: #ff315d;
  filter:
    drop-shadow(0 0 16px rgba(255, 49, 93, 0.76))
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.34));
}

body:not(.is-entry-ready) .entry-topbar,
body:not(.is-entry-ready) .hero,
body:not(.is-entry-ready) .auth-modal,
body:not(.is-entry-ready) .info-modal {
  opacity: 0;
  visibility: hidden;
}

body.is-entry-ready .entry-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-entry-ready .entry-topbar,
body.is-entry-ready .hero {
  animation: entryReveal 420ms ease both;
}

.noise,
.scan-grid,
.beam {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.noise {
  opacity: 0.18;
  background-image:
    linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0 1px, transparent 1px 6px);
  mix-blend-mode: screen;
}

.scan-grid {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0 42%, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

.beam {
  width: 42vw;
  height: 180vh;
  inset: auto;
  top: -44vh;
  filter: blur(24px);
  opacity: 0.4;
  transform-origin: center;
}

.beam-a {
  left: 10vw;
  background: linear-gradient(90deg, transparent, rgba(255, 9, 58, 0.55), transparent);
  rotate: 24deg;
  animation: beamSweep 8s ease-in-out infinite;
}

.beam-b {
  right: 7vw;
  background: linear-gradient(90deg, transparent, rgba(255, 93, 118, 0.34), transparent);
  rotate: -28deg;
  animation: beamSweep 10s ease-in-out infinite reverse;
}

.hero {
  position: relative;
  display: flex;
  width: min(100%, 920px);
  min-height: calc(100vh - clamp(120px, 18vh, 170px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vh, 26px);
  text-align: center;
}

.auth-topbar {
  position: absolute;
  top: clamp(18px, 4vh, 34px);
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(calc(100% - 40px), 1180px);
  min-height: 68px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(42, 10, 20, 0.82), rgba(18, 5, 11, 0.74));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  translate: -50% 0;
}

.topbar {
  position: absolute;
  top: clamp(16px, 3vh, 30px);
  left: 50%;
  z-index: 4;
  display: flex;
  width: min(calc(100% - 64px), 1180px);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 119, 151, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 22, 72, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(42, 10, 20, 0.76), rgba(18, 5, 11, 0.68));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  translate: -50% 0;
}

.entry-topbar,
.entry-topbar .brand,
.entry-topbar .brand-text,
.entry-topbar .brand-seo,
.entry-topbar .nav,
.entry-topbar .top-actions {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.entry-topbar .brand {
  min-width: 164px;
}

.entry-topbar .heart-mark {
  animation: none !important;
}

.entry-topbar .nav {
  flex: 0 0 220px;
}

.entry-topbar .top-actions {
  min-width: 92px;
  justify-content: flex-end;
}

body:not(.is-entry-ready) .entry-topbar .brand-text,
body:not(.is-entry-ready) .entry-topbar .nav-link,
body:not(.is-entry-ready) .entry-topbar .theme-option {
  visibility: hidden;
}

.brand,
.nav-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 12px;
}

.heart-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: url("#authHeartGradient");
  filter: drop-shadow(0 8px 14px rgba(255, 22, 72, 0.28));
  transform-origin: center;
  animation: onlineHeart 1.35s ease-in-out infinite;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #fff7f8;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-seo {
  color: #ff315d;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(255, 49, 93, 0.34);
}

.nav {
  --nav-indicator-x: 6px;
  --nav-indicator-w: 104px;
  position: relative;
  display: inline-flex;
  gap: 3px;
  padding: 6px;
  border: 0;
  border-radius: 20px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(31, 6, 17, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(10, 0, 4, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.08);
}

.nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: var(--nav-indicator-w);
  border-radius: 14px;
  background:
    linear-gradient(112deg, transparent 0 31%, rgba(255, 255, 255, 0.34) 42%, rgba(255, 205, 218, 0.18) 48%, transparent 59%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 58%, rgba(30, 0, 11, 0.2) 100%),
    radial-gradient(circle at 20% 24%, rgba(255, 214, 223, 0.28), transparent 22%),
    radial-gradient(circle at 82% 68%, rgba(255, 25, 73, 0.22), transparent 28%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 24% 72%, rgba(42, 0, 13, 0.24) 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 74% 26%, rgba(255, 255, 255, 0.075) 0 0.7px, transparent 1.4px),
    linear-gradient(180deg, rgba(142, 28, 56, 0.94), rgba(86, 9, 31, 0.96));
  background-size:
    190% 100%,
    100% 100%,
    120% 110%,
    128% 128%,
    34px 100%,
    9px 8px,
    11px 13px,
    100% 100%;
  background-position:
    -105% 0,
    0 0,
    0 0,
    100% 100%,
    0 0,
    0 0,
    0 0,
    0 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 223, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 14px rgba(29, 0, 10, 0.32),
    0 0 10px rgba(255, 214, 223, 0.16),
    0 0 22px rgba(255, 35, 79, 0.24);
  opacity: 1;
  transform: translate3d(var(--nav-indicator-x), 0, 0);
  filter: saturate(1.18) contrast(1.08) brightness(1.04);
  animation: navIndicatorDrift 6.5s linear infinite;
  pointer-events: none;
}

.nav::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: var(--nav-indicator-w);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.72;
  transform: translate3d(var(--nav-indicator-x), 0, 0);
  mix-blend-mode: screen;
  pointer-events: none;
}

.nav-link {
  position: relative;
  z-index: 1;
  min-width: 104px;
  max-width: 104px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 207, 219, 0.52);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition: color 220ms ease, text-shadow 220ms ease;
}

.nav-link.is-active {
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.62),
    0 0 24px rgba(255, 91, 120, 0.42);
}

.nav-link:not(.is-active):hover {
  color: rgba(255, 248, 249, 0.82);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-switch {
  display: inline-grid;
  gap: 1px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-option {
  min-width: 38px;
  min-height: 19px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 207, 219, 0.48);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.theme-option.is-active {
  color: #ffd6df;
  text-shadow:
    0 0 8px rgba(255, 214, 223, 0.68),
    0 0 18px rgba(255, 91, 120, 0.48);
  cursor: default;
}

.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.logout-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 15px;
  color: rgba(255, 247, 250, 0.78);
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(39, 16, 29, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 12px rgba(20, 0, 8, 0.22);
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.logout-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transform: translateX(1px);
  transition: transform 180ms ease, filter 180ms ease;
}

.logout-button:hover,
.logout-button:focus-visible {
  color: #ff6f8d;
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 214, 223, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 111, 141, 0.18), rgba(255, 111, 141, 0.08)),
    rgba(54, 24, 44, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 111, 141, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -8px 12px rgba(20, 0, 8, 0.18),
    0 0 18px rgba(255, 35, 79, 0.22);
}

.logout-button:hover svg,
.logout-button:focus-visible svg {
  transform: translateX(2px);
  filter: drop-shadow(0 0 8px rgba(255, 111, 141, 0.42));
}

.auth-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: white;
  text-decoration: none;
}

.auth-heart {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: url("#authHeartGradient");
  filter: drop-shadow(0 8px 14px rgba(255, 22, 72, 0.24));
  animation: onlineHeart 1.35s ease-in-out infinite;
}

.auth-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 19px;
  font-weight: 900;
}

.auth-brand-text span:last-child {
  color: #ff315d;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(255, 49, 93, 0.34);
}

.auth-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-grid;
  gap: 1px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.language-option {
  min-width: 30px;
  min-height: 18px;
  border: 0;
  border-radius: 0;
  color: rgba(255, 207, 219, 0.48);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  text-shadow: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    opacity 180ms ease;
}

.language-option:hover {
  color: rgba(255, 244, 247, 0.82);
  text-shadow: 0 0 10px rgba(255, 214, 223, 0.34);
}

.language-option.is-active {
  color: #ffd6df;
  background: transparent;
  box-shadow: none;
  text-shadow:
    0 0 8px rgba(255, 214, 223, 0.68),
    0 0 18px rgba(255, 91, 120, 0.48);
  cursor: default;
}

.topbar-login {
  position: relative;
  display: inline-flex;
  width: 82px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 156, 177, 0.24);
  border-radius: 14px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 119, 151, 0.88), rgba(187, 25, 72, 0.86) 54%, rgba(109, 0, 31, 0.9));
  box-shadow:
    0 14px 34px rgba(219, 28, 82, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(62, 0, 14, 0.34);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

body.lang-en .topbar-login {
  font-size: 12px;
}

.topbar-login::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at var(--shine-x, 18%) 0%, rgba(255, 255, 255, 0.26), transparent 34%);
  opacity: 0.56;
  pointer-events: none;
}

.topbar-login::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -35%;
  width: 38px;
  height: 210%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0;
  transform: translateX(-20px) rotate(18deg);
  transition: opacity 180ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar-login span {
  position: relative;
  z-index: 1;
  transition: transform 220ms ease, letter-spacing 220ms ease;
}

.topbar-login:hover {
  border-color: rgba(255, 184, 199, 0.42);
  filter: brightness(1.05) saturate(1.03);
  box-shadow:
    0 18px 44px rgba(219, 28, 82, 0.26),
    0 0 0 5px rgba(255, 119, 151, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -2px 0 rgba(62, 0, 14, 0.34);
  transform: translateY(-2px);
}

.topbar-login:hover::after {
  opacity: 1;
  transform: translateX(190px) rotate(18deg);
}

.topbar-login:hover span {
  letter-spacing: 0.01em;
  transform: translateY(-1px);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 0, 4, 0.62);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.auth-modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(255, 119, 151, 0.2);
  border-radius: 28px;
  color: #fff7f8;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 65, 101, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(47, 9, 21, 0.9), rgba(18, 4, 10, 0.88));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal.is-open .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.auth-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  padding-right: 44px;
}

.auth-modal-head .overline,
.auth-modal-head h2 {
  grid-column: 1 / -1;
}

.auth-modal-head .overline {
  margin: 8px 0 0;
  color: #ff6682;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-modal-head h2 {
  margin: 0;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 0.95;
}

.anonymous-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 26% 16%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(36, 7, 17, 0.86);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 119, 151, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-modal-heart {
  width: 42px;
  height: 42px;
  fill: url("#authModalHeartGradient");
  filter:
    drop-shadow(0 10px 16px rgba(255, 22, 72, 0.34))
    drop-shadow(0 0 18px rgba(255, 49, 93, 0.24));
  animation: onlineHeart 1.35s ease-in-out infinite;
}

.auth-modal-brand-text {
  align-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: #fff7f8;
  font-size: 20px;
  font-weight: 900;
}

.auth-modal-brand-text span:last-child {
  color: #ff315d;
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(255, 49, 93, 0.34);
}

.auth-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.auth-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  color: #fff7f8;
  text-align: left;
  text-decoration: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-choice:hover {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.auth-choice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 45%),
    rgba(255, 49, 93, 0.28);
}

.auth-choice b,
.auth-choice small {
  display: block;
}

.auth-choice b {
  font-size: 16px;
}

.auth-choice small {
  margin-top: 4px;
  color: rgba(255, 232, 237, 0.62);
  line-height: 1.35;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.info-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 0, 4, 0.68);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.info-modal-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 980px);
  max-height: min(86vh, 820px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 119, 151, 0.22);
  border-radius: 26px;
  color: #fff7f8;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 65, 101, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(47, 9, 21, 0.94), rgba(13, 3, 8, 0.94));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(12px) scale(0.985);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.info-modal.is-open .info-modal-card {
  transform: translateY(0) scale(1);
}

.info-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.info-modal-head {
  padding-right: 54px;
}

.info-modal-head .overline {
  margin: 0 0 8px;
  color: #ff6682;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-modal-head h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.98;
}

.info-modal-body {
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(255, 119, 151, 0.13);
  border-radius: 18px;
  color: rgba(255, 239, 243, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(12, 2, 7, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scrollbar-color: rgba(255, 49, 93, 0.72) rgba(255, 255, 255, 0.06);
}

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 520px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.contact-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 45%),
    linear-gradient(180deg, rgba(255, 77, 112, 0.74), rgba(126, 0, 32, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 24px rgba(255, 35, 79, 0.24);
}

.contact-card b,
.contact-card a {
  display: block;
}

.contact-card b {
  color: #fff7f8;
  font-size: 15px;
  font-weight: 900;
}

.contact-card a {
  width: fit-content;
  margin-top: 5px;
  color: #ff6f8d;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 49, 93, 0.34);
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: #ffd6df;
  outline: none;
}

.key-login-toggle {
  display: block;
  margin: 14px auto 0;
  border: 0;
  color: rgba(255, 214, 223, 0.56);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.key-login-toggle:hover {
  color: #ffd6df;
  text-shadow: 0 0 14px rgba(255, 214, 223, 0.34);
}

.key-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.key-login-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  color: #fff7f8;
  font: 900 13px/1 Inter, Arial, sans-serif;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.key-login-form button,
.generated-key button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: 900 13px/1 Inter, Arial, sans-serif;
  background: rgba(92, 38, 55, 0.76);
  cursor: pointer;
}

.key-login-form button {
  padding: 0 16px;
}

.generated-key {
  position: relative;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 91, 120, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.055);
}

.generated-key strong,
.generated-key small,
.generated-key code {
  display: block;
}

.key-warning-head {
  display: grid;
  gap: 5px;
}

.key-warning-head strong {
  color: #fff7f8;
}

.key-copy-box {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 0;
  border-radius: 13px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.key-copy-box span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 232, 237, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.key-copy-box code {
  display: block;
  color: #fff;
  word-break: break-all;
  font: 900 14px/1.35 Inter, Arial, sans-serif;
  letter-spacing: 0.03em;
  background: transparent;
  user-select: text;
  -webkit-user-select: text;
}

.generated-key small {
  color: rgba(255, 232, 237, 0.62);
  line-height: 1.4;
}

.generated-key button {
  width: 100%;
  margin-top: 12px;
}

.generated-key button:disabled {
  color: rgba(255, 232, 237, 0.42);
  background: rgba(255, 255, 255, 0.055);
  cursor: not-allowed;
}

.key-countdown {
  --progress: 0;
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 14px;
  color: rgba(255, 232, 237, 0.72);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.052);
}

.key-countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--progress) * 100%);
  background:
    linear-gradient(90deg, rgba(255, 49, 93, 0.16), rgba(255, 214, 223, 0.18));
  transition: width 900ms linear;
}

.key-countdown span,
.key-countdown b {
  position: relative;
  z-index: 1;
}

.key-countdown b {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 214, 223, 0.5);
}

.key-countdown.is-done {
  color: #fff7f8;
}

.key-toast {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 48%),
    rgba(69, 18, 34, 0.92);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(255, 91, 120, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.key-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.brand-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 232, 236, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

.brand-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff083d;
  box-shadow:
    0 0 14px rgba(255, 8, 61, 1),
    0 0 32px rgba(255, 8, 61, 0.72);
  animation: onlineBlink 0.86s ease-in-out infinite !important;
}

.stage {
  position: relative;
  display: grid;
  width: min(100%, 720px);
  min-height: clamp(270px, 38vh, 390px);
  place-items: center;
}

.stage-brand {
  width: min(100%, 760px);
  min-height: clamp(360px, 48vh, 560px);
}

.hero-brand-logo {
  width: clamp(300px, 46vw, 620px);
  max-height: min(58vh, 620px);
  object-fit: contain;
  image-rendering: auto;
  user-select: none;
  pointer-events: none;
  filter:
    drop-shadow(0 44px 74px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 48px rgba(255, 22, 72, 0.32))
    drop-shadow(0 0 16px rgba(255, 214, 223, 0.12));
  transform: translate3d(0, -8px, 0);
  animation: heroBrandFloat 5.8s ease-in-out infinite;
}

.hero-team-logo {
  width: clamp(360px, 56vw, 720px);
  max-height: min(64vh, 720px);
}

.logo-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(340px, 42vw, 560px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, -16px, 0) scale(1);
  animation: logoFlight 5.4s ease-in-out infinite;
}

.logo-trigger:focus {
  outline: 0;
}

.logo-trigger:focus-visible {
  filter: drop-shadow(0 0 28px rgba(255, 82, 118, 0.66));
}

.logo-trigger.is-breaking {
  animation: logoBreakHit 860ms cubic-bezier(0.2, 0.86, 0.25, 1) both;
  cursor: default;
}

.logo-trigger.is-broken {
  cursor: default;
}

.youtube-logo {
  grid-area: 1 / 1;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 44px 70px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 58px rgba(255, 7, 58, 0.42));
  image-rendering: auto;
  backface-visibility: hidden;
  user-select: none;
  pointer-events: none;
  cursor: default;
  transition:
    opacity 760ms cubic-bezier(0.2, 0.84, 0.24, 1),
    transform 860ms cubic-bezier(0.2, 0.84, 0.24, 1),
    filter 860ms ease;
}

.youtube-logo-main {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.youtube-logo-broken {
  width: 112%;
  opacity: 0;
  filter:
    drop-shadow(0 54px 78px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 68px rgba(255, 30, 78, 0.48));
  transform: scale(0.92) rotate(-1.5deg);
}

.logo-trigger.is-broken .youtube-logo-main {
  opacity: 0;
  transform: scale(0.82) rotate(4deg);
  filter:
    drop-shadow(0 28px 44px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 24px rgba(255, 7, 58, 0.26));
}

.logo-trigger.is-broken .youtube-logo-broken {
  opacity: 1;
  transform: scale(1) rotate(-0.6deg);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(76vw, 760px);
  height: min(30vw, 260px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
  filter: blur(24px);
  z-index: -1;
  translate: -50% -50%;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.stage::after {
  top: 62%;
  height: min(18vw, 150px);
  background: radial-gradient(ellipse, rgba(255, 7, 58, 0.56), transparent 68%);
  filter: blur(20px);
}

.copy {
  position: relative;
  width: min(100%, 720px);
}

h1 {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 248, 249, 0.96);
  font-size: clamp(30px, 4.35vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 44px rgba(0, 0, 0, 0.5);
}

h1.is-broken-message {
  max-width: min(92vw, 560px);
  font-size: clamp(20px, 2.85vw, 34px);
  line-height: 1.08;
  text-wrap: balance;
}

.typing-headline::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 7px;
  border-radius: 999px;
  background: rgba(255, 248, 249, 0.92);
  translate: 0 0.08em;
  animation: caretBlink 760ms steps(2, end) infinite;
}

.break-message {
  display: inline-block;
  max-width: 100%;
  font-size: inherit;
  line-height: inherit;
}

.break-message-stop {
  color: #ff1648;
  text-shadow:
    0 0 10px rgba(255, 22, 72, 0.95),
    0 0 28px rgba(255, 22, 72, 0.58),
    0 18px 46px rgba(0, 0, 0, 0.52);
}

.break-message-rest {
  color: rgba(255, 248, 249, 0.98);
}

.hero.is-promo-mode .brand-line,
.hero.is-promo-mode .stage,
.hero.is-promo-mode .copy {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.promo-reveal {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(300px, 44vw) minmax(320px, 520px);
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 1.4vw, 22px);
  padding: clamp(92px, 12vh, 140px) clamp(18px, 5vw, 72px) clamp(18px, 5vh, 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 780ms cubic-bezier(0.18, 0.84, 0.24, 1),
    transform 780ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.promo-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 34% 64%, rgba(255, 22, 72, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(20, 0, 7, 0.12), rgba(20, 0, 7, 0.58));
  opacity: 0;
  transition: opacity 780ms ease;
}

.promo-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.promo-reveal.is-visible::before {
  opacity: 1;
}

.promo-owner {
  width: min(46vw, 560px);
  min-width: 320px;
  align-self: end;
  filter:
    drop-shadow(0 34px 46px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 42px rgba(255, 22, 72, 0.28));
  transform: translateY(34px) translateX(-30px);
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transition:
    opacity 820ms cubic-bezier(0.18, 0.84, 0.24, 1) 140ms,
    transform 820ms cubic-bezier(0.18, 0.84, 0.24, 1) 140ms;
}

.promo-reveal.is-visible .promo-owner {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.promo-dialog {
  position: relative;
  align-self: center;
  width: min(100%, 520px);
  margin-left: clamp(-72px, -3.8vw, -18px);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 120, 150, 0.22);
  background:
    linear-gradient(145deg, rgba(93, 18, 38, 0.82), rgba(31, 4, 13, 0.78)),
    rgba(40, 5, 18, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(255, 22, 72, 0.14);
  backdrop-filter: blur(20px);
  transform: translateY(16px);
  opacity: 0;
  transition:
    opacity 720ms cubic-bezier(0.18, 0.84, 0.24, 1) 320ms,
    transform 720ms cubic-bezier(0.18, 0.84, 0.24, 1) 320ms;
}

.promo-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(112, 39, 58, 0.78), rgba(45, 7, 20, 0.84));
  color: rgba(255, 248, 249, 0.96);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(255, 22, 72, 0.16);
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    background 220ms ease;
}

.promo-close.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.promo-close:hover {
  background:
    linear-gradient(180deg, rgba(126, 45, 66, 0.86), rgba(56, 10, 25, 0.9));
}

.promo-reveal.is-visible .promo-dialog {
  opacity: 1;
  transform: translateY(0);
}

.promo-dialog::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 42px;
  width: 26px;
  height: 26px;
  border-left: 1px solid rgba(255, 120, 150, 0.22);
  border-bottom: 1px solid rgba(255, 120, 150, 0.22);
  background: linear-gradient(225deg, rgba(93, 18, 38, 0.82), rgba(31, 4, 13, 0.78));
  rotate: 45deg;
}

.promo-dialog-name {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ff6684;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 22, 72, 0.5);
}

.promo-dialog p {
  margin: 0 0 16px;
  color: rgba(255, 248, 249, 0.96);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0;
}

.promo-code {
  display: inline-flex;
  min-width: 160px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 98, 126, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(112, 39, 58, 0.94), rgba(70, 20, 36, 0.96));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(255, 22, 72, 0.18);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 26px rgba(255, 22, 72, 0.5);
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.promo-code:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 122, 148, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(126, 45, 66, 0.96), rgba(76, 22, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 34px rgba(255, 22, 72, 0.26);
}

@keyframes logoFlight {
  0%,
  100% {
    transform: translate3d(0, -16px, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 14px, 0) scale(1.018);
  }
}

@keyframes heroBrandFloat {
  0%,
  100% {
    transform: translate3d(0, -8px, 0) scale(1);
    filter:
      drop-shadow(0 44px 74px rgba(0, 0, 0, 0.46))
      drop-shadow(0 0 42px rgba(255, 22, 72, 0.28))
      drop-shadow(0 0 12px rgba(255, 214, 223, 0.1));
  }
  50% {
    transform: translate3d(0, 7px, 0) scale(1.012);
    filter:
      drop-shadow(0 50px 80px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 58px rgba(255, 22, 72, 0.38))
      drop-shadow(0 0 20px rgba(255, 214, 223, 0.16));
  }
}

@keyframes logoBreakHit {
  0% {
    transform: translate3d(0, -16px, 0) scale(1) rotate(0deg);
  }
  18% {
    transform: translate3d(0, -11px, 0) scale(0.985) rotate(-0.8deg);
  }
  42% {
    transform: translate3d(0, -19px, 0) scale(1.045) rotate(1.15deg);
  }
  70% {
    transform: translate3d(0, -12px, 0) scale(0.998) rotate(-0.35deg);
  }
  100% {
    transform: translate3d(0, -16px, 0) scale(1) rotate(0deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.62;
    scale: 0.96;
  }
  50% {
    opacity: 1;
    scale: 1.08;
  }
}

@keyframes beamSweep {
  0%,
  100% {
    opacity: 0.22;
    transform: translateX(-8vw);
  }
  50% {
    opacity: 0.5;
    transform: translateX(8vw);
  }
}

@keyframes navIndicatorDrift {
  0% {
    background-position:
      -105% 0,
      0 0,
      0 0,
      100% 100%,
      0 0,
      0 0,
      0 0,
      0 0;
  }
  100% {
    background-position:
      105% 0,
      0 0,
      0 0,
      100% 100%,
      34px 0,
      9px 8px,
      11px 13px,
      0 0;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 64px 64px;
  }
}

@keyframes onlineBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 14px rgba(255, 8, 61, 1),
      0 0 32px rgba(255, 8, 61, 0.72);
  }
  50% {
    opacity: 0.42;
    transform: scale(0.72);
    box-shadow:
      0 0 6px rgba(255, 8, 61, 0.72),
      0 0 18px rgba(255, 8, 61, 0.38);
  }
}

@keyframes onlineHeart {
  0%,
  100% {
    transform: scale(1);
  }
  16% {
    transform: scale(1.13);
  }
  30% {
    transform: scale(0.98);
  }
  44% {
    transform: scale(1.08);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.86;
    transform: scale(1.04);
  }
}

@keyframes entryReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes caretBlink {
  0%,
  44% {
    opacity: 1;
  }
  45%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .entry-screen {
    padding: 18px;
  }

  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .brand {
    justify-self: start;
    padding: 0 4px;
  }

  .brand-text,
  .brand-seo {
    font-size: 18px;
  }

  .top-actions {
    justify-self: end;
  }

  .theme-switch {
    min-width: 38px;
  }

  .theme-option {
    min-width: 30px;
    min-height: 18px;
  }

  .logout-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 16px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .nav-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0 10px;
    font-size: clamp(11px, 3vw, 13px);
  }

  .auth-topbar {
    top: 14px;
    width: calc(100% - 28px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .auth-brand {
    justify-self: center;
  }

  .language-switch {
    justify-self: center;
  }

  .language-option {
    min-width: 30px;
    min-height: 18px;
  }

  .info-modal {
    padding: 12px;
  }

  .info-modal-card {
    width: 100%;
    max-height: 88vh;
    padding: 18px;
    border-radius: 22px;
  }

  .info-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .info-modal-head h2 {
    margin-bottom: 14px;
  }

  .info-modal-body {
    padding: 14px;
    font-size: 13px;
    line-height: 1.56;
  }

  .topbar-login {
    width: 82px;
    min-height: 42px;
  }

  .auth-actions {
    justify-self: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero {
    min-height: calc(100vh - 150px);
    padding-top: 138px;
    gap: 14px;
  }

  .stage {
    width: 100%;
    min-height: clamp(250px, 36vh, 330px);
  }

  .stage-brand {
    min-height: clamp(330px, 48vh, 430px);
  }

  .hero-brand-logo {
    width: clamp(286px, 92vw, 430px);
    max-height: 48vh;
  }

  .hero-team-logo {
    width: clamp(330px, 96vw, 500px);
    max-height: 50vh;
  }

  .logo-trigger {
    width: clamp(280px, 92vw, 430px);
  }

  .youtube-logo {
    width: 100%;
  }

  .copy {
    width: 100%;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(30px, 9vw, 42px);
  }

  h1.is-broken-message {
    max-width: min(92vw, 340px);
    font-size: clamp(18px, 6.2vw, 28px);
    line-height: 1.06;
  }

  .promo-reveal {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 8px;
    padding: 86px 16px 22px;
  }

  .promo-owner {
    width: min(72vw, 300px);
    min-width: 0;
    justify-self: center;
    margin-bottom: -18px;
  }

  .promo-dialog {
    width: min(100%, 390px);
    justify-self: center;
    margin-left: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .promo-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 14px;
    font-size: 23px;
  }

  .promo-dialog::before {
    left: 50%;
    top: -10px;
    translate: -50% 0;
    rotate: 135deg;
  }

  .promo-dialog p {
    font-size: clamp(16px, 4.8vw, 20px);
  }

  .promo-code {
    min-width: 138px;
    min-height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

}

@media (max-height: 760px) {
  h1.is-broken-message {
    font-size: clamp(18px, 2.55vw, 30px);
    line-height: 1.04;
  }

  .promo-reveal {
    padding-bottom: 22px;
  }

  .promo-owner {
    width: min(34vw, 360px);
  }

  .promo-dialog {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .brand-dot {
    animation: onlineBlink 0.86s ease-in-out infinite !important;
  }

}
