/* PM-Game gaming aesthetic — typography & layout unchanged */

/* ── Canvas & shell ── */
.pg-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(135deg, #060E1A 0%, #0A1628 50%, #0D1F35 100%);
  filter: saturate(1.2) contrast(1.08) brightness(1.05);
}

.pg-gaming-shell {
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(58, 181, 181, 0.12), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(96, 165, 250, 0.14), transparent 30%),
    radial-gradient(circle at 72% 80%, rgba(255, 180, 0, 0.08), transparent 34%);
  opacity: 0.9;
}

body {
  background: #060E1A;
}

/* ── Transparent section backgrounds (particles show through) ── */
.pg-gaming-shell .lb-section,
.pg-gaming-shell .board-wrap,
.pg-gaming-shell .cm-section {
  background: transparent !important;
}

/* ── Hero container ── */
.pg-hero-section {
  position: relative;
  z-index: 2;
}

.pg-hero-plain {
  background: transparent !important;
}

.pg-hero-inner {
  box-shadow: none;
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.pg-hero-inner::before {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 181, 181, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 181, 181, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
}

.pg-hero-inner::after {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 10%, rgba(58, 181, 181, 0.07) 44%, transparent 62%);
  transform: translateX(-80%);
  animation: pg-hero-scan 8s linear infinite;
}

@keyframes pg-hero-scan {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(100%); }
}

.pg-hero-left,
.pg-hero-right {
  position: relative;
  z-index: 1;
}

.pg-hero-img {
  border: 1px solid rgba(58, 181, 181, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 46px rgba(0, 0, 0, 0.38);
}

/* ── Grid overlay (mission board only) ── */
.board-wrap {
  position: relative;
  overflow: hidden;
}

.board-wrap .grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.85;
  background-image:
    linear-gradient(rgba(58, 181, 181, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 181, 181, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  animation: pg-grid-drift 20s linear infinite;
}

.board-wrap .grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(58, 181, 181, 0.12), transparent 42%);
}

.board-wrap .grid-overlay::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(58, 181, 181, 0.08), transparent);
  filter: blur(1px);
  animation: pg-grid-scan 12s linear infinite;
}

@keyframes pg-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 34px 34px, 34px 34px; }
}

