:root {
  --bg: #051228;
  --bg-deep: #07162f;
  --panel: rgba(6, 19, 43, 0.72);
  --panel-strong: rgba(8, 23, 52, 0.92);
  --line: rgba(222, 197, 139, 0.28);
  --line-bright: rgba(246, 222, 168, 0.72);
  --gold: #f4d08a;
  --gold-strong: #f8e5b4;
  --ice: #d0ecff;
  --text: #f4f7ff;
  --muted: rgba(232, 239, 255, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(55, 132, 219, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(4, 15, 36, 0.28), rgba(4, 15, 36, 0.34)),
    url("assets/images/optimized/background-harbor.jpg") center center / cover no-repeat,
    linear-gradient(180deg, #031126 0%, #06142d 100%);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

body.modal-open {
  overflow: hidden;
}

.aurora-page {
  min-height: 100vh;
  padding: 0;
}

.page-shell {
  position: relative;
  isolation: isolate;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 22px 28px 20px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-shell::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 15, 36, 0.24), rgba(4, 15, 36, 0.24)),
    url("assets/images/optimized/background-harbor.jpg") center center / cover no-repeat;
}

.page-shell::after {
  z-index: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(132, 255, 225, 0.18), transparent 20%),
    radial-gradient(circle at 18% 12%, rgba(87, 138, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(2, 7, 19, 0.1), rgba(2, 7, 19, 0.32) 78%, rgba(2, 7, 19, 0.5));
}

.page-water-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  contain: paint;
}

.page-water-motion::before,
.page-water-motion::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 7%;
  height: 43%;
  border-radius: 50%;
}

.page-water-motion::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(161, 223, 255, 0.03) 24%,
      rgba(161, 223, 255, 0.1) 52%,
      rgba(255, 255, 255, 0) 100%
    ),
    repeating-linear-gradient(
      -3deg,
      rgba(255, 255, 255, 0) 0 18px,
      rgba(159, 224, 255, 0.11) 18px 24px,
      rgba(255, 255, 255, 0.18) 24px 27px,
      rgba(255, 255, 255, 0) 27px 46px
    );
  background-size: 100% 100%, 132% 100%;
  background-position: center center, 0 0;
  opacity: 0.36;
}

.page-water-motion::after {
  background:
    radial-gradient(ellipse at 25% 55%, rgba(173, 228, 255, 0.22), transparent 18%),
    radial-gradient(ellipse at 72% 58%, rgba(112, 247, 220, 0.18), transparent 16%),
    repeating-linear-gradient(
      2deg,
      rgba(255, 255, 255, 0) 0 28px,
      rgba(170, 233, 255, 0.08) 28px 34px,
      rgba(255, 255, 255, 0.14) 34px 37px,
      rgba(255, 255, 255, 0) 37px 58px
    );
  background-size: 100% 100%, 100% 100%, 148% 100%;
  background-position: center center, center center, 0 0;
  opacity: 0.24;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.glass-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 25, 56, 0.86), rgba(5, 17, 40, 0.78));
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 18px;
  border-radius: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 92px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 58px;
  border-radius: 20px;
  border: 1px solid rgba(244, 208, 138, 0.24);
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.88), rgba(5, 18, 44, 0.8));
}

.brand-mark img {
  width: 58px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(244, 247, 255, 0.86);
}

.nav-links a.active {
  color: var(--gold-strong);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(248, 229, 180, 0.45);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials {
  display: flex;
  gap: 10px;
}

.social-pill {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 21, 47, 0.7);
  color: rgba(255, 250, 235, 0.86);
}

.social-pill svg {
  width: 18px;
  height: 18px;
}

.wallet-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.wallet-button:hover,
.primary-button:hover,
.secondary-button:hover,
.social-pill:hover {
  transform: translateY(-2px);
}

.wallet-button {
  min-height: 52px;
  padding: 0 26px;
  color: #19130a;
  background: linear-gradient(180deg, #f8dfac 0%, #ddb15c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(151, 107, 31, 0.22);
}

.hero-layout {
  display: grid;
  grid-template-columns: 462px minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
  min-height: calc(100% - 86px);
}

.pitch-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 14px;
}

.headline-block {
  padding: 6px 10px 0;
}

.hero-title {
  display: grid;
  gap: 2px;
  margin: 0;
  text-transform: uppercase;
  line-height: 0.95;
}

.frost,
.gold-line {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.04em;
}

