*, *::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)) drop-shadow(0 8px 12px rgba(0,0,0,0.4));
  margin-bottom: -1px;
}

.title {
  font-family: 'Press Start 2P', monospace;
  font-size: 3rem;
  color: #dde8ff;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 30px rgba(100,130,255,0.3);
}

.subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: #b5c1e5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 20px rgba(136,173,176,0.3);
  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, #9ab8cc, #8aafc4);
  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: #0f1e36;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 2px 8px rgba(15,30,60,0.25);
}

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

/* ── REACTIONS GRID ─────────────────────────────────────── */

.col-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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



/* ── COLUMN HEADERS ─────────────────────────────────────── */

.col-head {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(15, 30, 60, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.col-group[data-col="0"] .col-head { background: linear-gradient(135deg, #2e6a7a, #3a8a9e); }
.col-group[data-col="1"] .col-head { background: linear-gradient(135deg, #4a3f7a, #6a5fa0); }
.col-group[data-col="2"] .col-head { background: linear-gradient(135deg, #3a6b55, #4a8a6e); }
.col-group[data-col="3"] .col-head { background: linear-gradient(135deg, #7a5a3a, #9a7a55); }

/* ── VID CARDS ──────────────────────────────────────────── */

.vid-card {
  background: rgba(255, 255, 255, 0.55);
  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: #0f1e36;
  margin-bottom: 14px;
  line-height: 1.45;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 8px rgba(15, 30, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.vid-card:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 5px 14px rgba(15, 30, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ── REMIXES ────────────────────────────────────────────── */

.remix-row {
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 3px 8px rgba(15, 30, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.remix-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f1e36;
}

.remix-game {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e4a7a;
  margin-left: 12px;
  font-style: italic;
}

.remix-pct {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f1e36;
  white-space: nowrap;
  margin-left: 16px;
}

/* ── PROGRESS BARS ──────────────────────────────────────── */

.bar-track {
  height: 32px;
  border-style: solid;
  border-width: 0 15px;
  border-image: url('assets/Example_Bar_Empty.png') 0 15 fill stretch;
  position: relative;
  overflow: visible;
  filter: drop-shadow(0 3px 6px rgba(15, 30, 60, 0.4));
}

.bar-fill {
  height: 100%;
  background: url('assets/Progress_Bar_Fill.png') no-repeat center;
  background-size: 100% 100%;
  position: relative;
  z-index: 1;
  transition: width 1.2s ease;
}

.bar-fill::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: -10px;
  width: 12px;
  height: 100%;
  background-image: url('assets/Progress_Bar_Animated.gif');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 2;
}

.bar-fill.complete {
  filter: saturate(0.6);
}

.bar-fill.complete::after {
  display: none;
}

.bar-fill.complete::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/Progress_Bar_Completed.png') repeat-x center;
  background-size: auto 100%;
  z-index: 4;
  pointer-events: none;
}

/* ── FOOTER ─────────────────────────────────────────────── */

.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: #dde8ff;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

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

.social-link svg path { fill: #aabdee; transition: fill 0.15s; }
.social-link:hover { color: #ffffff; }
.social-link:hover svg path { fill: #ffffff; }

.credits {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #dde8ff;
  letter-spacing: 0.05em;
  line-height: 3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.credits a {
  color: #8aabee;
  text-decoration: none;
}

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

.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;
  }

  .two-col .panel:nth-child(1) { order: 2; }
  .two-col .panel:nth-child(2) { order: 1; }

  .col-row {
    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-row {
    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;
  }
}