/* ============================================
   GAMING DOJO VINTAGE PARCHMENT OVERLAY (SEC 06)
   Japanese Vintage Aesthetic · Sumi-e Elements
   ============================================ */

.parchment-gaming-overlay {
  background: #f5f0e6 !important;
  background-image: radial-gradient(ellipse at center, #fcf9f2 0%, #ebe3d2 100%) !important;
  color: #1c1a17 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  box-shadow: -15px 0 50px rgba(35, 30, 24, 0.25);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease, visibility 0.55s ease !important;
}

.parchment-gaming-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.05s ease, visibility 0s !important;
}

.paper-gaming-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5.5rem 2rem 6rem 2rem;
  position: relative;
}

/* Header & Decorative Calligraphy */
.gaming-header-decorations {
  position: relative;
  width: 100%;
}

.gaming-controller-illustration {
  position: absolute;
  top: -1.5rem;
  left: -2.5rem;
  width: 90px;
  height: 110px;
  pointer-events: none;
  opacity: 0.85;
}

.gaming-top-script-note {
  position: absolute;
  top: -1rem;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gaming-title-block {
  text-align: center;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.gaming-main-heading {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 3rem;
  font-weight: 500;
  color: #1c1a17;
  letter-spacing: -0.01em;
  margin: 0.2rem 0;
}

.gaming-subtitle-script {
  font-family: var(--font-handwriting, "Caveat", cursive);
  font-size: 1.6rem;
  color: #5c5448;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.2rem;
}

/* Gaming Stats Ribbon */
.gaming-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.8rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(60, 50, 40, 0.22);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(35, 28, 20, 0.03);
}

.gaming-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.4rem 0.6rem;
  border-right: 1px solid rgba(60, 50, 40, 0.12);
}

.gaming-stat-card:last-child {
  border-right: none;
}

.gaming-stat-value {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #8c2a22;
  letter-spacing: -0.02em;
}

.gaming-stat-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  color: #5a5246;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* Games Grid */
.gaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.game-parchment-card {
  background: #fbf9f5;
  border: 1px solid rgba(60, 50, 40, 0.18);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(35, 28, 20, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-parchment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(35, 28, 20, 0.12);
  border-color: rgba(140, 42, 34, 0.35);
}

.game-card-media {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #231c14;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: contrast(1.05) saturate(1.1);
}

.game-parchment-card:hover .game-card-media img {
  transform: scale(1.06);
}

.game-platform-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(28, 26, 23, 0.88);
  backdrop-filter: blur(6px);
  color: #f7f5f0;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-status-stamp {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(247, 245, 240, 0.94);
  border: 1px solid rgba(140, 42, 34, 0.4);
  border-radius: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: #8c2a22;
}

.game-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c2a22;
  box-shadow: 0 0 6px rgba(140, 42, 34, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

.game-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.game-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #1c1a17;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.game-playtime {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: #5c5448;
  white-space: nowrap;
  background: rgba(60, 50, 40, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.game-genre-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: #8c7f70;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.game-synopsis {
  font-family: var(--font-body, "Newsreader", Georgia, serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a433a;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(60, 50, 40, 0.15);
  padding-top: 0.85rem;
  margin-top: auto;
}

.game-rating-seal {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #8c2a22;
}

.game-critic-note {
  font-family: var(--font-handwriting, "Caveat", cursive);
  font-size: 1.15rem;
  color: #6a6052;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .gaming-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .gaming-stat-card:nth-child(2) {
    border-right: none;
  }
  .gaming-stat-card:nth-child(3) {
    border-right: 1px solid rgba(60, 50, 40, 0.12);
    border-top: 1px dashed rgba(60, 50, 40, 0.15);
    padding-top: 0.8rem;
  }
  .gaming-stat-card:nth-child(4) {
    border-top: 1px dashed rgba(60, 50, 40, 0.15);
    padding-top: 0.8rem;
  }
  .gaming-grid {
    grid-template-columns: 1fr;
  }
  .gaming-main-heading {
    font-size: 2.3rem;
  }
}
