:root {
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --secondary: #7dd3fc;
  --primary-rgb: 56, 189, 248;
  --dark: #090c10;
  --dark-lighter: #121720;
  --dark-card: #161c26;
  --text-primary: #ffffff;
  --text-secondary: #b9bbbe;
  --text-muted: #7f8794;
  --border: rgba(var(--primary-rgb), 0.16);
  --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --shadow-glow: 0 0 38px rgba(var(--primary-rgb), 0.38), 0 0 75px rgba(var(--primary-rgb), 0.14);
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font: var(--font-family-sans-serif);
  --font-display: "Russo One", var(--font-family-sans-serif);
  --card-radius: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #090c10;
  overflow-x: clip;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 12, 16, 0.7);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

#particles {
  display: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--dark);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.loader-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--secondary);
  text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.75);
  animation: colorize 6s ease-in-out infinite;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.loader-text span {
  display: inline-block;
  animation: loaderDot 1.2s infinite;
}

.loader-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loaderDot {
  0%, 20% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 0.2; transform: translateY(0); }
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading > :not(.page-loader) {
  opacity: 0;
}

body.is-ready > :not(.page-loader) {
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}

.loader {
  --c1: var(--secondary);
  --c2: var(--primary-dark);
  --t: 2s;
  --size: 1;
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: scale(var(--size));
  box-shadow:
    0 0 25px 0 rgba(var(--primary-rgb), 0.55),
    0 20px 50px 0 rgba(var(--primary-rgb), 0.45);
  animation: colorize 6s ease-in-out infinite;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 1px solid var(--c1);
  border-bottom: 1px solid var(--c2);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0.55));
  box-shadow:
    inset 0 10px 10px 0 rgba(var(--primary-rgb), 0.5),
    inset 0 -10px 10px 0 rgba(var(--primary-rgb), 0.55);
}

.loader-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="g"><feGaussianBlur in="SourceGraphic" stdDeviation="5"/><feColorMatrix values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -9"/></filter></svg>#g');
  -webkit-filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="g"><feGaussianBlur in="SourceGraphic" stdDeviation="5"/><feColorMatrix values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 22 -9"/></filter></svg>#g');
}

.blob {
  position: absolute;
  border-radius: 42%;
  background: linear-gradient(180deg, var(--c1) 30%, var(--c2) 70%);
}

.b1 {
  width: 44px;
  height: 44px;
  top: 12px;
  left: 28px;
  transform-origin: 50% 130%;
  animation: spin var(--t) linear infinite reverse;
}

.b2 {
  width: 40px;
  height: 40px;
  top: 18px;
  left: 30px;
  transform-origin: 50% -30%;
  animation: spin var(--t) linear infinite;
  animation-delay: calc(var(--t) / -3);
}

.b3 {
  width: 30px;
  height: 30px;
  top: 28px;
  left: 35px;
  transform-origin: -30% -10%;
  animation: spin var(--t) linear infinite reverse;
}

.b4 {
  width: 28px;
  height: 28px;
  top: 30px;
  left: 36px;
  transform-origin: -30% -10%;
  animation: spin var(--t) linear infinite reverse;
  animation-delay: calc(var(--t) / -2);
}

.b5 {
  width: 30px;
  height: 30px;
  top: 28px;
  left: 35px;
  transform-origin: 130% -10%;
  animation: spin var(--t) linear infinite;
}