.frost {
  font-size: clamp(4.9rem, 6.7vw, 7rem);
  color: #dff4ff;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.28),
    0 0 0.12em rgba(199, 233, 255, 0.65),
    0 0 24px rgba(135, 205, 255, 0.28);
}

.gold-line {
  font-size: clamp(2.65rem, 4vw, 3.7rem);
  color: var(--gold-strong);
  text-shadow: 0 2px 18px rgba(244, 208, 138, 0.24);
}

.gold-line.legend {
  font-size: clamp(4.6rem, 6vw, 6.4rem);
}

.hero-copy {
  max-width: 360px;
  margin: 14px 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(235, 222, 189, 0.25);
  background: rgba(7, 21, 47, 0.76);
  font-weight: 600;
}

.icon-wrap,
.stat-icon,
.benefit-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
}

.icon-wrap {
  width: 18px;
  height: 18px;
}

.icon-wrap svg,
.stat-icon svg,
.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.meta-chip.live {
  gap: 12px;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4cff98, #12b95a);
  box-shadow: 0 0 14px rgba(39, 243, 128, 0.72);
}

.mint-card,
.traits-panel {
  position: relative;
  border-radius: 26px;
}

.mint-card {
  overflow: hidden;
  padding: 22px 28px 20px;
  min-height: 248px;
  background:
    linear-gradient(180deg, rgba(9, 24, 55, 0.84), rgba(4, 14, 35, 0.82));
}

.mint-card-copy h2 {
  margin: 6px 0 0;
  font-size: 2.25rem;
  color: var(--gold);
}

