@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@400;600&display=swap");

:root {
  --bg: #0b0a10;
  --bg-alt: #101018;
  --gold: #f7d59a;
  --gold-strong: #ffcf7a;
  --text: #f7f4ee;
  --muted: #c9c4bd;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 14px 48px rgba(0, 0, 0, 0.45);
  --glow: 0 0 30px rgba(255, 207, 122, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 18%, rgba(255, 204, 128, 0.08), transparent 32%),
    radial-gradient(circle at 82% 6%, rgba(255, 230, 190, 0.06), transparent 28%),
    linear-gradient(145deg, #0a0a12 0%, #0b0a11 45%, #0d0c18 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.background__portal {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 201, 130, 0.32), rgba(255, 201, 130, 0) 50%),
    radial-gradient(circle at 55% 52%, rgba(80, 60, 120, 0.2), rgba(80, 60, 120, 0) 60%),
    radial-gradient(circle at 32% 70%, rgba(255, 224, 186, 0.16), rgba(255, 224, 186, 0) 48%);
  filter: blur(18px);
  animation: portalPulse 12s ease-in-out infinite;
}

.background__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.background__veins {
  position: absolute;
  inset: -10%;
  background:
    repeating-linear-gradient(125deg, rgba(255, 207, 122, 0.13) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(235deg, rgba(240, 190, 130, 0.08) 0 1px, transparent 1px 18px);
  mix-blend-mode: screen;
  opacity: 0.16;
  filter: blur(0.6px);
  animation: veinDrift 26s linear infinite;
}

.background__rays {
  position: absolute;
  inset: -20%;
  background: repeating-conic-gradient(from 10deg, rgba(255, 207, 122, 0.12) 0deg 4deg, transparent 4deg 12deg);
  opacity: 0.08;
  animation: slowSpin 40s linear infinite;
}

.shell {
  position: relative;
  width: min(420px, calc(100% - 32px));
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.card {
  position: relative;
  width: 100%;
  padding: 22px 24px 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(160deg, rgba(255, 207, 122, 0.09), rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}

.card__halo {
  position: absolute;
  inset: -30% -20% -10%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 207, 122, 0.25), transparent 55%);
  filter: blur(28px);
  z-index: -1;
  animation: haloFloat 12s ease-in-out infinite;
}

.card__watermark {
  position: absolute;
  inset: 0;
  background: url("assets/logo.png") center/105% no-repeat;
  opacity: 0.06;
  filter: blur(0.4px);
  transform: rotate(-2deg) scale(1.04);
  z-index: -1;
}

.title {
  margin: 6px 0 8px;
  font-family: "Cinzel", "Inter", serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 207, 122, 0.38) 0%, rgba(255, 207, 122, 0) 55%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  border: 1px solid rgba(255, 207, 122, 0.8);
  background: radial-gradient(circle at 10% 20%, rgba(255, 207, 122, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(255, 207, 122, 0.25), rgba(255, 207, 122, 0.08));
  box-shadow: 0 12px 32px rgba(255, 207, 122, 0.18);
  animation: pulse 5s ease-in-out infinite;
}

.btn--secondary {
  border-color: rgba(255, 207, 122, 0.7);
  background: linear-gradient(135deg, rgba(255, 207, 122, 0.2), rgba(255, 207, 122, 0.05));
}

.btn--ghost {
  padding: 12px 16px;
  border-style: dashed;
  border-color: rgba(255, 207, 122, 0.45);
  color: var(--gold-strong);
  background: rgba(255, 255, 255, 0.02);
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(255, 207, 122, 0.12);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(255, 207, 122, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn__glint {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at 70% 0%, rgba(255, 255, 255, 0.22), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.4;
  animation: glint 4.2s ease-in-out infinite;
  pointer-events: none;
}

.btn.tap-anim::after {
  animation: ripple 420ms ease-out;
}

.btn.is-pressed {
  box-shadow: 0 6px 18px rgba(255, 207, 122, 0.2);
  border-color: rgba(255, 207, 122, 0.95);
}

.microcopy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3em;
  font-size: 12px;
}

a,
button {
  font: inherit;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(255, 207, 122, 0.18);
  }
  50% {
    box-shadow: 0 16px 40px rgba(255, 207, 122, 0.32);
  }
}

@keyframes glint {
  0% {
    transform: translateX(-10%) translateY(0);
  }
  50% {
    transform: translateX(12%) translateY(-2%);
  }
  100% {
    transform: translateX(-8%) translateY(2%);
  }
}

@keyframes portalPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.7;
  }
}

@keyframes haloFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes veinDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-24px);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.4;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@media (max-width: 420px) {
  .card {
    padding: 20px 18px 26px;
  }

  .title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