.b6 {
  width: 28px;
  height: 28px;
  top: 30px;
  left: 36px;
  transform-origin: 130% -10%;
  animation: spin var(--t) linear infinite;
  animation-delay: calc(var(--t) / -1.5);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes colorize {
  0% {
    filter: hue-rotate(0deg);
  }
  20% {
    filter: hue-rotate(-30deg);
  }
  40% {
    filter: hue-rotate(-60deg);
  }
  60% {
    filter: hue-rotate(-90deg);
  }
  80% {
    filter: hue-rotate(-45deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes loaderRgbHue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

body > .particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.85;
  }
  95% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.top,
main,
.footer {
  position: relative;
  z-index: 2;
}

.top {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 50;
}

.top-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem;
  background: rgba(20, 27, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.top.is-scrolled .top-inner {
  border-color: rgba(var(--primary-rgb), 0.35);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-dot {
  display: none;
}

.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 1;
  color: currentColor;
  flex-shrink: 0;
}

.nav-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-label {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 0.38rem 0.72rem;
  border-radius: 0.55rem;
  background: rgba(16, 22, 32, 0.96);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 60;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.nav a:hover .nav-label,
.top-inner .btn-solid:hover .nav-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.nav a.is-active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.16);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.22);
}

.nav-sep {
  width: 24px;
  height: 1px;
  margin: 0.15rem 0;
  background: rgba(var(--primary-rgb), 0.22);
}

.top-inner .btn-solid {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 0.85rem;
  justify-content: center;
  border-radius: 0.7rem;
  overflow: visible;
}

.top-inner .btn-solid::before {
  display: none;
}

.top-inner .btn-solid:hover {
  color: #fff;
  background: rgba(var(--primary-rgb), 0.26);
  border-color: var(--primary);
}

.nav-burger {
  display: none;
}

@media (max-width: 900px) {
  .top {
    position: fixed;
    top: auto;
    bottom: 1.1rem;
    right: 1.1rem;
    left: auto;
    transform: none;
    width: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(20, 27, 38, 0.94);
    border: 1px solid rgba(var(--primary-rgb), 0.45);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(var(--primary-rgb), 0.28);
    backdrop-filter: blur(16px);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s var(--ease), border-color 0.25s, box-shadow 0.25s, background 0.25s;
  }
  .nav-burger svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.25s var(--ease), opacity 0.2s;
  }
  .nav-burger .ico-close {
    display: none;
  }
  .top.is-open .nav-burger {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary);
  }
  .top.is-open .nav-burger .ico-menu {
    display: none;
  }
  .top.is-open .nav-burger .ico-close {
    display: block;
  }
  .top-inner {
    position: fixed;
    bottom: 4.9rem;
    right: 1.1rem;
    left: auto;
    width: min(215px, calc(100vw - 2.2rem));
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    gap: 0.3rem;
    border-radius: 1rem;
    border-color: rgba(var(--primary-rgb), 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .top.is-open .top-inner {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.22rem;
  }
  .nav a {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    text-align: left;
    gap: 0.65rem;
    padding: 0.58rem 0.85rem;
    border-radius: 0.65rem;
  }
  .nav-dot {
    display: none;
  }
  .nav-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--primary);
  }
  .nav-label {
    position: static;
    transform: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 0.86rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a:hover .nav-label,
  .top-inner .btn-solid:hover .nav-label {
    transform: none;
  }
  .nav-sep {
    display: block;
    width: auto;
    margin: 0.25rem 0.35rem;
  }
  .top-inner .btn-solid {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    gap: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: inherit;
  background-color: var(--primary);
  z-index: -1;
  transition: width 0.45s var(--ease), background-color 0.3s var(--ease);
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  color: #090c10;
}

.btn:active::before {
  background-color: var(--primary-dark);
}

.btn-solid {
  background: rgba(var(--primary-rgb), 0.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost::before {
  background-color: var(--secondary);
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4.5rem clamp(1.25rem, 3vw, 2rem) 4rem;
  position: relative;
  scroll-snap-align: start;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-copy {
  max-width: 34rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.2vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.78) 48%,
    rgba(var(--primary-rgb), 0.38) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.14) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.14) 100%
  );
  margin-bottom: 1.15rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.hero-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.hero-metrics dt {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-metrics dd {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: min(380px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.32), transparent 68%);
  filter: blur(10px);
  transition: background 0.5s ease;
}

.hero-stack {
  --fx: 0px;
  --fy: 0px;
  --fr: 0deg;
  position: relative;
  width: min(260px, 68vw);
  aspect-ratio: 626 / 875;
  transform: translate3d(var(--fx), var(--fy), 0) rotateZ(var(--fr));
  will-change: transform;
}

.hero-card {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: transparent;
  border: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.hero-card[data-pos="back"] {
  z-index: 1;
  transform: rotate(-14deg) translate(-34%, 6%) scale(0.92);
  opacity: 0.72;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease), filter 0.65s ease;
}

.hero-card[data-pos="mid"] {
  z-index: 2;
  transform: rotate(12deg) translate(32%, 3%) scale(0.95);
  opacity: 0.88;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease), filter 0.65s ease;
}

.hero-card[data-pos="front"] {
  z-index: 3;
  transform: rotate(-2deg) translate(0, 0) scale(1);
  opacity: 1;
  box-shadow: none;
  filter: drop-shadow(0 0 28px rgba(var(--primary-rgb), 0.45)) drop-shadow(0 20px 36px rgba(0, 0, 0, 0.75));
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease), filter 0.65s ease;
}

