:root {
  --gold: #f5c518;
  --gold-deep: #e8a317;
  --gold-bright: #ffe36b;
  --text: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.82);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--text);
  background: #07080c;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.page-bg,
.page-dim,
.load-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-bg {
  z-index: 0;
  background: #07080c url("../assets/hero-bg.png") center / cover no-repeat;
  transform: scale(1.06);
  animation: bg-settle 1.4s var(--ease) 0.15s forwards;
}

.theme-mc .page-bg {
  background-image: url("../assets/mc-bg.png");
}

.theme-rb .page-bg {
  background-image: url("../assets/rb-bg.png");
}

.theme-fn .page-bg {
  background-image: url("../assets/fn-bg.png");
}

.page-dim {
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 20%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.38) 38%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.72) 100%);
}

.load-overlay {
  z-index: 20;
  background: #05060a;
  animation: overlay-out 1.15s var(--ease) 0.2s forwards;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 6vw 2.4rem;
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: min(1080px, 100%);
  margin: 0 auto 18vh;
  padding: 0.62rem 1.25rem 0.62rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: rise 0.9s var(--ease) 0.35s both;
}

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: 0.02em;
  color: #d7e3f4;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f5c518 0%, #ffe36b 42%, #c98912 100%);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
  clip-path: polygon(50% 4%, 96% 28%, 96% 72%, 50% 96%, 4% 72%, 4% 28%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.05rem;
}

.nav-link {
  color: rgba(210, 220, 235, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.lang {
  position: relative;
}

.lang__btn {
  appearance: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 230, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.lang__flag,
.lang__menu .flag {
  display: block;
  width: 26px;
  height: 18px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lang__flag svg,
.lang__menu .flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(6, 36px);
  gap: 0.3rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(160, 190, 230, 0.22);
  background: rgba(8, 14, 24, 0.95);
  box-shadow: var(--shadow);
  max-width: min(92vw, 260px);
}

@media (max-width: 520px) {
  .lang__menu {
    grid-template-columns: repeat(5, 36px);
  }
}

.lang__menu[hidden] {
  display: none;
}

.lang__menu button {
  appearance: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lang__menu button:hover,
.lang__menu button[aria-selected="true"] {
  background: rgba(245, 197, 24, 0.16);
}

.intro {
  display: flex;
  flex-direction: column;
}

.devices {
  text-align: center;
  animation: rise 0.9s var(--ease) 0.5s both;
}

.devices__title {
  margin: 0;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.devices__hint {
  margin: 0.45rem auto 1.35rem;
  max-width: 28rem;
  color: var(--muted);
  font-weight: 700;
}

.devices__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(720px, 100%);
  margin: 0 auto;
}

.device {
  appearance: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 0.7rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.device:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
}

.device.is-selected {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.16);
  box-shadow:
    var(--shadow),
    0 0 0 2px rgba(245, 197, 24, 0.45);
}

.device__icon {
  width: 48px;
  height: 48px;
  color: #fff;
}

.device__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.device__name {
  font-weight: 800;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.6vw, 3rem);
  align-content: center;
  justify-items: center;
  width: min(1280px, 100%);
  margin: 18vh auto 0;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 340px;
  min-height: 520px;
  padding: 1.7rem 1.25rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transform: translateY(42px);
  opacity: 0;
  transition:
    opacity 1.15s var(--ease),
    transform 1.15s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.card.is-inview:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 197, 24, 0.18);
}

.card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 64%
  );
  transform: translateX(-130%);
  animation: shimmer 1.2s var(--ease) 1.2s both;
  pointer-events: none;
}

.card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card__icon span {
  font-size: 1.45rem;
}

.card__title {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.card__copy {
  margin: 0 0 1.35rem;
  flex: 1;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.card--poster {
  padding: 0;
  min-height: 0;
  aspect-ratio: 2 / 3;
  height: auto;
  background: #0a0a0c;
  border: 3px solid #f5c518;
  box-shadow:
    var(--shadow),
    0 0 0 6px rgba(18, 14, 4, 0.72),
    0 0 0 8px rgba(245, 197, 24, 0.55),
    0 0 28px rgba(245, 197, 24, 0.28);
}

.card--poster:hover {
  border-color: #ffe36b;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(18, 14, 4, 0.8),
    0 0 0 9px rgba(255, 227, 107, 0.85),
    0 0 36px rgba(245, 197, 24, 0.42);
}

.card__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.32) saturate(0.45);
  transition: filter 1.25s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.58);
  opacity: 1;
  transition: opacity 1.25s var(--ease);
}

