﻿@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}



#introOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(120px);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  animation: introOverlaySettle 15s ease-in-out forwards;
}

#introOverlay.introLeaving {
  animation: none;
  opacity: 0;
  backdrop-filter: blur(0);
  transition: opacity 0.6s ease, backdrop-filter 0.6s ease;
}

#introText,
.introStage {
  color: rgb(167, 187, 255);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  position: absolute;
  transform: scale(0.92);
  width: min(96vw, 1500px);
  white-space: nowrap;
  animation: introStageFade 1.75s ease-in-out forwards;
}

.introWelcome {
  animation-delay: 0.3s;
}

.introImages {
  animation-delay: 2.2s;
}

.introHeader {
  animation-delay: 4.1s;
}

.introFooter {
  animation-delay: 6s;
}

.introVideos {
  animation-delay: 7.9s;
}

.introAssets {
  animation-delay: 9.3s;
}

.introAlmost {
  animation: introDoneHold 17s ease-in-out forwards;
}

.introEnterPrompt {
  color: white;
  font-size: clamp(1rem, 1.8vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  top: calc(50% + 5.5rem);
  animation: introEnterPrompt 15s ease-in-out forwards;
}

.introEnterPrompt span {
  animation: letterBounce 0.9s ease-in-out infinite;
  display: inline-block;
}

.introEnterPrompt span:nth-child(2) { animation-delay: 0.05s; }
.introEnterPrompt span:nth-child(3) { animation-delay: 0.1s; }
.introEnterPrompt span:nth-child(4) { animation-delay: 0.15s; }
.introEnterPrompt span:nth-child(5) { animation-delay: 0.2s; }
.introEnterPrompt span:nth-child(6) { animation-delay: 0.25s; }
.introEnterPrompt span:nth-child(7) { animation-delay: 0.3s; }
.introEnterPrompt span:nth-child(8) { animation-delay: 0.35s; }
.introEnterPrompt span:nth-child(9) { animation-delay: 0.4s; }
.introEnterPrompt span:nth-child(10) { animation-delay: 0.45s; }
.introEnterPrompt span:nth-child(11) { animation-delay: 0.5s; }
.introEnterPrompt span:nth-child(12) { animation-delay: 0.55s; }
.introEnterPrompt span:nth-child(13) { animation-delay: 0.6s; }
.introEnterPrompt span:nth-child(14) { animation-delay: 0.65s; }

.introSkipHint {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: introHintFade 15s ease-in-out forwards;
}

.loadingDots span {
  animation: loadingDot 0.75s ease-in-out infinite;
  display: inline-block;
  margin-left: 0.12em;
  opacity: 0.2;
}

.loadingDots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loadingDots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes introStageFade {
  0% { opacity: 0; transform: scale(0.94); }
  22%, 72% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.03); }
}

@keyframes loadingDot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-0.12em); }
}

@keyframes introDoneHold {
  0%, 79% { opacity: 0; transform: scale(0.94); }
  86%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes introEnterPrompt {
  0%, 88% { opacity: 0; transform: translateY(12px); }
  94%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes letterBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.18em); }
}

@keyframes introHintFade {
  0%, 16% { opacity: 0; }
  24%, 100% { opacity: 1; }
}

@keyframes introOverlaySettle {
  0%, 86% {
    backdrop-filter: blur(120px);
    background: rgba(0,0,0,0.6);
  }
  100% {
    backdrop-filter: blur(18px);
    background: rgba(0,0,0,0.35);
  }
}

