@font-face {
  font-family: "Lilita One";
  src: url("/assets/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --pink: #eb9ea9;
  --pink-deep: #a92b4d;
  --pink-dark: #7c1736;
  --blue: #a4bfeb;
  --mint: #b3eeb2;
  --gold: #f6d52c;
  --cream: #fff7e6;
  --ink: #302d32;
  --muted: #5d6264;
  --white: #ffffff;
  --focus: #155aa8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.96), transparent 25rem),
    linear-gradient(145deg, #fffaf0 0%, #fff2e7 46%, #eef6ff 100%);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.copy-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.52;
}

.blob-pink {
  top: -13rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle at 35% 35%, #ffd8df, var(--pink));
}

.blob-blue {
  bottom: -18rem;
  left: -12rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle at 65% 30%, #e7f2ff, var(--blue));
}

.blob-mint {
  top: 35%;
  left: 48%;
  width: 15rem;
  height: 15rem;
  background: var(--mint);
  opacity: 0.2;
}

.sparkle {
  position: absolute;
  width: 3.2rem;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.94);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 5px 12px rgba(122, 36, 54, 0.28));
}

.sparkle-one {
  top: 12%;
  right: 11%;
  transform: rotate(16deg);
}

.sparkle-two {
  bottom: 14%;
  left: 9%;
  width: 2rem;
  transform: rotate(-12deg);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.page-main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 152px;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  filter: drop-shadow(0 8px 11px rgba(150, 48, 67, 0.15));
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #3f494b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(95, 84, 80, 0.12);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.topbar-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  flex: 1;
  min-height: 560px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 245, 0.86)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 30px 72px rgba(97, 78, 73, 0.14),
    0 8px 24px rgba(97, 78, 73, 0.08),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(24px);
}

.copy-column {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px);
  padding-right: clamp(28px, 4vw, 54px);
}

.context-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(124, 23, 54, 0.18);
  border-radius: 999px;
  color: #7c2440;
  background: #fff0f2;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.context-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(169, 43, 77, 0.16);
}

