:root {
  --navy: #0b1530;
  --teal: #02bdbb;
  --teal-dark: #009eaa;
  --yellow: #ffd500;
  --panel: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; }

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

body {
  color: var(--navy);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(0, 196, 190, 0.1) 0 2px, transparent 3px) 0 0 / 20px 20px,
    linear-gradient(145deg, #f9ffff 0%, #eefbfb 55%, #faffff 100%);
  opacity: 0;
  transition: opacity 180ms ease;
}

html.is-visible body { opacity: 1; }

.migration-page {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-header { display: flex; justify-content: center; padding: 0 0 28px; }
.arena-logo { display: block; width: min(100%, 240px); height: auto; filter: drop-shadow(0 8px 6px rgba(10, 20, 40, 0.12)); }

.migration-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px clamp(20px, 5vw, 44px) 44px;
  text-align: center;
  border: 1px solid rgba(18, 167, 174, 0.18);
  border-radius: 36px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(20, 90, 104, 0.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0;
  font-family: "Titan One", "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.lead {
  margin: 18px 0 32px;
  color: var(--teal-dark);
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.3;
}

.actions { position: relative; width: 100%; }

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 15px 22px;
  border-radius: 18px;
  font: 800 clamp(1rem, 2.8vw, 1.2rem)/1.2 "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.cta-button:hover { transform: translateY(-2px); }
.cta-button:focus-visible { outline: 4px solid rgba(255, 213, 0, 0.65); outline-offset: 3px; }

.primary-button { border: 0; color: white; background: linear-gradient(135deg, #04cac2, #00aebc); box-shadow: 0 10px 22px rgba(0, 166, 177, 0.28); }
.primary-button.is-copied { background: linear-gradient(135deg, #08c79d, #00a97e); }

.feedback { margin: 16px 0 0; color: #087b87; font-weight: 800; font-size: 0.95rem; }
.manual-copy-url { margin: 18px 0 0; padding: 10px 18px; border: 1px solid #d7e5e7; border-radius: 14px; color: var(--teal-dark); background: #fff; box-shadow: 0 4px 10px rgba(12, 44, 60, .08); font-size: 1rem; font-weight: 900; user-select: all; }

.divider { display: flex; align-items: center; gap: 14px; width: 100%; margin: 28px 0; color: #8494a3; font-weight: 800; font-size: 0.9rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #d3e7e8; }

.secondary-button { border: 2px solid #9adfe0; color: var(--teal-dark); background: #fbffff; box-shadow: 0 6px 14px rgba(11, 91, 103, .1); }

.redirect-status { margin: 22px 0 -4px; color: #697986; font-size: .9rem; }

.page-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.page-sparkles i { position: absolute; display: block; width: 22px; height: 22px; background: var(--teal); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.page-sparkles i:nth-child(1) { top: 150px; left: 10px; }
.page-sparkles i:nth-child(2) { top: 265px; right: 10px; width: 35px; height: 35px; background: var(--yellow); }
.page-sparkles i:nth-child(3) { bottom: 140px; left: 8px; width: 38px; height: 38px; background: var(--yellow); }
.page-sparkles i:nth-child(4) { bottom: 70px; right: 15px; width: 15px; height: 15px; }
.page-sparkles i:nth-child(5) { top: 95px; left: 48px; width: 10px; height: 10px; }

@media (max-width: 560px) {
  .migration-page { padding: 20px 14px 32px; }
  .brand-header { padding-bottom: 20px; }
  .arena-logo { width: min(75%, 190px); }
  .migration-card { padding: 28px 20px 30px; border-radius: 28px; }
  .cta-button { min-height: 54px; padding: 14px 18px; border-radius: 16px; }
  h1 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); }
  .lead { font-size: clamp(1rem, 3.8vw, 1.2rem); margin: 14px 0 24px; }
  .divider { margin: 22px 0; }
}

@media (prefers-reduced-motion: reduce) { body, .cta-button { transition: none; } }