:root {
      --bg1:#00b3ff46;
      --bg2:#00a3235b;
      --bg3:#a771ff65;
      --neon1:#2a8dff;
      --neon2:#0567e8;
      --gold:#b9b600;
      --glass: rgba(255,255,255,0.08);
    }

    * { box-sizing:border-box; }

    body {
      margin:0;
      font-family: 'Segoe UI', sans-serif;
      color:white;
      background: linear-gradient(270deg, var(--bg1), var(--bg2), var(--bg3));
      background-size: 600% 600%;
      animation: gradientMove 12s ease infinite;
    }

    @keyframes gradientMove {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

/* Header and main navigation */


    header {
      display:flex;
      justify-content:space-between;
      align-items:center;
      padding:15px 30px;
      background:rgba(0,0,0,0.4);
      backdrop-filter: blur(10px);
      position:sticky;
      top:0;
      z-index:100;
    }

    .logo {
      font-size:1.5rem;
      font-weight:bold;
      background: linear-gradient(90deg, var(--neon1), var(--neon2));
      -webkit-background-clip:text;
      background-clip:text;
      -webkit-text-fill-color:transparent;
    }

    nav a {
      color:white;
      text-decoration:none;
      margin-left:20px;
      font-size:0.95rem;
      position:relative;
    }

    nav a::after {
      content:"";
      position:absolute;
      width:0;
      height:2px;
      left:0;
      bottom:-4px;
      background: linear-gradient(90deg, var(--neon1), var(--neon2));
      transition:0.3s;
    }

    nav a:hover::after { width:100%; }

    .settingsButton {
      color: white;
      background: transparent;
      border: 0;
      cursor: pointer;
      font: inherit;
      margin-left: 20px;
      padding: 0;
      position: relative;
    }

    .settingsButton::after {
      content:"";
      position:absolute;
      width:0;
      height:2px;
      left:0;
      bottom:-4px;
      background: linear-gradient(90deg, var(--neon1), var(--neon2));
      transition:0.3s;
    }

    .settingsButton:hover::after { width:100%; }

    h1 {
      text-align:center;
      margin:30px 0 10px;
      font-size:2.5rem;
    }

main {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
}

.aboutSection,
.directorySection {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 20px 0;
}

.aboutInner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.sectionEyebrow {
    margin: 0 0 8px;
    color: rgb(195, 212, 255);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aboutInner h1 {
    margin: 0 0 14px;
    line-height: 1.05;
}

.aboutInner p:not(.sectionEyebrow) {
    margin: 0 auto;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.7;
}

.submitCta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 11px 22px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--neon1), var(--neon2));
    box-shadow: 0 16px 32px rgba(42, 141, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submitCta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(42, 141, 255, 0.34);
}

.directorySection {
    padding-top: 48px;
}