.hero-card.is-discarding {
  z-index: 4;
  animation: cardDiscardOut 0.42s var(--ease) forwards;
}

.hero-card.is-spawning {
  z-index: 1;
  animation: cardSpawnBack 0.35s var(--ease) forwards;
}

@keyframes cardDiscardOut {
  0% {
    transform: rotate(-2deg) translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(16deg) translate(68%, -14%) scale(0.84);
    opacity: 0;
  }
}

@keyframes cardSpawnBack {
  0% {
    transform: rotate(-20deg) translate(-48%, 14%) scale(0.78);
    opacity: 0;
  }
  100% {
    transform: rotate(-14deg) translate(-34%, 6%) scale(0.92);
    opacity: 0.72;
  }
}

@keyframes floatCard {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.45rem;
  height: 2.2rem;
  border: 1.5px solid rgba(var(--primary-rgb), 0.45);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.35rem;
}

.scroll-hint span {
  width: 0.26rem;
  height: 0.26rem;
  border-radius: 50%;
  background: var(--primary);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(13px); opacity: 0; }
}

.section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 6vw, 5.5rem) clamp(1.25rem, 3vw, 2rem);
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head-plus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
  width: 100%;
  max-width: 40rem;
}

.section-art {
  display: block;
  width: min(320px, 78vw);
  height: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.section-head h1,
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.15;
  background: none;
  -webkit-text-fill-color: #fff;
}

.section-head-plus h2 {
  margin-bottom: 0.4rem;
}

.section-kicker {
  margin: 0;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  color: #8b93a0;
  letter-spacing: 0.01em;
}

.section-lead {
  display: none;
}

.section-head p:not(.section-kicker):not(.section-lead) {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 58ch;
}

.section-head-row {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.cards-page .cards-section {
  padding-top: 3.5rem;
  min-height: calc(100vh - 4.5rem);
}

.abyssal-note {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 0.35rem;
  margin: -0.85rem 0 1.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(14, 116, 144, 0.08));
  color: var(--text-secondary);
}

.abyssal-note[hidden] {
  display: none;
}

.abyssal-note strong {
  color: #67e8f9;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.abyssal-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: none;
}

.abyssal-note em {
  font-style: normal;
  font-weight: 700;
  color: #e2f8ff;
}

.abyssal-note.is-active {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.18);
}

@media (min-width: 900px) {
  .abyssal-note {
    padding-right: 4.25rem;
  }
}

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 780px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card {
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.35rem 1.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 27, 36, 0.96);
}

.feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.bento-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cmd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 0;
}

@media (min-width: 880px) {
  .cmd-layout {
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
  }
}

.cmd-list {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  min-height: 100%;
}

.cmd-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 0;
  padding: 0.55rem 0.85rem;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.cmd-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 27, 36, 0.96);
}

