/* ==================== COLLECTIBLE CARDS v4 ==================== */
/* Art is the card. 8-bit is the seasoning. Rarity is atmosphere. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ==================== SKELETON LOADING ==================== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 20px;
}
.skeleton-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.skeleton-art {
  aspect-ratio: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-text {
  height: 12px;
  margin: 12px 10px 0;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  width: 70%;
}
.skeleton-text.short { width: 40%; margin-bottom: 12px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

:root {
  --card-radius: 6px;
  --card-bg: #111118;
  --card-text: #ccc;
  --card-text-dim: #555;
  --card-text-bright: #f0f0f0;
  
  /* Cosmic cursor — same as LAB */
  --cursor-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='cosmic' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%239400d3'/%3E%3Cstop offset='50%25' stop-color='%234b0082'/%3E%3Cstop offset='100%25' stop-color='%2300d4ff'/%3E%3C/linearGradient%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='0.5' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow)'%3E%3Cpath d='M4,2 L4,24 L9,19 L14,28 L18,26 L13,17 L20,17 Z' fill='url(%23cosmic)' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='22' cy='5' r='1.5' fill='%23ffffff' opacity='0.9'/%3E%3Ccircle cx='26' cy='9' r='1' fill='%2300d4ff' opacity='0.8'/%3E%3Ccircle cx='24' cy='14' r='0.8' fill='%23ffffff' opacity='0.7'/%3E%3Ccircle cx='28' cy='4' r='0.6' fill='%23ffd700' opacity='0.9'/%3E%3Ccircle cx='19' cy='8' r='0.7' fill='%2300d4ff' opacity='0.6'/%3E%3Cpath d='M25,7 L25.5,5.5 L27,6 L25.5,6.5 L26,8 L25.5,6.5 L24,7 L25.5,6.5 Z' fill='%23ffffff' opacity='0.9'/%3E%3C/g%3E%3C/svg%3E");
}

/* Cosmic cursor — everything */
body, body * {
  cursor: var(--cursor-svg) 4 2, auto !important;
}

body a, body button, body [role="button"], body select,
body .ygo-card, body .nav-item, body [onclick] {
  cursor: var(--cursor-svg) 4 2, pointer !important;
}

body input, body textarea {
  cursor: var(--cursor-svg) 4 2, text !important;
}

/* ==================== BASE CARD ==================== */
.ygo-card {
  position: relative;
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.35s ease;
  overflow: hidden;
  background: var(--card-bg);
}

.ygo-card:hover {
  transform: translateY(-3px);
}

/* ==================== PIXEL GRID TEXTURE ==================== */
/* The screen you're looking at is a retro display. You feel it. */
.ygo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  mix-blend-mode: overlay;
}

.ygo-card:hover::before {
  opacity: 1;
}

/* ==================== CARD INNER ==================== */
.ygo-card-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ==================== ARTWORK — the card IS the art ==================== */
.ygo-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0a0a0f;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.ygo-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.ygo-card:hover .ygo-card-art img {
  transform: scale(1.05);
}

/* Gradient fade into info area */
.ygo-card-art::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, var(--card-bg));
  pointer-events: none;
}

/* ==================== PLAY OVERLAY ==================== */
.ygo-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 3;
}

.ygo-card:hover .ygo-card-play {
  opacity: 1;
}

/* Pixel play button — an SVG pixel triangle */
.ygo-card-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  padding-left: 3px; /* optical centering for play triangle */
}

.ygo-card-play-btn:hover {
  transform: scale(1.06);
  background: rgba(0,0,0,0.6);
}

/* Pixel play icon — crisp right-pointing triangle */
.ygo-card-play-btn svg {
  width: 14px;
  height: 16px;
  fill: #fff;
  /* Keep it pixel-crisp */
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}

/* ==================== SAVE BUTTON ==================== */
.ygo-card-save {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
  padding: 0;
}

.ygo-card:hover .ygo-card-save {
  opacity: 1;
}

.ygo-card-save:hover {
  color: rgba(0, 212, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
}

.ygo-card-save.is-saved {
  opacity: 1;
  color: rgba(0, 212, 255, 0.8);
}

.ygo-card-save.is-saved:hover {
  color: rgba(0, 212, 255, 1);
}

/* ==================== VAULT CARD ACTIONS ==================== */
.ygo-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 4;
}

.ygo-card:hover .ygo-card-actions {
  opacity: 1;
}

.ygo-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ygo-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.ygo-action-danger:hover {
  background: rgba(255, 60, 60, 0.2);
  color: rgba(255, 120, 120, 0.9);
}

/* ==================== REPORT BUTTON ==================== */
/* Share button */
.ygo-card-share {
  position: absolute;
  bottom: 8px;
  right: 36px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0;
  cursor: pointer;
}