.directoryHeader {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.directoryHeader h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.directoryTools {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.searchField {
    display: grid;
    gap: 7px;
    min-width: min(320px, 88vw);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.searchField input {
    width: 100%;
    padding: 12px 14px;
    color: white;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.searchField input:focus {
    border-color: var(--neon1);
    box-shadow: 0 0 0 3px rgba(42, 141, 255, 0.22);
}

.filterGroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filterButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filterButton:hover,
.filterButton.active {
    background: rgba(42, 141, 255, 0.36);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.emptyState {
    display: none;
    margin: 30px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.emptyState.show {
    display: block;
}

.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    }

/* Hall of Fame card layout and hover video states */

    .card {
      width:220px;
      min-height:360px;
      height: 440px;
      border-radius:20px;
      background: var(--glass);
      backdrop-filter: blur(50px);
      display:flex;
      flex-direction:column;
      gap:8px;
      padding:15px;
      justify-content:flex-start;
      transition:0.3s;
      position:relative;
      overflow:hidden;
    }

    .card-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 15px;
      object-fit: cover;
      object-position: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .card:hover .card-video {
      opacity: 1;
    }

    .card.has-video:hover .avatar {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card.has-video:hover .name {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card.has-video:hover .score {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card.has-video:hover .categoryBadge {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card.has-video:hover .link {
      opacity: 0.7;
      transition: opacity 0.8s ease;
    }

    .card:has(.card-video):hover .avatar {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card:has(.card-video):hover .name {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card:has(.card-video):hover .score {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card:has(.card-video):hover .categoryBadge {
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .card:has(.card-video):hover .link {
      opacity: 0.7;
      transition: opacity 0.8s ease;
    }

    body.profile-videos-off .card:hover .card-video {
      opacity: 0;
    }

    body.profile-videos-off .card.has-video:hover .avatar,
    body.profile-videos-off .card.has-video:hover .name,
    body.profile-videos-off .card.has-video:hover .categoryBadge,
    body.profile-videos-off .card:has(.card-video):hover .avatar,
    body.profile-videos-off .card:has(.card-video):hover .name,
    body.profile-videos-off .card:has(.card-video):hover .categoryBadge {
      opacity: 1;
    }

    body.profile-videos-off .card.has-video:hover .score,
    body.profile-videos-off .card.has-video:hover .link,
    body.profile-videos-off .card:has(.card-video):hover .score,
    body.profile-videos-off .card:has(.card-video):hover .link {
      opacity: 0.8;
    }
    .card::before {
      content:"";
      position:absolute;
      inset:0;
      border-radius:20px;
      padding:2px;
      background: linear-gradient(45deg, var(--neon1), var(--neon2));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    .card:hover {
      transform: translateY(-10px) scale(1.05);
      box-shadow:0 30px 60px rgba(0, 17, 255, 0.7);
    }

    .avatar {
      width:100%;
      height:170px;
      border-radius:15px;
      background-size:cover;
      background-position:center;
    }

    .name {
      font-weight:bold;
      font-size:1.1rem;
      margin-top:8px;
    }

    .score {
      font-size:0.85rem;
      opacity:0.8;
    }

    .link {
      font-size:0.85rem;
      opacity:0.8;
    }

    .categoryBadge {
      display: inline-flex;
      align-self: flex-start;
      padding: 4px 8px;
      color: white;
      background: rgba(42, 141, 255, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 800;
    }


    footer {
      margin-top:40px;
      padding:20px;
      text-align:center;
      background:rgba(0,0,0,0.4);
      backdrop-filter: blur(10px);
      font-size:0.85rem;
      opacity:0.8;
    }

    footer a {
      color: var(--neon2);
      text-decoration:none;
    }

    /* Credits modal */
    #creditsModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 10000;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.6s ease;
    }

    #creditsModal.show {
      display: flex;
    }

    #settingsModal,
    #cookiePreferenceModal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.72);
      z-index: 11500;
      align-items: center;
      justify-content: center;
      padding: 20px;
      animation: fadeIn 0.4s ease;
    }

    #settingsModal.show,
    #cookiePreferenceModal.show {
      display: flex;
    }

    .settingsContent,
    .cookiePreferenceContent {
      width: min(92vw, 520px);
      padding: 30px;
      background: linear-gradient(135deg, rgba(30, 135, 255, 0.35), rgba(5, 103, 232, 0.18));
      backdrop-filter: blur(40px);
      border: 2px solid var(--neon1);
      border-radius: 18px;
      box-shadow: 0 30px 70px rgba(42, 141, 255, 0.35);
    }

    .settingsHeader {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 24px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .settingsHeader h2,
    .cookiePreferenceContent h2 {
      margin: 0;
      color: var(--neon1);
      font-size: 1.8rem;
    }

    .settingRow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 16px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .settingRow:last-child {
      border-bottom: 0;
    }

    .settingLabel {
      font-weight: 700;
      color: white;
    }

    .settingDescription,
    .cookiePreferenceContent p {
      margin: 6px 0 0;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    .toggleSwitch {
      position: relative;
      display: inline-flex;
      width: 62px;
      height: 34px;
      flex: 0 0 auto;
    }

    .toggleSwitch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggleSlider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 999px;
      transition: 0.25s ease;
    }

    .toggleSlider::before {
      content: "";
      position: absolute;
      width: 24px;
      height: 24px;
      left: 4px;
      top: 4px;
      border-radius: 50%;
      background: white;
      transition: 0.25s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .toggleSwitch input:checked + .toggleSlider {
      background: linear-gradient(135deg, var(--neon1), var(--neon2));
    }

    .toggleSwitch input:checked + .toggleSlider::before {
      transform: translateX(28px);
    }

    .cookiePreferenceActions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 24px;
    }

    .settingsActionBtn {
      padding: 10px 22px;
      border: 0;
      border-radius: 999px;
      color: white;
      font-weight: 700;
      cursor: pointer;
      background: rgba(255, 255, 255, 0.16);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .settingsActionBtn.primary {
      background: linear-gradient(135deg, var(--neon1), var(--neon2));
    }

    .settingsActionBtn:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(42, 141, 255, 0.25);
    }

    .creditsContent {
      background: linear-gradient(135deg, rgba(30, 135, 255, 0.356), rgba(5, 103, 232, 0.2));
      backdrop-filter: blur(120px);
      border: 2px solid var(--neon1);
      border-radius: 20px;
      padding: 40px;
      width: 90%;
      max-width: 600px;
      max-height: 70vh;
      overflow-y: auto;
      box-shadow: 0 40px 80px rgba(42, 141, 255, 0.3);
      animation: slideUp 1s ease;
    }

    .creditsHeader {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      border-bottom: 2px solid var(--neon1);
      padding-bottom: 15px;
    }

    .creditsHeader h2 {
      margin: 0;
      font-size: 2rem;
      color: var(--neon1);
    }

    .closeBtn {
      background: none;
      border: none;
      color: var(--neon1);
      font-size: 2rem;
      cursor: pointer;
      transition: 0.6s;
    }

    .closeBtn:hover {
      transform: rotate(360deg);
      color: var(--neon2);
    }

    .creditItem {
      margin-bottom: 20px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.05);
      border-left: 3px solid var(--neon2);
      border-radius: 8px;
      transition: 0.3s;
    }

    .creditItem:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateX(5px);
    }

    .creditName {
      font-weight: bold;
      color: var(--neon1);
      font-size: 1.1rem;
    }

    .creditRole {
      color: rgb(200, 200, 200);
      font-size: 0.9rem;
      margin-top: 5px;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    /* Video activation prompt shown before profile videos are unlocked */
    .video-activation-popup {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(42, 141, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 15px;
      padding: 20px;
      text-align: center;
      z-index: 1000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
      box-shadow: 0 15px 40px rgba(42, 141, 255, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1);
      animation: popupPulse 3s ease-in-out infinite;
    }

    .video-activation-popup.active {
      opacity: 1;
      pointer-events: auto;
    }

    .popup-text {
      font-size: 0.9rem;
      font-weight: 600;
      color: white;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.5px;
    }

    .popup-icon {
      font-size: 1.8rem;
      margin-bottom: 8px;
      display: block;
    }

    @keyframes popupPulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); }
      50% { transform: translate(-50%, -50%) scale(1.05); }
    }

    /* Reusable information popup for About links */
    #customPopupOverlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      z-index: 11000;
      align-items: center;
      justify-content: center;
      animation: overlayFadeIn 0.4s ease;
    }

    #customPopupOverlay.show {
      display: flex;
    }

    .customPopupContent {
      background: linear-gradient(135deg, rgba(100, 200, 255, 0.2), rgba(255, 100, 200, 0.2), rgba(255, 255, 255, 0.1));
      backdrop-filter: blur(30px);
      border: 2px solid;
      border-image: linear-gradient(135deg, #64C8FF, #FF64C8, #FFFFFF) 1;
      border-radius: 30px;
      padding: 60px 50px;
      width: 90%;
      max-width: 600px;
      max-height: 70vh;
      overflow-y: auto;
      box-shadow: 0 0 60px rgba(100, 200, 255, 0.4), 0 0 100px rgba(255, 100, 200, 0.3), inset 0 0 60px rgba(255, 255, 255, 0.15);
      animation: popupSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      text-align: center;
    }

    .customPopupContent h2 {
      margin: 0 0 20px 0;
      font-size: 2.5rem;
      background: linear-gradient(135deg, #64C8FF, #FF64C8, #FFFFFF);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: bold;
      animation: titleGlow 2s ease-in-out infinite;
    }

    .customPopupContent p {
      margin: 15px 0;
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.8;
      animation: bodyFadeIn 0.8s ease 0.2s backwards;
    }

    .closeCustomBtn {
      margin-top: 30px;
      padding: 12px 40px;
      background: linear-gradient(135deg, #64C8FF, #FF64C8);
      border: 2px solid rgba(255, 255, 255, 0.5);
      border-radius: 50px;
      color: white;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.4s ease;
      box-shadow: 0 0 20px rgba(100, 200, 255, 0.6), 0 0 30px rgba(255, 100, 200, 0.4);
      animation: buttonPop 0.8s ease 0.4s backwards;
    }

    .closeCustomBtn:hover {
      transform: scale(1.1);
      box-shadow: 0 0 40px rgba(100, 200, 255, 0.8), 0 0 60px rgba(255, 100, 200, 0.6);
      background: linear-gradient(135deg, #FF64C8, #64C8FF);
    }

    .closeCustomBtn:active {
      transform: scale(0.95);
    }

    @keyframes overlayFadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes popupSlideIn {
      from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes titleGlow {
      0%, 100% {
        text-shadow: 0 0 20px rgba(100, 200, 255, 0.5), 0 0 40px rgba(255, 100, 200, 0.3);
      }
      50% {
        text-shadow: 0 0 30px rgba(100, 200, 255, 0.8), 0 0 60px rgba(255, 100, 200, 0.6);
      }
    }

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

    @keyframes buttonPop {
      from {
        opacity: 0;
        transform: scale(0.5);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Mobile feature notice */
    #mobileNoticeOverlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 12000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    #mobileNoticeOverlay.show {
      display: flex;
    }

    .mobileNoticeContent {
      width: 90%;
      max-width: 520px;
      padding: 30px;
      background: linear-gradient(135deg, rgba(30, 135, 255, 0.35), rgba(5, 103, 232, 0.2));
      border: 2px solid var(--neon1);
      border-radius: 20px;
      box-shadow: 0 30px 70px rgba(42, 141, 255, 0.35);
      text-align: center;
    }

    .mobileNoticeContent p {
      margin: 0;
      color: white;
      font-size: 1rem;
      line-height: 1.6;
    }

    .mobileNoticeCloseBtn {
      margin-top: 25px;
      padding: 10px 28px;
      background: linear-gradient(135deg, var(--neon1), var(--neon2));
      border: 0;
      border-radius: 50px;
      color: white;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobileNoticeCloseBtn:hover {
      transform: scale(1.05);
      box-shadow: 0 0 24px rgba(42, 141, 255, 0.6);
    }

    /* Tablet and phone layout overrides */
    @media (max-width: 900px) {
      body {
        overflow-x: hidden;
      }

      #introOverlay {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
      }

      #introText,
      .introStage {
        font-size: clamp(1.6rem, 7vw, 3.5rem);
        line-height: 1.15;
        white-space: normal;
      }

      .introEnterPrompt {
        font-size: clamp(0.8rem, 3.4vw, 1.25rem);
        top: calc(50% + 4rem);
        white-space: nowrap;
      }

      header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
      }

      .logo {
        font-size: 1.35rem;
        text-align: center;
        line-height: 1.2;
      }

      nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
      }

      nav a {
        margin-left: 0;
        font-size: 0.9rem;
        line-height: 1.3;
        text-align: center;
      }

      .settingsButton {
        margin-left: 0;
        font-size: 0.9rem;
        line-height: 1.3;
      }

      h1 {
        margin: 24px 12px 16px;
        font-size: 2rem;
        line-height: 1.15;
      }

      .aboutSection,
      .directorySection {
        padding-left: 16px;
        padding-right: 16px;
      }

      .aboutInner p:not(.sectionEyebrow) {
        font-size: 0.98rem;
      }

      .directoryHeader {
        align-items: stretch;
        flex-direction: column;
      }

      .directoryTools {
        justify-content: flex-start;
      }

      .container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 720px;
        padding: 0 16px;
      }

      .container ~ br {
        display: none;
      }

      .card {
        width: 100%;
        height: auto;
        min-height: 330px;
        border-radius: 16px;
      }

      .card:hover {
        width: 100%;
        height: auto;
      }

      .avatar {
        height: 180px;
      }

      .creditsContent,
      .customPopupContent,
      .mobileNoticeContent {
        width: min(92vw, 560px);
        max-height: 82vh;
        padding: 28px 22px;
      }

      .customPopupContent h2 {
        font-size: 2rem;
        line-height: 1.15;
      }

      footer {
        margin-top: 28px;
        padding: 18px 14px;
        line-height: 1.5;
      }
    }

    @media (max-width: 520px) {
      header {
        position: relative;
      }

      .logo {
        font-size: 1.2rem;
      }

      nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
      }

      nav a {
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      .settingsButton {
        max-width: 100%;
        overflow-wrap: anywhere;
      }

      h1 {
        font-size: 1.75rem;
      }

      .directoryHeader h2 {
        font-size: 1.55rem;
      }

      .filterGroup,
      .filterButton,
      .searchField {
        width: 100%;
      }

      .filterButton {
        justify-content: center;
      }

      .container {
        grid-template-columns: 1fr;
        max-width: 360px;
        padding: 0 14px;
      }

      .card {
        min-height: 0;
        padding: 14px;
      }

      .avatar {
        height: 190px;
      }

      .name {
        font-size: 1.05rem;
      }

      .score,
      .link,
      .link a {
        font-size: 0.82rem !important;
        line-height: 1.35;
      }

      .creditsHeader {
        gap: 12px;
      }

      .creditsHeader h2,
      .customPopupContent h2 {
        font-size: 1.6rem;
      }

      .customPopupContent p,
      .mobileNoticeContent p {
        font-size: 0.95rem;
      }
    }

    @media (hover: none), (pointer: coarse) {
      .card-video {
        display: none;
      }

      .card.has-video:hover .avatar,
      .card.has-video:hover .name,
      .card.has-video:hover .score,
      .card:has(.card-video):hover .avatar,
      .card:has(.card-video):hover .name,
      .card:has(.card-video):hover .score {
        opacity: 1;
      }

      .card:hover {
        transform: none;
        box-shadow: none;
      }
    }