@keyframes pg-grid-scan {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

.board-wrap > *:not(.grid-overlay) {
  position: relative;
  z-index: 1;
}

/* ── Nav glow ── */
.pg-gaming-shell .site-nav {
  box-shadow: 0 1px 0 rgba(58, 181, 181, 0.12), 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ── Project Rockstars podium ── */
.lb-inner {
  position: relative;
  background: rgba(8, 15, 29, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(58, 181, 181, 0.12) !important;
  border-radius: 16px !important;
  padding: 28px 36px 32px !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 56px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.lb-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 181, 181, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 181, 181, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

.lb-inner::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  bottom: 12px;
  right: 12px;
  border: 1px solid rgba(58, 181, 181, 0.35);
  border-left: none;
  border-top: none;
  pointer-events: none;
}

.lb-title-row {
  position: relative;
  z-index: 1;
  margin-bottom: 28px !important;
}

.lb-title-icon {
  font-size: 16px;
  line-height: 1;
}

.lb-title {
  color: rgba(255, 255, 255, 0.55) !important;
}

.lb-podium {
  position: relative;
  z-index: 1;
}

/* 1st place — gold */
.lb-block--gold .lb-name {
  color: #FFB400;
  font-size: 14px;
  text-shadow: 0 0 24px rgba(255, 180, 0, 0.35);
}

.lb-block--gold .lb-xp {
  color: #FFB400;
}

.lb-medal-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #FFB400;
  background: radial-gradient(circle at 50% 40%, rgba(255, 180, 0, 0.25), rgba(255, 180, 0, 0.05));
  box-shadow: 0 0 24px rgba(255, 180, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 2px;
}

.lb-stand.p1 {
  height: 120px;
  border-top-color: #FFB400;
  background: linear-gradient(180deg, rgba(255, 180, 0, 0.14) 0%, rgba(20, 16, 8, 0.9) 35%, #0a0e14 100%);
  box-shadow:
    0 -16px 40px rgba(255, 180, 0, 0.22),
    inset 0 1px 0 rgba(255, 180, 0, 0.2);
  animation: pg-podium-glow-gold 2.5s ease-in-out infinite;
}

@keyframes pg-podium-glow-gold {
  0%, 100% { box-shadow: 0 -12px 32px rgba(255, 180, 0, 0.18), inset 0 1px 0 rgba(255, 180, 0, 0.2); }
  50% { box-shadow: 0 -20px 48px rgba(255, 180, 0, 0.38), inset 0 1px 0 rgba(255, 180, 0, 0.3); }
}

/* 2nd place — silver / teal */
.lb-block--silver .lb-name {
  color: rgba(255, 255, 255, 0.85);
}

.lb-block--silver .lb-xp {
  color: #3AB5B5;
}

.lb-stand.p2 {
  height: 88px;
  border-top-color: #3AB5B5;
  background: linear-gradient(180deg, rgba(58, 181, 181, 0.12) 0%, rgba(8, 18, 22, 0.9) 35%, #0a0e14 100%);
  box-shadow: 0 -12px 28px rgba(58, 181, 181, 0.18), inset 0 1px 0 rgba(58, 181, 181, 0.15);
}

/* 3rd place — bronze */
.lb-block--bronze .lb-name {
  color: rgba(255, 255, 255, 0.75);
}

.lb-block--bronze .lb-xp {
  color: #D97706;
}

.lb-stand.p3 {
  height: 72px;
  border-top-color: #D97706;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.12) 0%, rgba(22, 14, 6, 0.9) 35%, #0a0e14 100%);
  box-shadow: 0 -10px 24px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(251, 191, 36, 0.12);
}

.lb-stand-icon {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* ── Mission Control — solid panels for readability ── */
.mc {
  position: relative;
  background: #060E1A !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 0 1px rgba(58, 181, 181, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.mc::before,
.mc::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(58, 181, 181, 0.4);
  pointer-events: none;
  z-index: 2;
}

.mc::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.mc::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.mc-topbar,
.mc-hero,
.mc-footer {
  background: #080F1D !important;
}

.mc-card {
  background: #0A1628 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.mc-card:hover {
  background: #0C1A30 !important;
  transform: translateY(-2px);
}

.mc-card[style*='#FFB400']:hover {
  box-shadow: 0 8px 32px rgba(255, 180, 0, 0.12);
}

.mc-card[style*='#3AB5B5']:hover {
  box-shadow: 0 8px 32px rgba(58, 181, 181, 0.12);
}

.mc-card[style*='#FBBF24']:hover {
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.12);
}

.mc-card[style*='#60A5FA']:hover {
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.12);
}

.mc-bar-fill,
.mc-metric-fill {
  background-size: 200% 100% !important;
  animation: pg-bar-shimmer 2.5s ease-in-out infinite;
}

@keyframes pg-bar-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.mc-pulse {
  box-shadow: 0 0 8px rgba(58, 181, 181, 0.6);
}

.mc-avail {
  background: #0D1929 !important;
}

.mc-slot {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* ── Completed missions ── */
.cm-card {
  background: #080F1D !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-card:hover {
  border-color: rgba(58, 181, 181, 0.2) !important;
  box-shadow: 0 8px 32px rgba(58, 181, 181, 0.08);
}

.cm-status-badge {
  animation: pg-victory-pulse 3s ease-in-out infinite;
}

@keyframes pg-victory-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 0 12px rgba(52, 211, 153, 0.25); }
}

.cm-feedback-inner {
  background: #060E1A !important;
}

/* ── Protected sections ── */
.lb-full-section {
  position: relative;
  z-index: 2;
  background: #FAF8F7 !important;
}

.waitlist-section {
  position: relative;
  z-index: 2;
}

/* Footer must sit above fixed #pg-bg-canvas */
#site-footer-placeholder {
  position: relative;
  z-index: 3;
}

#site-footer-placeholder .new-footer,
footer.new-footer {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .pg-hero-inner::after {
    animation-duration: 10s;
  }

  .lb-stand.p1 { height: 100px; }
  .lb-stand.p2 { height: 76px; }
  .lb-stand.p3 { height: 64px; }
  .lb-medal-ring { width: 44px; height: 44px; font-size: 18px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .pg-bg-canvas {
    display: none;
  }

  .lb-stand.p1,
  .cm-status-badge,
  .mc-bar-fill,
  .mc-metric-fill,
  .board-wrap .grid-overlay,
  .board-wrap .grid-overlay::after,
  .pg-hero-inner::after {
    animation: none !important;
  }

  .mc-card:hover {
    transform: none;
  }
}