body:not(.is-ready) .card--poster {
  border-color: #2f2a16;
  box-shadow: var(--shadow), 0 0 0 6px rgba(10, 10, 12, 0.65);
}

body:not(.is-ready) .card--poster:hover {
  border-color: #2f2a16;
  box-shadow: var(--shadow), 0 0 0 6px rgba(10, 10, 12, 0.65);
}

body.is-ready .card.is-inview .card__art,
body.is-ready .card.is-inview .card__cta-bar {
  filter: none;
}

body.is-ready .card.is-inview::after {
  opacity: 0;
}

body.is-ready .card.is-inview:nth-child(1) .card__art,
body.is-ready .card.is-inview:nth-child(1)::after,
body.is-ready .card.is-inview:nth-child(1) .card__cta-bar {
  transition-delay: 0.12s;
}

body.is-ready .card.is-inview:nth-child(2) .card__art,
body.is-ready .card.is-inview:nth-child(2)::after,
body.is-ready .card.is-inview:nth-child(2) .card__cta-bar {
  transition-delay: 0.55s;
}

body.is-ready .card.is-inview:nth-child(3) .card__art,
body.is-ready .card.is-inview:nth-child(3)::after,
body.is-ready .card.is-inview:nth-child(3) .card__cta-bar {
  transition-delay: 0.98s;
}

.card__cta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 3.2rem 1.05rem calc(1.55rem + 10px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 8, 10, 0.55) 32%,
    rgba(8, 8, 10, 0.96) 72%
  );
  filter: brightness(0.45);
  transition: filter 1.25s var(--ease);
}

.card--mc .btn {
  width: calc(100% - 0.9rem);
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.8rem 0.35rem;
  letter-spacing: -0.04em;
}

.card--fn:not(.card--poster) {
  border-color: rgba(90, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(18, 36, 78, 0.58), rgba(8, 12, 28, 0.62));
}