.cmd-item code {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cmd-item span {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cmd-preview {
  display: flex;
  min-height: 100%;
}

.cmd-window {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(20, 27, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmd-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.cmd-bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.45);
}

.cmd-bar strong {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cmd-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 0.75rem;
  min-height: 0;
}

.cmd-body-single {
  justify-content: stretch;
}

.cmd-body-single .cmd-drop {
  flex: 1;
  height: 100%;
  justify-content: space-between;
}

.cmd-msg {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: 0.85rem 0.95rem;
  border-radius: 0 0.5rem 0.5rem 0;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.cmd-msg-muted {
  border-left-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.cmd-drop {
  gap: 0.55rem;
  flex: 1.45;
}

.cmd-drop-media {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 160px;
  max-height: 220px;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0d12;
}

.cmd-drop-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease, transform 0.45s var(--ease);
}

.cmd-drop-art.is-swap {
  opacity: 0;
  transform: scale(1.04);
}

.cmd-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

.cmd-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0.15rem 0;
  line-height: 1.25;
}

.cmd-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.cmd-sub code {
  font-family: var(--font-family-monospace);
  font-size: 0.8rem;
  color: var(--primary);
}

.econ-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 820px) {
  .econ-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.econ-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  height: 100%;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.econ-panel h3,
.bento-card h3,
.cta-band h2,
.footer-logo,
.inspector-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.econ-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.econ-rows {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.econ-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.econ-rows span {
  color: var(--text-secondary);
}

.econ-rows strong {
  color: var(--primary);
}

.econ-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rarity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rarity-grid span {
  padding: 0.45rem 0.75rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.rarity-grid span[data-r="abyssal"] {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.12);
}

.cards-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.select-wrap {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.select-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cat-trigger {
  min-width: 14rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.95rem;
  background: rgba(24, 32, 44, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cat-trigger:hover,
.select-wrap.is-open .cat-trigger {
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.cat-trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cat-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.select-wrap.is-open .cat-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.cat-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 15.5rem;
  max-height: 28rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  padding: 0.4rem;
  background: rgba(14, 18, 26, 0.97);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 0.8rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
  z-index: 40;
  display: grid;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.select-wrap.is-open .cat-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cat-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cat-option:hover {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--text-primary);
}

.cat-option.is-selected {
  background: rgba(var(--primary-rgb), 0.18);
  border-color: rgba(var(--primary-rgb), 0.45);
  color: #fff;
}

.cat-option-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.cat-option-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
}

.cat-option.is-selected .cat-option-count {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.2);
}

.cat-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.cat-swatch[data-r="all"] { background: var(--primary); color: var(--primary); }
.cat-swatch[data-r="abyssal"] { background: #22d3ee; color: #22d3ee; }
.cat-swatch[data-r="holographique"] { background: #f8fafc; color: #f8fafc; }
.cat-swatch[data-r="ultime"] { background: #9ca3af; color: #9ca3af; }
.cat-swatch[data-r="supreme"] { background: #ef4444; color: #ef4444; }
.cat-swatch[data-r="legendaire"] { background: #facc15; color: #facc15; }
.cat-swatch[data-r="fabuleux"] { background: #ec4899; color: #ec4899; }
.cat-swatch[data-r="epique"] { background: #a855f7; color: #a855f7; }
.cat-swatch[data-r="rare"] { background: #fb923c; color: #fb923c; }
.cat-swatch[data-r="commune"] { background: #3b82f6; color: #3b82f6; }
.cat-swatch[data-r="team"] { background: #52525b; color: #71717a; }

.cards-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.55rem;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(16, 22, 31, 0.88) 65%);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 55px rgba(var(--primary-rgb), 0.14);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
  }
}

.carousel-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.nav-arrow {
  position: relative;
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(24, 32, 44, 0.92);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.nav-arrow:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  color: var(--primary);
  transform: scale(1.05);
}

.stage-track {
  position: relative;
  height: 380px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.side-card {
  position: absolute;
  width: 165px;
  height: 231px;
  border-radius: 13px;
  overflow: hidden;
  border: none;
  background: transparent;
  opacity: 0.62;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  pointer-events: none;
  display: none;
}

@media (min-width: 760px) {
  .side-card { display: flex; align-items: center; justify-content: center; }
}

.side-prev {
  transform: translateX(-115%) scale(0.86) rotateY(18deg);
}

.side-next {
  transform: translateX(115%) scale(0.86) rotateY(-18deg);
}

.side-card img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: 13px;
}

.viewer-card {
  position: relative;
  z-index: 2;
  width: 265px;
  height: 370px;
  margin: 0 auto;
  will-change: transform, opacity;
}

@media (max-width: 600px) {
  .cards-page .cards-section {
    padding-top: 2rem;
    padding-bottom: 5.5rem;
  }
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .cat-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
  }
  .select-wrap,
  .cat-trigger {
    width: 100%;
    min-width: 0;
  }
  .cards-controls {
    width: 100%;
    justify-content: space-between;
  }
  .carousel-stage {
    grid-template-columns: 1fr;
  }
  .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.3rem;
    height: 2.3rem;
  }
  #prev-card { left: 0.25rem; }
  #next-card { right: 0.25rem; }
  .stage-track {
    height: 310px;
  }
  .viewer-card {
    width: 215px;
    height: 300px;
  }
  .cmd-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .hero {
    padding-bottom: 5.5rem;
  }
}

.viewer-card.is-exit-left {
  animation: exitLeft 0.32s var(--ease) forwards;
}

.viewer-card.is-exit-right {
  animation: exitRight 0.32s var(--ease) forwards;
}

.viewer-card.is-enter-left {
  animation: enterLeft 0.42s var(--ease-out) forwards;
}

.viewer-card.is-enter-right {
  animation: enterRight 0.42s var(--ease-out) forwards;
}

@keyframes exitLeft {
  to { opacity: 0; transform: translateX(-42%) rotate(-5deg) scale(0.9); }
}

@keyframes exitRight {
  to { opacity: 0; transform: translateX(42%) rotate(5deg) scale(0.9); }
}

@keyframes enterLeft {
  from { opacity: 0; transform: translateX(-48%) rotate(-6deg) scale(0.88); }
  to { opacity: 1; transform: none; }
}

@keyframes enterRight {
  from { opacity: 0; transform: translateX(48%) rotate(6deg) scale(0.88); }
  to { opacity: 1; transform: none; }
}

.viewer-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 28px rgba(var(--primary-rgb), 0.45)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.7));
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease-out, filter 0.45s ease;
}

.viewer-frame img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: var(--card-radius);
}

.card-inspector {
  min-width: 0;
  border-top: 1px solid rgba(var(--primary-rgb), 0.22);
  padding-top: 1.25rem;
  transition: border-color 0.45s ease;
}

@media (min-width: 900px) {
  .card-inspector {
    border-top: 0;
    border-left: 1px solid rgba(var(--primary-rgb), 0.22);
    padding-top: 0;
    padding-left: 1.5rem;
  }
}

.inspector-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.22);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.inspector-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 10%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.inspector-specs {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.inspector-specs div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  column-gap: 1rem;
  row-gap: 0.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.18);
  font-size: 0.9rem;
  transition: border-color 0.35s ease;
}

.inspector-specs div[hidden] {
  display: none;
}

.inspector-specs dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.inspector-specs dd {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 0.35s ease;
}

.inspector-link {
  width: 100%;
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.18);
}

.viewer-empty {
  color: var(--text-muted);
  text-align: center;
  grid-column: 1 / -1;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1.5rem 1rem;
}

.viewer-empty[hidden] {
  display: none;
}

.viewer-empty-title {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.viewer-empty-sub {
  margin: 0;
  max-width: 46ch;
  font-size: 0.92rem;
  line-height: 1.5;
}

.viewer-empty.is-abyssal {
  color: #a5f3fc;
}

.viewer-empty.is-abyssal .viewer-empty-title {
  color: #67e8f9;
}

.carousel-stage[hidden] {
  display: none;
}

.thumb-rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.85rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(var(--primary-rgb), 0.55) transparent;
}

.thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 95px;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.5;
  transition: opacity 0.2s, filter 0.25s, transform 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  border-radius: 8px;
}

.thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumb.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.85));
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.lb-tabs {
  display: inline-flex;
  background: rgba(20, 27, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.lb-tab {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lb-tab:hover {
  color: var(--text-primary);
}

.lb-tab.is-active {
  color: #fff;
  background: rgba(var(--primary-rgb), 0.18);
  border-color: rgba(var(--primary-rgb), 0.45);
}

.lb-search {
  font-family: var(--font);
  font-size: 0.88rem;
  color: #fff;
  background: rgba(20, 27, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  min-width: 210px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lb-search:focus {
  border-color: rgba(var(--primary-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.lb-board {
  background: rgba(20, 27, 38, 0.84);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.lb-head,
.lb-row {
  display: grid;
  grid-template-columns: 70px 1fr 120px 150px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
}

.lb-head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.lb-list {
  display: flex;
  flex-direction: column;
}

.lb-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.lb-page-btn {
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.lb-page-btn:hover:not(:disabled) {
  background: rgba(var(--primary-rgb), 0.16);
  border-color: rgba(var(--primary-rgb), 0.45);
}

.lb-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lb-page-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.lb-pill {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}

.lb-pill:hover {
  color: #fff;
  border-color: rgba(var(--primary-rgb), 0.4);
}

.lb-pill.is-active {
  color: #fff;
  background: rgba(var(--primary-rgb), 0.22);
  border-color: rgba(var(--primary-rgb), 0.55);
}

.lb-page-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lb-row {
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  font-size: 0.92rem;
  transition: background 0.18s ease;
}

.lb-row:last-child {
  border-bottom: 0;
}

.lb-row:hover {
  background: rgba(var(--primary-rgb), 0.08);
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-row[data-rank="1"] .lb-rank {
  color: #facc15;
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
}

.lb-row[data-rank="2"] .lb-rank {
  color: #e2e8f0;
  background: rgba(226, 232, 240, 0.14);
  border-color: rgba(226, 232, 240, 0.45);
}

.lb-row[data-rank="3"] .lb-rank {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.15);
  border-color: rgba(251, 146, 60, 0.45);
}

.lb-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.lb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(var(--primary-rgb), 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.lb-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.lb-username-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.lb-username {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.lb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.08rem 0.36rem;
  border-radius: 5px;
  line-height: 1.1;
  flex-shrink: 0;
  white-space: nowrap;
}

.lb-badge-beta {
  color: #fde047;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(250, 204, 21, 0.42);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.12);
}

.lb-userid {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-cards {
  font-weight: 600;
  color: var(--text-secondary);
}

.lb-coins {
  font-weight: 800;
  color: var(--primary);
}

.lb-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .lb-head,
  .lb-row {
    grid-template-columns: 48px 1fr 78px 105px;
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
    gap: 0.4rem;
  }
  .lb-controls {
    width: 100%;
  }
  .lb-search {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.community-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: stretch;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 12, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.community-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(0.35rem, 1.5vw, 0.85rem) clamp(0.25rem, 1vw, 0.5rem);
  text-align: left;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.14);
  color: #c7cdff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.community-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
  max-width: 36ch;
}

.community-wh {
  margin-bottom: 1.15rem !important;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  background: rgba(var(--primary-rgb), 0.08);
  color: #d7eaf7 !important;
  font-size: 0.9rem !important;
  font-weight: 500;
}

.community-points {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.45rem;
  padding: 0;
}

.community-points li {
  position: relative;
  padding-left: 1.15rem;
  color: #d7dbe3;
  font-size: 0.92rem;
  font-weight: 500;
}

.community-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.7);
}

.community-join {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1.2rem;
}

.community-join svg {
  flex-shrink: 0;
}

.community-widget {
  position: relative;
  z-index: 1;
  justify-self: end;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(88, 101, 242, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(88, 101, 242, 0.18);
  background: #1e1f22;
  line-height: 0;
}

.community-widget iframe {
  display: block;
  width: 350px;
  max-width: 100%;
  height: 500px;
  border: 0;
}

@media (max-width: 860px) {
  .community-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .community-copy {
    align-items: center;
    text-align: center;
    padding: 0.25rem 0.35rem 0.5rem;
  }

  .community-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .community-points {
    justify-items: start;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .community-widget {
    justify-self: center;
    width: min(350px, 100%);
  }

  .community-widget iframe {
    width: 100%;
  }
}

.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
  margin-bottom: 0.45rem;
}

.cta-band p {
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.cta-band code {
  color: var(--secondary);
  font-weight: 700;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 3vw, 2rem) 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 34ch;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a,
.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.12);
  font-size: 0.84rem;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(9, 12, 16, 0.88);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.18);
  backdrop-filter: blur(12px);
}

.legal-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: flex-end;
}

.legal-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.legal-doc {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.legal-doc-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.85rem;
}

.legal-doc-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.legal-doc-lead code {
  color: var(--primary);
  font-size: 0.88em;
  word-break: break-all;
}

.legal-doc-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-doc-body section h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.legal-doc-body section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-doc-back {
  margin-top: 2.5rem;
}

.legal-doc-back a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-doc-back a:hover {
  text-decoration: underline;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 14, 0.78);
  backdrop-filter: blur(8px);
}

.legal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 24, 34, 0.96);
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 36px rgba(var(--primary-rgb), 0.2);
  overflow: hidden;
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.18);
}

.legal-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
}

.legal-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.legal-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal-body {
  padding: 1.35rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.legal-body h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.legal-actions {
  margin-top: 0.65rem;
}

.legal-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.reveal-section {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-child {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  will-change: opacity, transform;
}

.reveal-section.is-visible .reveal-child,
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