.mint-chain-status {
  margin: 6px 0 0;
  color: rgba(232, 239, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-kicker,
.panel-heading,
.community-title {
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.section-kicker {
  margin: 0;
  font-size: 0.84rem;
}

.mint-card-crystal {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 124px;
  filter: drop-shadow(0 12px 28px rgba(255, 110, 110, 0.2));
}

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

.quantity-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  gap: 10px;
}

.quantity-button,
.quantity-field {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(236, 224, 193, 0.24);
  background: rgba(6, 20, 45, 0.68);
}

.quantity-button {
  color: var(--gold-strong);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.quantity-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  padding: 0 14px;
}

.quantity-field span {
  color: rgba(232, 239, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quantity-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff8ed;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  text-align: right;
}

.primary-button {
  min-height: 58px;
  border-radius: 18px;
  color: #171007;
  font-size: 1rem;
  background: linear-gradient(180deg, #f6dfa8 0%, #d8aa57 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(151, 107, 31, 0.28);
}

.secondary-button {
  min-height: 54px;
  border: 1px solid rgba(236, 224, 193, 0.24);
  color: rgba(248, 250, 255, 0.88);
  background: rgba(6, 20, 45, 0.68);
}

.primary-button:disabled,
.secondary-button.is-disabled,
.wallet-button.is-disabled,
.quantity-button:disabled,
.quantity-field input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.mint-footnote {
  margin: 10px 0 0;
  color: rgba(226, 234, 250, 0.68);
  text-align: center;
}

.traits-panel {
  padding: 14px 14px 12px;
  background:
    linear-gradient(180deg, rgba(9, 24, 55, 0.84), rgba(4, 14, 35, 0.82));
}

.panel-heading {
  text-align: center;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trait-card {
  padding: 8px 8px 6px;
  border-radius: 18px;
  border: 1px solid rgba(235, 222, 189, 0.2);
  background: linear-gradient(180deg, rgba(16, 38, 74, 0.85), rgba(8, 24, 51, 0.82));
  text-align: center;
}

.trait-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.trait-card h3 {
  margin: 8px 0 2px;
  font-size: 0.98rem;
}

.trait-card p {
  margin: 0;
  color: #8dd7ff;
  font-weight: 700;
  font-size: 0.9rem;
}

.stage-column {
  min-width: 0;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 830px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: none;
  contain: layout paint;
}

.stage-bg {
  display: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 66% 35%, rgba(174, 253, 229, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(4, 13, 29, 0), rgba(4, 12, 28, 0.14));
}

.water-motion {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 48%;
  bottom: 12%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  contain: paint;
}

.water-motion::before,
.water-motion::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.water-motion::before {
  background:
    radial-gradient(ellipse at 24% 44%, rgba(166, 228, 255, 0.28), transparent 34%),
    radial-gradient(ellipse at 74% 62%, rgba(123, 255, 223, 0.22), transparent 28%),
    repeating-linear-gradient(
      -4deg,
      rgba(255, 255, 255, 0) 0 14px,
      rgba(150, 218, 255, 0.12) 14px 20px,
      rgba(255, 255, 255, 0.22) 20px 24px,
      rgba(255, 255, 255, 0) 24px 40px
    );
  background-size: 100% 100%, 100% 100%, 138% 100%;
  background-position: center center, center center, 0 0;
  opacity: 0.34;
}

.water-motion::after {
  background:
    radial-gradient(ellipse at 32% 54%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(ellipse at 68% 46%, rgba(154, 223, 255, 0.22), transparent 16%),
    repeating-linear-gradient(
      4deg,
      rgba(255, 255, 255, 0) 0 18px,
      rgba(182, 236, 255, 0.1) 18px 24px,
      rgba(255, 255, 255, 0.18) 24px 28px,
      rgba(255, 255, 255, 0) 28px 46px
    );
  background-size: 100% 100%, 100% 100%, 146% 100%;
  background-position: center center, center center, 0 0;
  opacity: 0.26;
}

.hero-cat {
  position: absolute;
  z-index: 2;
  width: min(42vw, 500px);
  left: 57%;
  top: 12%;
  transform: translateX(-50%);
}

.floating-crystal {
  position: absolute;
  z-index: 2;
  width: clamp(92px, 10vw, 150px);
  opacity: 0.95;
}

.crystal-one {
  top: 23%;
  left: 12%;
}

.crystal-two {
  top: 15%;
  right: 10%;
  width: clamp(74px, 8vw, 118px);
  animation-delay: -1.2s;
}

.crystal-three {
  right: 6%;
  bottom: 31%;
  width: clamp(88px, 9vw, 136px);
  animation-delay: -2.7s;
}

.crystal-four {
  left: 0;
  bottom: 28%;
  width: clamp(96px, 9vw, 150px);
  animation-delay: -3.4s;
}

.summary-panel {
  position: absolute;
  right: 24px;
  bottom: 16px;
  left: 24px;
  z-index: 3;
  padding: 18px 22px 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 26, 58, 0.82), rgba(5, 17, 40, 0.8));
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-item,
.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 34px;
  height: 34px;
}

.stat-item strong {
  display: block;
  font-size: 1.15rem;
  color: #fff5da;
}

.stat-item span {
  display: block;
  color: rgba(234, 241, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.community-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 220, 176, 0.2);
}

.community-title {
  text-align: center;
  font-size: 1rem;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.benefit-item {
  justify-content: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(4, 18, 42, 0.42);
}

.benefit-icon {
  width: 24px;
  height: 24px;
}

.benefit-item span:last-child {
  color: rgba(240, 245, 255, 0.9);
  font-weight: 600;
}

.mint-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mint-modal[hidden] {
  display: none;
}

.mint-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mint-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 22, 0.66);
}

.mint-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  transform: translateY(24px) scale(0.94);
  transition: transform 220ms ease;
}

.mint-modal.is-open .mint-modal-dialog {
  transform: translateY(0) scale(1);
}

.mint-result-card {
  position: relative;
  padding: 26px 26px 30px;
  border-radius: 34px;
  text-align: center;
  border: 1px solid rgba(255, 223, 158, 0.2);
  background:
    radial-gradient(circle at top, rgba(255, 208, 106, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(37, 40, 55, 0.96), rgba(18, 20, 33, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mint-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 232, 180, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 248, 230, 0.9);
  font-size: 1.7rem;
  cursor: pointer;
}

.mint-modal-title {
  margin: -8px 0 2px;
  font-family: "Baloo 2", cursive;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #ffd659;
  text-shadow:
    0 2px 0 #6b3c10,
    0 5px 0 #6b3c10,
    0 12px 24px rgba(0, 0, 0, 0.32);
  transform: rotate(-2.5deg);
}

.mint-modal-meta {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.02;
}

.mint-modal-meta p {
  margin: 0;
}

.mint-modal-meta span {
  color: #fff8ed;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.mint-modal-meta strong {
  color: #ffd86f;
  font-weight: 800;
  text-transform: uppercase;
}

.mint-modal-meta a {
  color: #ffd86f;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.mint-modal-art {
  margin-top: 10px;
}

.mint-animation-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  contain: layout paint;
  perspective: 1400px;
  perspective-origin: 50% 58%;
  background:
    radial-gradient(circle at center, rgba(255, 215, 120, 0.12), transparent 42%),
    radial-gradient(circle at top, rgba(255, 232, 182, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(11, 10, 20, 0.95), rgba(19, 16, 27, 0.96));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.mint-stage-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 231, 158, 0.94) 0%, rgba(255, 198, 72, 0.55) 35%, rgba(255, 198, 72, 0.1) 68%, transparent 72%);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
}

.mint-stage-open,
.mint-particle,
.mint-chest-closed-scene {
  position: absolute;
}

.mint-chest-closed-scene {
  left: 50%;
  bottom: 7%;
  width: 84%;
  transform: translateX(-50%);
}

.mint-stage-open {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.mint-stage-open img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  -webkit-user-drag: none;
}

.mint-chest-closed-scene {
  z-index: 7;
  aspect-ratio: 1448 / 1086;
  transform: translateX(-50%) scale(0.98);
  transform-origin: 50% 82%;
  opacity: 1;
}

.mint-chest-closed-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

.mint-chest-frame {
  opacity: 0;
  transform-origin: 50% 82%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.mint-chest-frame-closed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mint-chest-frame-crack {
  transform: translateY(0) scale(1);
}

.mint-chest-frame-mid {
  transform: translateY(0) scale(1);
}

.mint-chest-base {
  z-index: 1;
  bottom: 2.2%;
  width: 87.6%;
  opacity: 0;
  clip-path: inset(52% 0 18% 0);
  transform: translateX(-50%) translateY(14px) scale(0.96);
}

.mint-popup-cat {
  z-index: 3;
  bottom: 34%;
  width: 44%;
  aspect-ratio: 1;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%) translateY(118px) scale(0.74);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.3));
}