.card--fn .card__icon {
  background: radial-gradient(circle at 30% 25%, #9be7ff, #2b6cff 58%, #152a66);
  color: #eaf7ff;
  box-shadow: 0 0 0 3px rgba(90, 210, 255, 0.28), 0 8px 18px rgba(0, 0, 0, 0.35);
  font-family: "Russo One", sans-serif;
}

.card--fn .card__title {
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d6f4ff;
}

.card--rb:not(.card--poster) {
  border-color: rgba(255, 92, 92, 0.38);
  background: linear-gradient(180deg, rgba(72, 22, 28, 0.52), rgba(18, 12, 16, 0.6));
}

.card--rb .card__icon {
  background: radial-gradient(circle at 30% 25%, #ffb4b4, #e23d3d 58%, #8d1c1c);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.28), 0 8px 18px rgba(0, 0, 0, 0.35);
  font-family: Outfit, Nunito, sans-serif;
}

.card--rb .card__title {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  color: #ffe4e4;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: min(100%, 220px);
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.98rem;
  color: #2a1c00;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 42%, var(--gold-deep));
  box-shadow:
    0 8px 0 #b57a08,
    0 14px 22px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    filter 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
  box-shadow:
    0 11px 0 #b57a08,
    0 18px 24px rgba(0, 0, 0, 0.38);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(3px) scale(0.99);
  box-shadow:
    0 4px 0 #b57a08,
    0 8px 12px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
  cursor: not-allowed;
  color: #2e2e2e;
  background: linear-gradient(180deg, #d0d0d0, #9f9f9f 45%, #7d7d7d);
  box-shadow:
    0 8px 0 #5a5a5a,
    0 14px 22px rgba(0, 0, 0, 0.28);
  filter: grayscale(0.35);
}

.btn:disabled:hover,
.btn:disabled:active {
  transform: none;
  filter: grayscale(0.35);
  box-shadow:
    0 8px 0 #5a5a5a,
    0 14px 22px rgba(0, 0, 0, 0.28);
}

.btn:disabled::after {
  display: none;
}

.card--fn.card--poster .card__art {
  object-position: center 32%;
}

.card--fn .btn {
  width: calc(100% - 0.9rem);
  font-family: "Russo One", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.15;
  padding: 0.82rem 0.4rem;
}

.card--rb.card--poster .card__art {
  object-position: center 32%;
}

.card--rb .btn {
  width: calc(100% - 0.9rem);
  font-family: Outfit, Nunito, sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
  padding: 0.82rem 0.45rem;
}

.footer {
  margin-top: 20vh;
  text-align: center;
  animation: rise 0.8s var(--ease) 1s both;
}

.footer__copy {
  margin: 0 0 0.55rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.footer__disclaimer {
  margin: 0 auto;
  max-width: 46rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(247, 244, 238, 0.62);
}

.page--legal .navbar,
.page--gen .navbar {
  margin-bottom: 2.4rem;
}

.page--legal .footer {
  margin-top: 4rem;
}

.page--gen {
  min-height: 100vh;
}

.page--gen .gen {
  flex: 1;
  margin-bottom: 0;
}

.page--gen .footer {
  margin-top: auto;
  padding-top: 3.5rem;
}

.gen {
  width: min(1080px, 100%);
  margin: 0 auto 8vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.15rem;
  align-items: stretch;
}

.gen-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.gen-card,
.pack-card,
.load-card,
.verify-card,
.activity {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.gen-card {
  padding: 1.7rem 1.55rem 1.55rem;
}

.gen-card__title {
  margin: 0 0 1.45rem;
  font-family: Outfit, Fredoka, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.gen-field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.gen-field__label {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  color: rgba(247, 244, 238, 0.78);
}

.theme-mc .gen-field__label {
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.5;
}

.gen-field__input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.55);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.95rem 0.95rem;
  outline: none;
}

.gen-field__input::placeholder {
  color: rgba(247, 244, 238, 0.42);
}

.gen-field__input:focus {
  border-color: rgba(245, 197, 24, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18);
}

.gen-connect,
.gen-continue {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 1.05rem 0.8rem 0.95rem;
  cursor: pointer;
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #1a1404;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  box-shadow: 0 6px 0 #b57a08, 0 10px 18px rgba(0, 0, 0, 0.32);
}

.gen-connect:disabled,
.gen-continue:disabled {
  cursor: not-allowed;
  color: #2e2e2e;
  background: linear-gradient(180deg, #d0d0d0, #9f9f9f 45%, #7d7d7d);
  box-shadow: 0 6px 0 #5a5a5a, 0 10px 18px rgba(0, 0, 0, 0.28);
  filter: grayscale(0.2);
}

.gen-connect.is-busy:disabled {
  cursor: wait;
  color: #1a1404;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 48%, var(--gold-deep) 100%);
  box-shadow: 0 6px 0 #b57a08, 0 10px 18px rgba(0, 0, 0, 0.32);
  filter: none;
  animation: connect-pulse 0.85s ease-in-out infinite;
}

.gen-connect.is-success:disabled {
  cursor: default;
  color: #0d2a16;
  background: linear-gradient(180deg, #b8ffc8 0%, #5fe07d 48%, #2fbe55 100%);
  box-shadow: 0 6px 0 #1e7a38, 0 10px 18px rgba(0, 0, 0, 0.32);
  filter: none;
}

.pack-card {
  padding: 1.35rem 1.25rem 1.25rem;
  animation: rise 0.55s var(--ease) both;
}

.pack-card__title {
  margin: 0 0 1.05rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.pack {
  appearance: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.35rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 16, 0.42);
  color: #fff;
}

.pack:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.pack.is-selected {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.14);
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.4);
}

.pack__art {
  width: 100%;
  max-width: 92px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.theme-rb .pack__art,
.theme-rb .verify-pack__art,
.theme-rb .activity__tile img {
  mix-blend-mode: normal;
}

.pack__amount {
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
}

.load-card,
.verify-card {
  padding: 1.5rem 1.25rem 1.3rem;
  animation: rise 0.55s var(--ease) both;
}

.load-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.load-card[hidden],
.verify-card[hidden],
.pack-card[hidden] {
  display: none;
}

.load-visual {
  display: none;
  align-items: center;
  justify-content: center;
}

.load-card[data-anim="ring"] .load-visual--ring,
.load-card[data-anim="dots"] .load-visual--dots,
.load-card[data-anim="scan"] .load-visual--scan {
  display: flex;
}

.load-ring {
  width: 108px;
  height: 108px;
}

.load-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.load-ring__track,
.load-ring__bar {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.load-ring__track {
  stroke: rgba(255, 255, 255, 0.14);
}

.load-ring__bar {
  stroke: #7dff9a;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
}

.load-card.is-run .load-ring__bar {
  animation: load-ring var(--load-ms, 5s) linear forwards;
}

.load-visual--dots {
  height: 56px;
  gap: 0.6rem;
}

.load-visual--dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7dff9a;
  animation: load-bounce 0.7s ease-in-out infinite;
}

.load-visual--dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.load-visual--dots span:nth-child(3) {
  animation-delay: 0.24s;
}

.load-scan {
  position: relative;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid rgba(125, 255, 154, 0.4);
  background: rgba(8, 10, 16, 0.45);
}

.load-scan__beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(125, 255, 154, 0.55), transparent);
}

.load-card.is-run[data-anim="scan"] .load-scan__beam {
  animation: load-scan var(--load-ms, 6s) linear infinite;
}

.load-card__status {
  margin: 0;
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.3;
}

.load-logs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 4.2rem;
}

.load-logs li {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.5);
  animation: rise 0.35s var(--ease) both;
}

.load-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.load-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fe07d, #b8ffc8);
}

