/* ============================================================
   LAWCARDS — TCG COLLECTOR VAULT
   Minimalist, Brutalist, Tactile, Holographic & Optimized
   ============================================================ */

@font-face {
  font-family: 'Helv';
  src: url('../assets/fonts/Helvetica.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Helv';
  src: url('../assets/fonts/Helvetica-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VCR';
  src: url('../assets/fonts/VCR.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --card-bg: #111111;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.28);
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.65);
  --fg-faint: rgba(255, 255, 255, 0.35);

  --f: 'Helv', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-vcr: 'VCR', 'SF Mono', Monaco, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --holo-x: 50%;
  --holo-y: 50%;
  --holo-opacity: 0.55;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

/* CRT phosphor scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 9999;
}

/* ================= AMBIENT CANVAS & BACKGROUND DECOR ================= */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.bg-decor {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  mix-blend-mode: screen;
  opacity: 0.18;
  transition: transform 0.6s var(--ease), opacity 0.3s;
}

.bg-decor--star-a {
  top: 8%;
  left: 4%;
  width: clamp(60px, 8vw, 110px);
  animation: floatStar 14s ease-in-out infinite alternate;
}

.bg-decor--star-b {
  bottom: 12%;
  right: 5%;
  width: clamp(50px, 7vw, 95px);
  animation: floatStar 11s ease-in-out 2s infinite alternate;
}

.bg-decor--flower {
  top: 55%;
  left: 2%;
  width: clamp(70px, 9vw, 120px);
  animation: spinSlow 35s linear infinite;
}

.bg-decor--card1 {
  top: 25%;
  right: -3%;
  width: clamp(140px, 16vw, 220px);
  transform: rotate(18deg);
  opacity: 0.08;
}

.bg-decor--card2 {
  bottom: 20%;
  left: -2%;
  width: clamp(140px, 16vw, 220px);
  transform: rotate(-16deg);
  opacity: 0.08;
}

@keyframes floatStar {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
  100% { transform: translateY(8px) rotate(-6deg); }
}

/* ================= MAIN CONTAINER ================= */
.main-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= SITE HEADER ================= */
.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 0 1.25rem;
  margin-bottom: 2.5rem;
  font-family: var(--f-vcr);
  font-size: 0.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-dragon-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.header-brand__name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fg-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ================= HERO CONTENT (ABOVE THE CARD) ================= */
.hero-content {
  text-align: center;
  width: 100%;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--f);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ================= 3D HOLOGRAPHIC SLAB HERO (NO FLIP) ================= */
.slab-stage {
  perspective: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.75rem;
  padding: 0.5rem 0;
}

.slab-container {
  position: relative;
  width: min(320px, 86vw);
  height: clamp(430px, 58vh, 470px);
  transform-style: preserve-3d;
  user-select: none;
  cursor: default;
  will-change: transform;
}

.slab-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75),
    0 0 0 1px var(--border-strong),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  background: linear-gradient(
    155deg,
    rgba(22, 22, 22, 0.96) 0%,
    rgba(10, 10, 10, 0.98) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

/* Acrylic Bevel Rim */
.slab-face::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  pointer-events: none;
}

/* PRISMATIC HOLOGRAPHIC FOIL SHADER OVERLAY */
.slab-holo-foil {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 10;
  opacity: var(--holo-opacity);
  mix-blend-mode: color-dodge;
  background: radial-gradient(
    circle at var(--holo-x) var(--holo-y),
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 0, 128, 0.35) 20%,
    rgba(0, 240, 255, 0.45) 45%,
    rgba(255, 230, 0, 0.35) 65%,
    transparent 85%
  );
  transition: opacity 0.3s ease;
}

.slab-holo-foil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 0, 255, 0.2) 35%,
    rgba(0, 255, 255, 0.25) 50%,
    rgba(255, 255, 0, 0.2) 65%,
    transparent 80%
  );
  background-size: 200% 200%;
  background-position: var(--holo-x) var(--holo-y);
  mix-blend-mode: overlay;
}

/* Archival PSA-style Grade Header */
.slab-grade-label {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--f-vcr);
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.slab-grade-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slab-grade-tag {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.75;
}

.slab-grade-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.slab-grade-cert {
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.slab-grade-score {
  text-align: right;
  border-left: 1px solid currentColor;
  padding-left: 8px;
}

.slab-grade-num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.slab-grade-sub {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Center Artwork Window */
.slab-art-window {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #161616 0%, #060606 100%);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  z-index: 2;
}

.slab-orbital-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
  pointer-events: none;
}

.slab-orbital-ring--inner {
  width: 165px;
  height: 165px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: spinSlow 20s linear infinite reverse;
}

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

/* Dragon Emblem */
.slab-dragon-wrap {
  position: relative;
  width: 160px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  z-index: 3;
}

.slab-dragon-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
  animation: dragonPulse 4s ease-in-out infinite alternate;
}

@keyframes dragonPulse {
  0% { transform: scale(0.97) rotate(0deg); }
  50% { transform: scale(1.02) rotate(1.5deg); }
  100% { transform: scale(0.99) rotate(-1deg); }
}

/* Typography Wordmark (letras.svg) */
.slab-letras-wrap {
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.slab-letras-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Bottom Slab Footnote */
.slab-footer-info {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-vcr);
  font-size: 0.6rem;
  color: var(--fg-muted);
  position: relative;
  z-index: 4;
}

/* ================= DIRECT OFFICIAL LINKS ================= */
.links-section {
  width: 100%;
  max-width: 520px;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: 
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
  box-shadow: 2px 2px 0 var(--border);
  cursor: pointer;
  border-radius: 0;
}

.link-card:hover {
  border-color: var(--fg);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--fg);
  background: var(--surface);
}

.link-card:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--fg);
}

.link-card__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.link-card__icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.link-card:hover .link-card__icon {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.link-card__icon svg {
  width: 18px;
  height: 18px;
}

.link-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.link-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-card__handle {
  font-family: var(--f-vcr);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  font-weight: 400;
}

.link-card__desc {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.35;
}

.link-card__arrow {
  font-family: var(--f-vcr);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-muted);
  margin-left: 0.75rem;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.link-card:hover .link-card__arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

/* ================= FOOTER ================= */
.site-footer {
  width: 100%;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-family: var(--f-vcr);
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.footer-dragon-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-dragon-brand img {
  width: 22px;
  height: 22px;
}

.footer-copy {
  font-size: 0.65rem;
  opacity: 0.6;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .bg-decor--card1,
  .bg-decor--card2 {
    display: none;
  }

  .bg-decor--star-a,
  .bg-decor--star-b {
    opacity: 0.08;
  }

  .main-layout {
    padding: 1.25rem 1rem 3.5rem;
  }

  .site-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
  }

  .hero-content {
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .slab-stage {
    margin-bottom: 2rem;
  }

  .slab-container {
    width: min(300px, 88vw);
    height: 425px;
  }

  .slab-dragon-wrap {
    width: 135px;
    height: 120px;
  }

  .slab-letras-wrap {
    width: 175px;
  }

  .link-card {
    padding: 0.9rem 1rem;
  }

  .link-card__title {
    font-size: 0.9rem;
  }

  .link-card__desc {
    font-size: 0.72rem;
  }

  .site-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 360px) {
  .slab-container {
    width: 92vw;
    height: 395px;
  }

  .slab-dragon-wrap {
    width: 120px;
    height: 105px;
  }

  .slab-letras-wrap {
    width: 155px;
  }
}