h1 {
  max-width: 620px;
  margin: 0;
  color: #353238;
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.description {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  font-weight: 530;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 11px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.topbar-link:focus-visible,
.brand:focus-visible,
footer a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.button-icon {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1;
}

.button-primary {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, #a92b4d 0%, #8b1d3e 100%);
  box-shadow:
    0 13px 24px rgba(124, 23, 54, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(79, 9, 30, 0.24);
}

.button-primary::after {
  position: absolute;
  top: 0;
  left: 12%;
  width: 68%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  pointer-events: none;
}

.button-primary > span {
  position: relative;
  z-index: 1;
}

.button-primary:hover {
  background: linear-gradient(145deg, #972140 0%, #76132f 100%);
  box-shadow:
    0 17px 28px rgba(124, 23, 54, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -3px 0 rgba(79, 9, 30, 0.24);
}

.button-secondary {
  color: #353d3f;
  border: 1px solid rgba(53, 61, 63, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(86, 74, 68, 0.08), inset 0 1px 0 #fff;
}

.button-secondary:hover {
  background: #fff;
  box-shadow: 0 12px 24px rgba(86, 74, 68, 0.13), inset 0 1px 0 #fff;
}

.platform-hint {
  max-width: 540px;
  margin: 14px 0 0;
  color: #5e4e53;
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.5;
}

.action-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #315f3b;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.4;
}

.action-status[data-status="error"] {
  color: #8b1d3e;
}

.action-status[data-status="cancelled"] {
  color: #5e4e53;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(88, 78, 75, 0.13);
  color: #4c5557;
  font-size: 0.82rem;
  font-weight: 720;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #246334;
  background: #dff3e1;
  font-size: 0.75rem;
  font-weight: 900;
}

.trust-icon-blue {
  color: #315887;
  background: #e4edfb;
}

.visual-column {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(150deg, rgba(255, 224, 230, 0.78), rgba(205, 226, 255, 0.74));
}

.visual-column::before {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  content: "";
}

.visual-glow {
  position: absolute;
  width: min(36vw, 420px);
  height: min(36vw, 420px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 0 90px rgba(255, 255, 255, 0.84);
}

.app-icon-wrap {
  position: relative;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 31%;
  background: var(--blue);
  box-shadow:
    0 32px 52px rgba(83, 87, 115, 0.24),
    0 10px 18px rgba(83, 87, 115, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: rotate(3deg);
}

.app-icon-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-shine {
  position: absolute;
  top: -32%;
  left: -45%;
  width: 75%;
  height: 145%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(18deg);
}

.mini-badge {
  position: absolute;
  right: 7%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: #762b41;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(103, 79, 87, 0.17);
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transform: rotate(-3deg);
  backdrop-filter: blur(12px);
}

.mini-badge img {
  width: 43px;
  height: auto;
  filter: drop-shadow(0 4px 5px rgba(115, 32, 49, 0.18));
}

.coin {
  position: absolute;
  z-index: 2;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #c38b00;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff46b, var(--gold) 55%, #d59400);
  box-shadow:
    0 12px 20px rgba(118, 80, 5, 0.25),
    inset 0 3px 3px rgba(255, 255, 255, 0.58),
    inset 0 -4px 3px rgba(144, 91, 0, 0.23);
}

.coin::before,
.coin span {
  border-radius: 50%;
  content: "";
}

.coin::before {
  position: absolute;
  inset: 17%;
  border: 3px solid rgba(151, 92, 0, 0.72);
}

.coin span {
  width: 20%;
  height: 30%;
  background: #ad6800;
  box-shadow: 12px 0 0 #ad6800;
  transform: translateX(-6px);
}

.coin-large {
  top: 10%;
  right: 7%;
  width: 70px;
  transform: rotate(14deg);
}

.coin-small {
  bottom: 20%;
  left: 7%;
  width: 46px;
  border-width: 3px;
  transform: rotate(-18deg);
}

.coin-small::before {
  border-width: 2px;
}

.coin-small span {
  box-shadow: 8px 0 0 #ad6800;
  transform: translateX(-4px);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  padding: 6px 0 0;
  color: #555d5f;
  font-size: 0.79rem;
  font-weight: 680;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration-color: rgba(75, 81, 83, 0.5);
  text-underline-offset: 3px;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a92b4d;
}

.is-unsupported .visual-column {
  filter: saturate(0.72);
}

.error-shell {
  justify-content: space-between;
}

.error-card {
  display: grid;
  flex: 1;
  width: 100%;
  max-width: 760px;
  min-height: 430px;
  margin: 24px auto;
  padding: clamp(36px, 7vw, 72px);
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 72px rgba(97, 78, 73, 0.14);
  text-align: center;
}

.error-card .context-pill {
  justify-self: center;
}

.error-card h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.error-card .description {
  margin-inline: auto;
}

.error-card .actions {
  justify-content: center;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .brand {
    width: 132px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 32px;
  }

  .copy-column {
    padding: 38px 34px 34px;
  }

  h1 {
    font-size: clamp(3rem, 11vw, 4.8rem);
  }

  .visual-column {
    min-height: 270px;
  }

  .visual-column::before {
    inset: 18px;
    border-radius: 24px;
  }

  .visual-glow {
    width: 260px;
    height: 260px;
  }

  .app-icon-wrap {
    width: 210px;
    border-width: 6px;
  }

  .mini-badge {
    right: 10%;
    bottom: 8%;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 440px);
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .topbar {
    min-height: 54px;
  }

  .brand {
    width: 105px;
  }

  .topbar-link {
    padding: 8px 11px;
    font-size: 0.79rem;
  }

  .hero-card {
    margin-top: 8px;
    border-radius: 26px;
  }

  .copy-column {
    padding: 27px 22px 26px;
  }

  .context-pill {
    min-height: 30px;
    margin-bottom: 13px;
    padding: 6px 11px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.72rem, 14vw, 3.8rem);
  }

  .description {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .actions {
    display: grid;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .trust-list {
    display: grid;
    margin-top: 16px;
    padding-top: 16px;
  }

  .visual-column {
    min-height: 220px;
  }

  .visual-column::before {
    inset: 12px;
    border-radius: 19px;
  }

  .visual-glow {
    width: 210px;
    height: 210px;
  }

  .app-icon-wrap {
    width: 165px;
    border-width: 5px;
  }

  .coin-large {
    top: 7%;
    right: 7%;
    width: 48px;
  }

  .coin-small {
    bottom: 14%;
    left: 7%;
    width: 35px;
  }

  .mini-badge {
    right: 4%;
    bottom: 5%;
    padding-right: 11px;
    font-size: 0.82rem;
  }

  .mini-badge img {
    width: 34px;
  }

  footer {
    padding-bottom: 2px;
  }

  .error-card {
    min-height: 360px;
    margin: 12px 0;
    padding: 34px 22px;
    border-radius: 26px;
  }
}

@media (max-height: 480px) and (max-width: 900px) {
  .page-shell {
    width: min(100% - 24px, 760px);
    padding-block: max(6px, env(safe-area-inset-top))
      max(6px, env(safe-area-inset-bottom));
  }

  .topbar {
    min-height: 48px;
  }

  .hero-card {
    margin-block: 4px;
  }

  .copy-column {
    padding: 20px 24px 22px;
  }

  .context-pill {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.5rem, 8vw, 3.35rem);
  }

  .description {
    margin-top: 10px;
    line-height: 1.4;
  }

  .actions {
    margin-top: 15px;
  }

  .visual-column {
    display: none;
  }

  .trust-list {
    margin-top: 14px;
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .app-icon-wrap {
    animation: float 5.5s ease-in-out infinite;
  }

  .coin-large {
    animation: coin-float 4.8s ease-in-out infinite;
  }

  .coin-small {
    animation: coin-float 4.2s 0.7s ease-in-out infinite reverse;
  }

  .sparkle-one {
    animation: twinkle 3.2s ease-in-out infinite;
  }

  .sparkle-two {
    animation: twinkle 3.2s 1.1s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes coin-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.44;
    scale: 0.84;
  }
  50% {
    opacity: 1;
    scale: 1.08;
  }
}

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