.load-card.is-run .load-bar__fill {
  animation: load-bar var(--load-ms, 5s) linear forwards;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(247, 244, 238, 0.82);
}

.google-g {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.verify-card {
  padding: 1.5rem 1.25rem 1.3rem;
}

.verify-top {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.verify-pack {
  width: 118px;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 16px;
  border: 1px solid rgba(125, 255, 154, 0.5);
  background: rgba(47, 190, 85, 0.2);
  box-shadow: 0 0 0 1px rgba(125, 255, 154, 0.12);
}

.verify-pack__art {
  width: 72px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.verify-pack__amount {
  margin: 0;
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

.verify-send {
  margin: 0;
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

.verify-card__title {
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
}

.verify-warn {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.45));
}

.verify-card__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 238, 0.62);
  text-transform: uppercase;
}

.verify-card__copy {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--muted);
}

.verify-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 14px;
  padding: 1.05rem 0.7rem 0.95rem;
  cursor: pointer;
  font-family: Outfit, Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(180deg, #5fe07d 0%, #2fbe55 52%, #1e7a38 100%);
  box-shadow: 0 6px 0 #145526, 0 10px 18px rgba(0, 0, 0, 0.32);
}

.verify-btn .google-g {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

@keyframes load-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes load-bar {
  to {
    width: 100%;
  }
}

@keyframes load-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes load-scan {
  from {
    top: -40%;
  }
  to {
    top: 110%;
  }
}

@keyframes connect-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

.activity {
  padding: 1.15rem 1.05rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.activity__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.activity__title {
  margin: 0;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}

.activity__live {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0d2a16;
  background: #7dff9a;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
}

.activity__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  overflow: auto;
}

.activity__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.48rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.38);
  animation: rise 0.45s var(--ease) both;
}

.activity__item.is-gold {
  border-color: rgba(245, 197, 24, 0.42);
  background: rgba(245, 197, 24, 0.1);
}

.activity__tile {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.activity__item.is-gold .activity__tile {
  border: 1px solid rgba(245, 197, 24, 0.55);
  background: rgba(245, 197, 24, 0.16);
}

.activity__tile img {
  width: 38px;
  height: 32px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.activity__body {
  min-width: 0;
}

.activity__nick {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity__text {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}

.activity__amount.is-gold {
  color: var(--gold);
  font-weight: 800;
}

.activity__time {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(247, 244, 238, 0.5);
  white-space: nowrap;
}

.legal {
  width: min(760px, 100%);
  margin: 0 auto 8vh;
  padding: 1.7rem 1.6rem 1.8rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 14, 22, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.legal h1 {
  margin: 0 0 1.15rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.7rem;
}

.legal h2 {
  margin: 1.25rem 0 0.45rem;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 1.15rem;
}

.legal h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.legal p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

@keyframes overlay-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes bg-settle {
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(130%);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 6px 0 #b57a08, 0 10px 18px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow:
      0 6px 0 #b57a08,
      0 10px 18px rgba(0, 0, 0, 0.32),
      0 0 18px rgba(245, 197, 24, 0.45);
  }
}

@media (max-width: 900px) {
  .page {
    padding: 0.85rem 1.1rem 1.6rem;
  }

  .navbar {
    margin: 0 auto 14vh;
    padding: 0.72rem 1.15rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.8rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .intro {
    padding-bottom: 0;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-top: 14vh;
  }

  .footer {
    margin-top: 16vh;
  }

  .devices__row {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .card {
    max-width: 340px;
    min-height: 480px;
  }

  .card--poster {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

  .gen {
    grid-template-columns: 1fr;
  }

  .packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verify-top {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .verify-pack {
    width: 104px;
    height: 104px;
  }

  .page--gen .footer {
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg,
  .load-overlay,
  .navbar,
  .devices,
  .card,
  .card__shimmer,
  .footer {
    animation: none !important;
  }

  .page-bg {
    transform: none;
  }

  .load-overlay {
    display: none;
  }

  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