.mint-popup-cat.is-minted-nft {
  bottom: 30%;
  width: 48%;
  border: 2px solid rgba(255, 246, 210, 0.86);
  border-radius: 18px;
  background: rgba(255, 251, 238, 0.92);
  box-shadow:
    0 16px 28px rgba(72, 42, 16, 0.28),
    0 0 0 6px rgba(155, 95, 36, 0.12);
}

.mint-chest-front {
  z-index: 5;
  bottom: 0.5%;
  width: 74%;
  opacity: 0;
  transform: translateX(-50%) translateY(16px) scale(0.94);
}

.mint-particle {
  left: 50%;
  top: 58%;
  z-index: 8;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  transform-origin: center;
}

.mint-particle img {
  display: block;
  width: 100%;
}

.mint-particle-coin {
  width: 66px;
}

.mint-particle-gem {
  width: 68px;
}

.mint-particle-red {
  width: 112px;
}

.mint-particle.p1 {
  --tx: -220px;
  --ty: -190px;
  --rot: -240deg;
  --scale: 0.92;
  animation-delay: 1.08s;
}

.mint-particle.p2 {
  --tx: 224px;
  --ty: -196px;
  --rot: 270deg;
  --scale: 0.88;
  animation-delay: 1.14s;
}

.mint-particle.p3 {
  --tx: -254px;
  --ty: 18px;
  --rot: -190deg;
  --scale: 1.02;
  animation-delay: 1.18s;
}

.mint-particle.p4 {
  --tx: 250px;
  --ty: 48px;
  --rot: 180deg;
  --scale: 0.96;
  animation-delay: 1.22s;
}

.mint-particle.p5 {
  --tx: -184px;
  --ty: -258px;
  --rot: -160deg;
  --scale: 0.9;
  animation-delay: 1.1s;
}

.mint-particle.p6 {
  --tx: 188px;
  --ty: -238px;
  --rot: 150deg;
  --scale: 0.86;
  animation-delay: 1.16s;
}

.mint-particle.p7 {
  --tx: -146px;
  --ty: -122px;
  --rot: -120deg;
  --scale: 0.84;
  animation-delay: 1.12s;
}

.mint-particle.p8 {
  --tx: 160px;
  --ty: -108px;
  --rot: 124deg;
  --scale: 0.84;
  animation-delay: 1.2s;
}

