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

@font-face {
  font-family: 'Humaroid';
  src: url('assets/Humaroid.otf') format('opentype');
}



body {
  background: #0d0d1a;
  margin: 0;
  padding: 0;
}

.pg {
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(to bottom,#00094c, #36588f );
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  padding: 48px 64px 36px;
}

canvas#stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  margin-bottom: 70px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-text {
  text-align: center;
  padding-bottom: 20px;
}

.avatar {
  width: 140px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(160,180,255,0.25));
  margin-bottom: -1px;
}

.title {
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  color: #dde8ff;
  line-height: 1.5;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.768));
}

.subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: #b5c1e5;
  filter: drop-shadow(0 0 18px rgba(136, 173, 176, 0.452));
  letter-spacing: 0.04em;
}

.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 55px;
}

.panel {
  border-image: url('assets/Card_Asset_Frame.png') 80 stretch;
  border-image-width: 20px;
  border-style: solid;
  border-radius: 0;
  background: linear-gradient(to bottom, #bbd0df, #b0c9db);
  padding: 32px 36px 30px;
  filter: drop-shadow(0 0 12px rgba(23, 38, 62, 0.784));
  position: relative;
}

.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section-title {
  font-family: 'Humaroid', monospace;
  font-size: 4rem;
  color: #1a2a3a;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
}

.section-title::before {
  content: '▶';
  color: #1a2a3a;
  font-size: 0.6rem;
}

.col-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.col-head {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2a3a;
  text-align: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 4px solid #5785b0;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vid-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1a2a3a;
  margin-bottom: 14px;
  line-height: 1.45;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  position: relative;
  overflow: hidden; /* optional but recommended */
}



.vid-card:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(30, 60, 120, 0.18);
}

.remix-row { margin-bottom: 38px; }

.remix-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.remix-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #1a2a3a;
}

.remix-game {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #2a3d5a;
  margin-left: 40px;
  font-style: italic;
}

.remix-pct {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #1a2a3a;
  white-space: nowrap;
  margin-left: 16px;
}
.bar-track {
  height: 32px;
  border-style: solid;
  border-width: 0 15px; /* The "Frame" */
  border-image: url('assets/Example_Bar_Empty.png') 0 15 fill stretch;
  position: relative;
  overflow: hidden; /* Clips the fill so it stays inside the caps */
}

.bar-fill {
  height: 100%;
  background: url('assets/Example_Bar_Fill.png') repeat-x; /* Just the color/texture */
  transition: width 1.2s ease;
}
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 32px 0 24px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.socials-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #afb7d1;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.6;
}

.social-link svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.social-link svg path { fill: #8899cc; transition: fill 0.15s; }
.social-link:hover { color: #dde8ff; }
.social-link:hover svg path { fill: #dde8ff; }

.credits {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #d1d2d6;
  letter-spacing: 0.05em;
  line-height: 3;
}

.credits a {
  color: #5a6a98;
  text-decoration: none;
}

.credits a:hover { color: #aabbee; }

.loading-msg {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: #e9e9e9;
  letter-spacing: 0.1em;
  margin-bottom: 50px;
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.15; }
}


/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Small laptops */
@media (max-width: 1200px) {
  .pg {
    padding: 36px 40px 28px;
  }

  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .col-head {
    font-size: 1.1rem;
  }

  .vid-card {
    font-size: 1.2rem;
  }

  .remix-name {
    font-size: 1.5rem;
  }

  .remix-game {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .pg {
    padding: 28px 24px 24px;
  }

  .title {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .avatar {
    width: 100px;
  }

  .two-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* Remixes panel first, Reactions second */
  .two-col .panel:nth-child(1) { order: 2; }
  .two-col .panel:nth-child(2) { order: 1; }

  .col-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.5rem;
  }

  .col-head {
    font-size: 1rem;
  }

  .vid-card {
    font-size: 1.1rem;
  }

  .remix-name {
    font-size: 1.4rem;
  }

  .remix-game {
    font-size: 1.1rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .socials-row {
    gap: 20px;
  }

  .social-link {
    font-size: 0.75rem;
  }

  .social-link svg {
    width: 26px;
    height: 26px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .pg {
    padding: 20px 16px 20px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
  }

  .title {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 0.75rem;
  }

  .avatar {
    width: 80px;
  }

  .two-col {
    gap: 24px;
  }

  .col-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .col-head {
    font-size: 0.95rem;
  }

  .vid-card {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .remix-name {
    font-size: 1.2rem;
  }

  .remix-game {
    font-size: 1rem;
  }

  .remix-pct {
    font-size: 0.75rem;
  }

  .bar-track {
    height: 22px;
  }

  .socials-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .social-link {
    font-size: 0.65rem;
  }

  .social-link svg {
    width: 22px;
    height: 22px;
  }
}