*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page-w: min(100vw, 400px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --panel-bg: rgba(44, 20, 55, .82);
  --panel-border: rgba(255, 255, 255, .12);
  --text-main: #fff7fb;
  --text-soft: rgba(255, 247, 251, .78);
  --accent-from: #ff446d;
  --accent-mid: #ff6d7f;
  --accent-to: #ffb675;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  font-family: Sora, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background: #140a18;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(rgba(18, 8, 17, .68), rgba(18, 8, 17, .82));
}

.mylove-register {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mylove-register__background,
.mylove-register__brand,
.mylove-register__thumbs,
.mylove-register__cta {
  left: 50%;
  width: var(--page-w);
  transform: translateX(-50%);
}

.mylove-register__background {
  position: fixed;
  top: 0;
  bottom: -100dvh;
  z-index: 0;
  overflow: hidden;
}

.mylove-register__background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 7, 24, .2), rgba(20, 7, 24, .1) 42%, rgba(20, 7, 24, .45)),
    linear-gradient(to right, rgba(0, 0, 0, .22), transparent 24%, transparent 76%, rgba(0, 0, 0, .22));
}

.mylove-register__background-track {
  position: absolute;
  inset: 0 0 -100dvh;
  animation: mylove-background-scroll 30s linear infinite;
}

.mylove-register__background-frame {
  width: 100%;
  height: 100dvh;
  min-height: 914px;
  background: url("../mylove/background.png") center top / cover no-repeat;
}

.mylove-register__brand {
  position: fixed;
  top: 16px;
  z-index: 3;
  padding: 0 7px;
}

.mylove-register__brand-panel {
  padding: 15px 16px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 128, 180, .28), transparent 34%),
    linear-gradient(145deg, rgba(60, 35, 64, .9), rgba(56, 22, 48, .82));
  box-shadow: 0 18px 48px rgba(22, 3, 20, .48);
  backdrop-filter: blur(14px);
}

.mylove-register__title {
  margin: 8px 0 18px;
  font-size: clamp(42px, 12vw, 50px);
  line-height: 1;
  text-align: center;
  letter-spacing: .01em;
  text-shadow: 0 8px 30px rgba(255, 255, 255, .32);
}

.mylove-register__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.mylove-register__intro-image {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-mid));
  box-shadow: 0 12px 28px rgba(255, 68, 109, .34);
}

.mylove-register__intro-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mylove-register__intro-text {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.38;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.mylove-register__thumbs {
  position: fixed;
  top: min(64dvh, 584px);
  z-index: 2;
  height: 208px;
  overflow: hidden;
}

.mylove-register__thumbs-track {
  display: flex;
  gap: 14px;
  width: max-content;
  height: 100%;
  padding: 0 14px;
  animation: mylove-thumbs-scroll 20s linear infinite;
}

.mylove-register__thumb {
  flex: 0 0 126px;
  width: 126px;
  height: 208px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
}

.mylove-register__cta {
  position: fixed;
  right: 24px;
  bottom: max(24px, calc(var(--safe-b) + 24px));
  z-index: 4;
  width: min(calc(100vw - 54px), 354px);
  min-height: 80px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-mid) 48%, var(--accent-to));
  box-shadow: 0 18px 40px rgba(255, 68, 109, .36);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .01em;
  animation: mylove-pulse 2s ease-in-out infinite;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px 14px max(22px, calc(var(--safe-b) + 22px));
  background: rgba(10, 4, 12, .64);
  backdrop-filter: blur(10px);
}

.modal.hidden {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  color: #fff7fb;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 143, .24), transparent 35%),
    linear-gradient(155deg, rgba(52, 24, 58, .96), rgba(31, 17, 39, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 24px;
  line-height: 1;
}

.modal-kicker,
.modal-desc,
.dialog-phone,
.selected-country-meta,
.message,
.copy-message,
.link-status-message {
  color: var(--text-soft);
}

.modal-kicker {
  margin: 0 0 6px;
  color: #ff9cad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin: 0 36px 10px 0;
  font-size: 25px;
  line-height: 1.15;
}

.modal-desc {
  margin: 0 0 20px;
  line-height: 1.55;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  color: #2c1325;
  background: rgba(255, 255, 255, .96);
  outline: none;
}

input:focus {
  border-color: rgba(255, 109, 127, .75);
  box-shadow: 0 0 0 4px rgba(255, 109, 127, .22);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(120px, 1.3fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 19px;
  background: rgba(255, 255, 255, .08);
}

.country-picker-btn,
.dial-code {
  min-width: 0;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 850;
}

.country-picker-btn {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  text-align: left;
}

.dial-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #ffdae2;
  background: rgba(255, 109, 127, .18);
}

.selected-country-meta {
  margin-top: 8px;
  font-size: 13px;
}

.selected-country-meta span:not(.meta-separator) {
  color: #fff;
  font-weight: 800;
}

.meta-separator {
  margin: 0 8px;
}

.submit-btn,
.dialog-actions button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-mid) 48%, var(--accent-to));
  box-shadow: 0 12px 28px rgba(255, 68, 109, .32);
  font-size: 16px;
  font-weight: 900;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: .66;
  box-shadow: none;
}

.message,
.copy-message,
.link-status-message {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.message {
  color: #ffd0d9;
}

.dialog-code {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
}

.link-status-message.is-success,
.copy-message {
  color: #a7f3d0;
}

.link-status-message.is-failed {
  color: #ffd0d9;
}

.country-panel {
  max-width: 430px;
}

.country-filter-row {
  margin: 14px 0;
}

.country-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
}

.country-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  background: transparent;
  text-align: left;
}

.country-item:last-child {
  border-bottom: 0;
}

.country-item:hover,
.country-item.is-active {
  background: rgba(255, 109, 127, .2);
}

.country-item strong {
  color: #ffd0d9;
}

.country-item em {
  color: rgba(255, 255, 255, .55);
  font-style: normal;
}

.country-empty {
  margin: 0;
  padding: 18px;
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

@keyframes mylove-background-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes mylove-thumbs-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes mylove-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.012);
  }
}

@media (max-width: 360px) {
  .phone-row {
    grid-template-columns: 1fr auto;
  }

  .phone-row input {
    grid-column: 1 / -1;
  }

  .mylove-register__intro-text {
    font-size: 15px;
  }
}