.mint-modal.is-open .mint-stage-glow {
  animation: mintGlowBurst 2.2s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.mint-modal.is-open .mint-chest-closed-scene {
  animation: chestSettle 0.82s cubic-bezier(0.2, 0.82, 0.24, 1) 0.06s both;
}

.mint-modal.is-open .mint-chest-frame-closed {
  animation: chestClosedOut 0.34s ease-out 0.24s forwards;
}

.mint-modal.is-open .mint-chest-frame-crack {
  animation: chestCrackFrame 0.42s cubic-bezier(0.18, 0.84, 0.26, 1) 0.34s forwards;
}

.mint-modal.is-open .mint-chest-frame-mid {
  animation: chestMidFrame 0.46s cubic-bezier(0.18, 0.88, 0.24, 1) 0.62s forwards;
}

.mint-modal.is-open .mint-chest-base {
  animation: openBaseReveal 0.68s cubic-bezier(0.18, 0.82, 0.24, 1) 0.82s forwards;
}

.mint-modal.is-open .mint-popup-cat {
  animation: catPopOut 0.84s cubic-bezier(0.18, 0.9, 0.22, 1.28) 1.08s forwards;
}

.mint-modal.is-open .mint-chest-front {
  animation: frontReveal 0.4s cubic-bezier(0.18, 0.84, 0.24, 1) 0.94s forwards;
}

.mint-modal.is-open .mint-particle {
  animation-name: lootBurst;
  animation-duration: 1.3s;
  animation-timing-function: cubic-bezier(0.18, 0.84, 0.2, 1);
  animation-fill-mode: forwards;
}

.mint-modal.is-open .mint-result-button {
  animation: ctaReveal 0.45s ease-out 1.52s both;
}

.mint-modal.is-open .mint-modal-meta {
  animation: metaPulse 0.45s ease-out 1.08s both;
}

.mint-modal.is-open .mint-modal-title {
  animation: titleBounce 0.55s ease-out 0.1s both;
}

.mint-result-button {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

@keyframes titleBounce {
  0% {
    transform: rotate(-2.5deg) scale(0.92);
  }

  70% {
    transform: rotate(-1.5deg) scale(1.04);
  }

  100% {
    transform: rotate(-2.5deg) scale(1);
  }
}

@keyframes metaPulse {
  0% {
    opacity: 0.5;
    transform: translateY(-4px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chestSettle {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg) scale(0.98);
  }

  18% {
    transform: translateX(-50%) translateY(-2px) rotate(-1.8deg) scale(0.995);
  }

  38% {
    transform: translateX(-50%) translateY(-4px) rotate(1.6deg) scale(1);
  }

  60% {
    transform: translateX(-50%) translateY(-1px) rotate(-0.9deg) scale(1.008);
  }

  78% {
    transform: translateX(-50%) translateY(0) rotate(0.6deg) scale(1.005);
  }
}

@keyframes chestClosedOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  48% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes chestCrackFrame {
  0% {
    opacity: 0;
    transform: translateY(2px) scale(1);
  }

  18% {
    opacity: 0.82;
    transform: translateY(1px) scale(1);
  }

  46% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  78% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-2px) scale(1);
  }
}

@keyframes chestMidFrame {
  0% {
    opacity: 0;
    transform: translateY(2px) scale(1);
  }

  22% {
    opacity: 0.9;
    transform: translateY(1px) scale(1);
  }

  54% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  78% {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-2px) scale(1);
  }
}

@keyframes openBaseReveal {
  0% {
    opacity: 0;
    clip-path: inset(58% 0 18% 0);
    transform: translateX(-50%) translateY(16px) scale(1);
  }

  22% {
    opacity: 0.45;
    clip-path: inset(46% 0 18% 0);
    transform: translateX(-50%) translateY(8px) scale(1);
  }

  56% {
    opacity: 0.9;
    clip-path: inset(20% 0 18% 0);
    transform: translateX(-50%) translateY(2px) scale(1);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 18% 0);
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes frontReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px) scale(1);
  }

  45% {
    opacity: 0.62;
    transform: translateX(-50%) translateY(8px) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes catPopOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(118px) scale(0.74);
  }

  55% {
    opacity: 1;
    transform: translateX(-50%) translateY(-24px) scale(1.03);
  }

  74% {
    transform: translateX(-50%) translateY(6px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes lootBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(var(--scale))
      rotate(var(--rot));
  }
}

