:root {
  --text-primary: #fff1fb;
  --text-soft: rgba(255, 224, 244, 0.74);
  --accent: #c35cff;
  --accent-strong: #ff3f74;
  --surface: rgba(20, 7, 24, 0.76);
  --surface-strong: rgba(20, 7, 24, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border-line: rgba(236, 104, 178, 0.16);
  --border-strong: rgba(211, 92, 255, 0.34);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  --phone-width: 100%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text-primary);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(180, 60, 255, 0.3), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 44, 104, 0.24), transparent 30%),
    linear-gradient(160deg, #09030d 0%, #1a0618 42%, #0b0208 100%);
  overflow-x: hidden;
}

button,
img {
  display: block;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(18px, env(safe-area-inset-top))
    16px
    max(24px, env(safe-area-inset-bottom))
    16px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.ambient-left {
  top: -62px;
  left: -74px;
  background: radial-gradient(circle, rgba(195, 92, 255, 0.4) 0%, rgba(195, 92, 255, 0) 72%);
}

.ambient-right {
  right: -84px;
  bottom: 132px;
  background: radial-gradient(circle, rgba(255, 63, 116, 0.35) 0%, rgba(255, 63, 116, 0) 72%);
}

.phone-stage {
  position: relative;
  width: min(var(--phone-width), 100%);
  max-width: 430px;
  margin: 0 auto;
}

.top-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.top-register-button {
  width: 100%;
  max-width: 220px;
}

.card-stack {
  display: grid;
  gap: 18px;
}

.surface-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top right, rgba(255, 63, 116, 0.13), transparent 34%),
    radial-gradient(circle at top left, rgba(195, 92, 255, 0.12), transparent 30%),
    var(--surface);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.content-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.56);
}

.content-card:active {
  transform: translateY(-2px);
}

.content-poster {
  position: relative;
  height: 270px;
  min-height: 270px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 2, 12, 0.08), rgba(8, 2, 12, 0.66)),
    linear-gradient(135deg, rgba(195, 92, 255, 0.22), rgba(255, 63, 116, 0.08));
}

.content-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 2, 11, 0.05) 0%, rgba(10, 2, 11, 0.18) 48%, rgba(10, 2, 11, 0.62) 100%);
  pointer-events: none;
}

.content-poster-image,
.content-poster-fallback {
  width: 100%;
  height: 100%;
  min-height: 270px;
}

.content-poster-image {
  object-fit: cover;
  object-position: center;
}

.content-poster-fallback {
  display: grid;
  place-items: end start;
  padding: 22px;
  background:
    radial-gradient(circle at 22% 18%, rgba(195, 92, 255, 0.38), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255, 63, 116, 0.28), transparent 28%),
    linear-gradient(160deg, #160714 0%, #220816 56%, #0b0208 100%);
}

.content-poster-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 72%;
}

.content-poster-copy span {
  color: rgba(255, 224, 244, 0.72);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-poster-copy strong {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  line-height: 1.05;
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 5, 15, 0.52);
  color: #fff1fb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.content-info {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.card-topline h4 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.28;
  max-height: calc(1.28em * 2);
}

.content-meta,
.content-copy {
  margin: 0;
}

.content-meta {
  color: rgba(255, 224, 244, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
}

.content-copy {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: flex;
}

.ghost-button,
.primary-button {
  min-height: 52px;
  border: 0;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  line-height: 1;
  text-align: center;
  box-shadow: 0 18px 40px rgba(195, 92, 255, 0.22);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ghost-button:hover,
.ghost-button:active,
.primary-button:hover,
.primary-button:active {
  transform: translateY(-1px);
}

.ghost-button:hover,
.ghost-button:active {
  box-shadow: 0 20px 42px rgba(195, 92, 255, 0.14);
  filter: saturate(1.06);
}

.primary-button:hover,
.primary-button:active {
  box-shadow: 0 20px 42px rgba(255, 63, 116, 0.26);
  filter: saturate(1.08);
}

.ghost-button:focus-visible,
.primary-button:focus-visible {
  outline: 2px solid rgba(255, 241, 251, 0.86);
  outline-offset: 3px;
}

.register-shell {
  display: grid;
  gap: 20px;
  padding: 22px;
  border-radius: 28px;
}

.register-copy {
  display: grid;
  gap: 10px;
}

.section-eyebrow {
  margin: 0;
  color: rgba(255, 224, 244, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.register-copy h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.register-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.register-form {
  display: grid;
  gap: 14px;
}

.input-label {
  color: rgba(255, 224, 244, 0.84);
  font-size: 0.88rem;
  font-weight: 600;
}

.glass-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(20, 7, 24, 0.82);
  color: var(--text-primary);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  outline: 0;
}

.glass-input::placeholder {
  color: rgba(255, 224, 244, 0.42);
}

.glass-input:focus {
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 3px rgba(195, 92, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.success-message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(43, 196, 112, 0.38);
  border-radius: 18px;
  background: rgba(16, 76, 43, 0.3);
  color: #75f0a9;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: 12px;
  }

  .card-topline h4 {
    font-size: 1.2rem;
  }

  .content-poster-copy strong {
    font-size: 1.36rem;
  }
}

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