.ygo-card:hover .ygo-card-share {
  opacity: 1;
}

.ygo-card-share:hover {
  color: var(--accent, #00d2ff);
  background: rgba(0, 0, 0, 0.5);
}

/* Report button */
.ygo-card-report {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 0;
}

.ygo-card:hover .ygo-card-report {
  opacity: 1;
}

.ygo-card-report:hover {
  color: rgba(255, 100, 100, 0.7);
  background: rgba(0, 0, 0, 0.5);
}

/* ==================== INFO — visible at rest ==================== */
.ygo-card-nameplate {
  padding: 10px 12px 0;
  position: relative;
  z-index: 2;
  margin-top: -24px;
}

.ygo-card-title {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--card-text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ygo-card-artist {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  color: var(--card-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-weight: 400;
}

.ygo-card-artist--link {
  transition: color 0.15s ease;
}

.ygo-card-artist--link:hover {
  color: rgba(0, 212, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================== METADATA — game HUD stats ==================== */
/* Pixel font here. This is the card's stat readout. */
.ygo-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.ygo-card:hover .ygo-card-stats {
  height: 26px;
  opacity: 1;
  padding: 8px 12px 0;
}

.ygo-stat {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}

.ygo-stat-label { display: none; }

.ygo-stat-value {
  color: rgba(255,255,255,0.28);
}

.ygo-stat-divider {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  /* Pixel-perfect square */
  border-radius: 0;
}

/* Bottom padding */
.ygo-card-inner::after {
  content: '';
  display: block;
  height: 12px;
  transition: height 0.25s ease;
}

.ygo-card:hover .ygo-card-inner::after {
  height: 6px;
}

/* ==================== BADGES ==================== */
.ygo-card-type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ygo-card:hover .ygo-card-type {
  opacity: 1;
}

.ygo-card-item-type {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--accent, #00d4ff);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 5;
  opacity: 0.7;
}

.ygo-card-price {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  font-weight: 400;
  z-index: 5;
}

.ygo-card-price.free {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent, #00d2ff);
  cursor: pointer;
  transition: all 0.2s;
}

.ygo-card-price.free:hover {
  background: rgba(0, 210, 255, 0.3);
  transform: scale(1.05);
}

.ygo-card-price.paid {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.ygo-card-price.paid:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--accent, #00d2ff);
  color: #fff;
  transform: scale(1.05);
}

/* Vault cards: price is not clickable */
.vault-card .ygo-card-price { pointer-events: none; cursor: default; }
.vault-card .ygo-card-price:hover { transform: none; }

/* ===== Purchase Confirm Overlay ===== */
.ygo-purchase-confirm {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: inherit;
  animation: ygo-confirm-in 0.2s ease;
}

@keyframes ygo-confirm-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ygo-purchase-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.ygo-purchase-actions {
  display: flex;
  gap: 8px;
}

.ygo-purchase-yes {
  padding: 8px 20px;
  background: var(--accent, #00d2ff);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.ygo-purchase-yes:hover { background: #33dcff; transform: translateY(-1px); }

.ygo-purchase-no {
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: none;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.ygo-purchase-no:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ==================== RARITY — hide the label ==================== */
.ygo-card-rarity { display: none; }

/* ==================== RARITY AS ATMOSPHERE ==================== */
.ygo-card[data-rarity="common"] {
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ygo-card[data-rarity="common"]:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.ygo-card[data-rarity="rare"] {
  box-shadow: 0 1px 6px rgba(0,0,0,0.3), 0 0 0 1px rgba(59,130,246,0.06);
}
.ygo-card[data-rarity="rare"]:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 4px 24px rgba(59,130,246,0.07);
}

.ygo-card[data-rarity="epic"] {
  box-shadow: 0 1px 8px rgba(0,0,0,0.3), 0 0 0 1px rgba(168,85,247,0.06);
}
.ygo-card[data-rarity="epic"]:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 4px 28px rgba(168,85,247,0.08);
}

.ygo-card[data-rarity="legendary"] {
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 20px rgba(245,158,11,0.04);
}
.ygo-card[data-rarity="legendary"]:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 4px 32px rgba(245,158,11,0.08), 0 0 48px rgba(245,158,11,0.03);
}

.ygo-card[data-rarity="mythic"] {
  box-shadow: 0 2px 16px rgba(0,0,0,0.3), 0 0 24px rgba(255,255,255,0.03);
}
.ygo-card[data-rarity="mythic"]:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 4px 36px rgba(255,200,150,0.06), 0 0 56px rgba(255,255,255,0.03);
}

/* ==================== HERO CARD ==================== */
.ygo-card.card-hero {
  grid-column: span 2;
}

.ygo-card.card-hero .ygo-card-art {
  aspect-ratio: 16 / 9;
}

.ygo-card.card-hero .ygo-card-nameplate {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 0 20px;
  margin-top: 0;
  z-index: 4;
}

.ygo-card.card-hero .ygo-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.ygo-card.card-hero .ygo-card-artist {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.ygo-card.card-hero .ygo-card-stats { display: none; }
.ygo-card.card-hero .ygo-card-inner::after { display: none; }

.ygo-card.card-hero .ygo-card-art::after {
  height: 60%;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
}

.ygo-card.card-hero .ygo-card-play-btn {
  width: 60px;
  height: 60px;
}

.ygo-card.card-hero .ygo-card-play-btn svg {
  width: 18px;
  height: 20px;
}

/* ==================== PLAYING STATE ==================== */
.ygo-card.is-playing .ygo-card-play {
  opacity: 1;
}

.ygo-card.is-playing .ygo-card-play-btn {
  background: rgba(0,0,0,0.5);
}

/* ==================== PROGRESS BAR ==================== */
.ygo-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 15;
}

.ygo-card-progress-fill {
  height: 100%;
  background: #fff;
  opacity: 0.7;
  transition: width 0.1s linear;
  width: 0%;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.featured-header {
  margin-bottom: 12px;
}

.featured-title {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ==================== GRID LAYOUT ==================== */
.ygo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 20px 140px;
  align-items: start;
}

/* Sparse grid: center cards when few items — make them feel curated, not lonely */
.ygo-card-grid.sparse-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 48px;
  align-content: start;
}

@media (min-width: 1100px) {
  .ygo-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }
  .ygo-card-grid.sparse-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  }
}

/* Sparse Underground message — inspiring, prominent */
.sparse-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px 20px;
  animation: sparse-fade-in 0.8s ease 0.3s backwards;
}

.sparse-msg-icon {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.sparse-msg-title {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.sparse-msg-sub {
  font-family: -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

@keyframes sparse-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vault-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding: 16px 0 120px;
}

/* ==================== CARD APPEAR ==================== */
.ygo-card.card-reveal {
  animation: cardAppear 0.3s ease forwards;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ygo-card-grid .ygo-card:nth-child(1)  { animation-delay: 0ms; }
.ygo-card-grid .ygo-card:nth-child(2)  { animation-delay: 30ms; }
.ygo-card-grid .ygo-card:nth-child(3)  { animation-delay: 60ms; }
.ygo-card-grid .ygo-card:nth-child(4)  { animation-delay: 90ms; }
.ygo-card-grid .ygo-card:nth-child(5)  { animation-delay: 120ms; }
.ygo-card-grid .ygo-card:nth-child(6)  { animation-delay: 150ms; }
.ygo-card-grid .ygo-card:nth-child(7)  { animation-delay: 180ms; }
.ygo-card-grid .ygo-card:nth-child(8)  { animation-delay: 210ms; }
.ygo-card-grid .ygo-card:nth-child(9)  { animation-delay: 240ms; }
.ygo-card-grid .ygo-card:nth-child(10) { animation-delay: 270ms; }
.ygo-card-grid .ygo-card:nth-child(11) { animation-delay: 300ms; }
.ygo-card-grid .ygo-card:nth-child(12) { animation-delay: 330ms; }

/* ==================== EMPTY STATE ==================== */
.ygo-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.ygo-empty-state .pixel-icon {
  image-rendering: pixelated;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  opacity: 0.25;
}

.ygo-empty-state p {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* ==================== CARD REVEAL OVERLAY ==================== */
.card-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.card-reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card-reveal-stage {
  transform: scale(1.2);
}

.card-reveal-stage .ygo-card {
  width: 260px;
  pointer-events: none;
}

.card-reveal-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 3px;
  opacity: 0;
  animation: revealLabel 0.3s ease 0.5s forwards;
}

@keyframes revealLabel {
  to { opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .ygo-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 12px 140px;
  }
  .ygo-card.card-hero {
    grid-column: span 2;
  }
  .ygo-card.card-hero .ygo-card-title { font-size: 16px; }
}

/* Report Picker (replaces prompt()) */
.ygo-report-picker {
  position: absolute;
  bottom: 36px;
  right: 8px;
  z-index: 100;
  background: rgba(15, 18, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.15s ease-out;
}
.ygo-report-option {
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ygo-report-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Playlist Picker (vault card dropdown) */
.vault-playlist-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 18, 25, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.15s ease-out;
}
.vault-playlist-picker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.vault-playlist-picker-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}
.vault-playlist-picker-new {
  color: var(--accent, #4ecdc4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2px;
  padding-top: 8px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