@keyframes mintGlowBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@keyframes ctaReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mint-result-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  min-height: 72px;
  margin-top: 14px;
  padding: 0 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 239, 194, 0.3);
  background: linear-gradient(180deg, #f8e4a7 0%, #d8ab58 100%);
  color: #241807;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 32px rgba(151, 107, 31, 0.28);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes waterSweep {
  0% {
    transform: translate3d(-4%, 12px, 0) scaleX(1.03);
    background-position: center center, center center, 0 0;
    opacity: 0.46;
  }

  50% {
    transform: translate3d(5%, -7px, 0) scaleX(0.985);
    background-position: center center, center center, 90px 0;
    opacity: 0.88;
  }

  100% {
    transform: translate3d(-4%, 12px, 0) scaleX(1.03);
    background-position: center center, center center, 180px 0;
    opacity: 0.46;
  }
}

@keyframes waterSweepReverse {
  0% {
    transform: translate3d(3%, -9px, 0) scaleX(1);
    background-position: center center, center center, 0 0;
    opacity: 0.34;
  }

  50% {
    transform: translate3d(-5%, 8px, 0) scaleX(1.04);
    background-position: center center, center center, -75px 0;
    opacity: 0.76;
  }

  100% {
    transform: translate3d(3%, -9px, 0) scaleX(1);
    background-position: center center, center center, -150px 0;
    opacity: 0.34;
  }
}

@keyframes pageWaterDrift {
  0% {
    transform: translate3d(-2%, 12px, 0) scaleX(1.02);
    background-position: center center, 0 0;
    opacity: 0.28;
  }

  50% {
    transform: translate3d(2%, -6px, 0) scaleX(0.99);
    background-position: center center, 120px 0;
    opacity: 0.58;
  }

  100% {
    transform: translate3d(-2%, 12px, 0) scaleX(1.02);
    background-position: center center, 240px 0;
    opacity: 0.28;
  }
}

@keyframes pageWaterDriftReverse {
  0% {
    transform: translate3d(2%, -10px, 0) scaleX(1);
    background-position: center center, center center, 0 0;
    opacity: 0.22;
  }

  50% {
    transform: translate3d(-3%, 7px, 0) scaleX(1.03);
    background-position: center center, center center, -90px 0;
    opacity: 0.46;
  }

  100% {
    transform: translate3d(2%, -10px, 0) scaleX(1);
    background-position: center center, center center, -180px 0;
    opacity: 0.22;
  }
}

@keyframes waterBodyPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-water-motion,
  .water-motion,
  .page-water-motion::before,
  .page-water-motion::after,
  .water-motion::before,
  .water-motion::after,
  .floating-crystal,
  .mint-modal.is-open .mint-stage-glow,
  .mint-modal.is-open .mint-chest-closed-scene,
  .mint-modal.is-open .mint-chest-frame-closed,
  .mint-modal.is-open .mint-chest-frame-crack,
  .mint-modal.is-open .mint-chest-frame-mid,
  .mint-modal.is-open .mint-chest-base,
  .mint-modal.is-open .mint-popup-cat,
  .mint-modal.is-open .mint-chest-front,
  .mint-modal.is-open .mint-particle,
  .mint-modal.is-open .mint-result-button,
  .mint-modal.is-open .mint-modal-meta,
  .mint-modal.is-open .mint-modal-title {
    animation: none;
  }
}

@media (max-width: 1220px) {
  .page-shell {
    height: auto;
    min-height: auto;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .headline-block {
    padding-left: 0;
  }

  .pitch-column {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .aurora-page {
    padding: 0;
  }

  .hero-stage {
    min-height: 860px;
  }

  .hero-cat {
    width: min(72vw, 500px);
    left: 50%;
    top: 12%;
  }

  .stats-row,
  .benefits-row,
  .trait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 620px) {
  .top-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-title {
    gap: 6px;
  }

  .frost {
    font-size: 4rem;
  }

  .gold-line.legend {
    font-size: 4.2rem;
  }

  .hero-stage {
    min-height: 760px;
  }

  .floating-crystal {
    opacity: 0.72;
  }

  .stats-row,
  .benefits-row,
  .trait-grid {
    grid-template-columns: 1fr;
  }

  .stat-item,
  .benefit-item {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .mint-modal {
    padding: 16px;
  }

  .mint-result-card {
    padding: 22px 16px 22px;
    border-radius: 24px;
  }

  .mint-modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .mint-result-button {
    min-height: 62px;
    padding: 0 22px;
  }

  .mint-particle-coin {
    width: 52px;
  }

  .mint-particle-gem {
    width: 56px;
  }

  .mint-particle-red {
    width: 84px;
  }
}
