:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --purple: #2f1268;
  --ink: #251259;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: #251056;
  color: var(--ink);
}

.desktop-home {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(122,72,220,.30), transparent 50%),
    #241052;
  overflow: hidden;
}

.desktop-art {
  position: relative;
  width: min(100vw, calc(100dvh * 1.776833));
  aspect-ratio: 1672 / 941;
  max-height: 100dvh;
}

.desktop-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.desktop-links { position: absolute; inset: 0; }
.desktop-link {
  position: absolute;
  left: 26.3%;
  width: 45.5%;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
}
.desktop-link--login { top: 51.3%; height: 11.2%; }
.desktop-link--signup { top: 64.5%; height: 10.9%; }
.desktop-link--master { top: 77.6%; height: 10.9%; }
.desktop-link:hover { background: rgba(255,255,255,.05); }
.desktop-link:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(106,35,201,.55);
}

.mobile-home { display: none; }

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 12%, rgba(132,73,225,.35), transparent 36%),
      linear-gradient(180deg, #3d197e 0%, #2a105f 100%);
  }
  .desktop-home { display: none; }
  .mobile-home {
    min-height: 100dvh;
    display: block;
    padding: 0 14px 30px;
    overflow-x: hidden;
  }
  .mobile-hero {
    display: block;
    width: calc(100% + 28px);
    max-width: none;
    margin-left: -14px;
    height: auto;
    box-shadow: 0 12px 28px rgba(17,4,47,.34);
  }
  .mobile-card {
    width: 100%;
    margin: 18px auto 0;
    padding: 24px 16px 20px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 26px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 55px rgba(16,4,47,.38), inset 0 1px 0 #fff;
  }
  .mobile-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(25px, 7vw, 32px);
    line-height: 1.15;
    letter-spacing: -.035em;
  }
  .mobile-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 15px 0 22px;
  }
  .mobile-divider span {
    width: 44px;
    height: 2px;
    border-radius: 2px;
    background: #7e2ccc;
  }
  .mobile-divider i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7e2ccc;
  }
  .mobile-actions { display: grid; gap: 14px; }
  .mobile-action {
    min-height: 74px;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 17px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(24,7,63,.24), inset 0 1px 0 rgba(255,255,255,.35);
  }
  .mobile-action--login { background: linear-gradient(135deg, #8a2ed9, #4c1597 68%, #2c0b71); }
  .mobile-action--signup { background: linear-gradient(135deg, #23bb6d, #078840 68%, #05612e); }
  .mobile-action--master { background: linear-gradient(135deg, #3976ea, #1946a5 68%, #102b73); }
  .mobile-action__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    font-size: 24px;
    font-weight: 900;
  }
  .mobile-action strong {
    font-size: clamp(17px, 4.8vw, 21px);
    line-height: 1.15;
  }
  .mobile-action:active { transform: translateY(1px); }
  .mobile-action:focus-visible {
    outline: 4px solid #fff;
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-action, .desktop-link { transition: none; }
}
