@font-face {
  font-family: "Jersey";
  src: url("play/assets/Jersey25-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   Variables
========================= */

:root {
  --acid: #e9ff48;
  --deep: #5a5766;
  --teal: #5d576b;
  --orange: rgba(255, 89, 100, 1);
  --soft: rgba(53, 167, 255, 1);

  --bg: #000000;
  --panel: rgba(0, 38, 38, 0.78);
  --panel-light: rgba(227, 216, 241, 0.08);
  --border-acid: rgba(233, 255, 72, 0.16);
  --text: #f7f2ff;
  --text-muted: rgba(247, 242, 255, 0.72);

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;

  --topbar-height: 48px;
}

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;

  color: var(--text);
  font-family: "Jersey", Arial, sans-serif;

  background:
    radial-gradient(circle at 20% 0%, rgba(233, 255, 72, 0.12), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(196, 25, 36, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg));
}

body.game-page {
  height: 100%;
  overflow: hidden;
}

/* =========================
   Loading
========================= */

#p5_loading {
  position: fixed;
  inset: 0;
  z-index: -1;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--acid);
  font-size: 48px;
  text-align: center;
}

/* =========================
   Topbar
========================= */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  height: var(--topbar-height);
  backdrop-filter: blur(14px);
}

.menu {
  width: min(1400px, calc(100% - 24px));
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu a img {
  height: 20px;
  align-items: center;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar a {
  position: relative;

  display: inline-block;
  margin: 0;

  color: var(--acid);
  font-size: 30px;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.topbar nav a {
  color: var(--acid);
  font-size: 20px;
  text-decoration: none;
  opacity: 0.9;

  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.topbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0%;
  height: 3px;

  background: var(--acid);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--acid);

  transition: width 0.3s ease;
}

.topbar a:hover {
  opacity: 1;
}

.topbar a:hover::after {
  width: 100%;
}

/* =========================
   Game Area
========================= */

#game-area {
  position: fixed;
  inset: var(--topbar-height) 20px 48px 20px;

  width: min(69%, calc(100% - 40px));
  height: calc(100% - 96px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-acid);
  background: rgba(0, 0, 0, 0.45);
}

#game-container {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  color: #777;
}

#game-container canvas {
  display: block;
  width: 100%;
  height: 100%;

  filter:
    contrast(1.15)
    saturate(1.2)
    blur(0.1px);
}

#game-container::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 11;

  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.vhs-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;

  opacity: 0.2;
  mix-blend-mode: overlay;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px
    );
}

.grain-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 9;

  opacity: 0.1;
  mix-blend-mode: soft-light;

  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* =========================
   Bottom Bar
========================= */

.bottombar {
  position: fixed;
  inset: auto 0 0 0;

  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.bottombar-content {
  width: min(1400px, calc(100% - 32px));

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--soft);
}

.bottombar-content img {
  height: 30px;
}

/* =========================
   Generic Info Section
========================= */

.info-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 32px;
}

.info-section h2 {
  color: var(--acid);
  font-size: 2rem;
}

/* =========================
   Landing
========================= */

.trippy-landing {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

/* =========================
   Hero
========================= */

.trippy-hero {
  position: relative;

  min-height: 620px;
  overflow: hidden;

  border-radius: var(--radius-lg);


  background:
    linear-gradient(
      90deg,
      rgba(5, 17, 26, 0.96) 0%,
      rgba(5, 17, 26, 0.78) 38%,
      rgba(53, 167, 255, 0.25) 72%,
      rgba(255, 89, 100, 0.18) 100%
    ),
    url("TrippyRoadMixTapeArtWork2.webp");

  background-size: cover;
  background-position: center;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(233, 255, 72, 0.08);
}

.trippy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;


  background:
    radial-gradient(circle at 20% 20%, rgba(233, 255, 72, 0.18), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(229, 88, 18, 0.2), transparent 30%);
}



.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.trippy-hero-content {
  position: relative;
  z-index: 2;

  max-width: 660px;
  padding: 72px;
}

.trippy-kicker {
  margin: 0 0 16px;

  color: var(--soft);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trippy-hero h1 {
  margin: 0;

  color: var(--acid);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;

  text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
}

.trippy-text {
  max-width: 460px;
  margin: 28px 0 36px;

  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.trippy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trippy-btn {
  min-width: 140px;
  padding: 15px 24px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.trippy-btn:hover {
  transform: translateY(-2px);
}

.trippy-btn.primary {
  color: var(--deep);
  background: var(--acid);
  box-shadow: 0 0 28px rgba(233, 255, 72, 0.22);
}

.trippy-btn.secondary {
  color: var(--soft);
  border: 1px solid rgba(227, 216, 241, 0.28);
  background: rgba(227, 216, 241, 0.08);
  backdrop-filter: blur(14px);
}

.trippy-btn.secondary:hover {
  background: rgba(227, 216, 241, 0.14);
}


.trippy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-top: 22px;
}

.trippy-card {
  padding: 24px;
  border-radius: var(--radius-md);

  color: var(--text);
  text-decoration: none;

  background: var(--panel-light);
  border: 1px solid rgba(227, 216, 241, 0.12);
  backdrop-filter: blur(16px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.trippy-card:hover {
  transform: translateY(-4px);
  background: rgba(233, 255, 72, 0.08);
  border-color: var(--border-acid);
}

.trippy-card span {
  display: block;
  margin-bottom: 8px;

  color: var(--acid);
  font-size: 1.15rem;
  font-weight: 800;
}

.trippy-card small {
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================
   Leaderboard
========================= */

.leaderboard-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px 32px;
}

.leaderboard-header h2 {
  margin: 0;

  color: var(--acid);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--orange);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leaderboard-text {
  max-width: 520px;

  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin: 32px 0 20px;
}

.leaderboard-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-acid);

  color: var(--acid);
  background: rgba(0, 38, 38, 0.8);

  font-family: inherit;
  font-size: 1rem;

  cursor: pointer;
}

.leaderboard-tab.active,
.leaderboard-tab:hover {
  color: var(--deep);
  background: var(--acid);
}

.leaderboard-card {
  overflow: hidden;

  border-radius: var(--radius-md);
  border: 1px solid var(--border-acid);

  background: var(--panel);
  backdrop-filter: blur(16px);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 130px 130px 130px;
  gap: 16px;

  padding: 16px 20px;
  border-bottom: 1px solid rgba(233, 255, 72, 0.08);
}

.leaderboard-row-head {
  color: var(--acid);
  background: rgba(233, 255, 72, 0.06);
}

.leaderboard-loading {
  padding: 24px 20px;
  color: var(--text-muted);
}

/* =========================
   About / Game Info
========================= */

.game-info {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;

  color: #e3d8f1;
}

.game-info__hero {
  max-width: 760px;
  margin-bottom: 48px;
}

.game-info h1 {
  margin: 0.2em 0;

  color: #e9ff48;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
}

.pitch {
  color: #e3d8f1;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.5;
}

.game-info__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.info-card {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(233, 255, 72, 0.25);

  background: rgba(0, 38, 38, 0.78);
  backdrop-filter: blur(12px);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.info-card h2 {
  margin-top: 0;

  color: #e9ff48;
  font-size: 2rem;
}

.info-card h3 {
  margin-bottom: 0.35rem;
  color: #e55812;
}

.info-card p,
.info-card li {
  line-height: 1.6;
}

.info-card ul {
  padding-left: 1.2rem;
}

/* =========================
   Listen Page
========================= */

.listen-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px 24px;

  color: #e3d8f1;
}

.listen-header {
  margin-bottom: 48px;
}

.listen-header h1 {
  margin: 0.2em 0;

  color: #e9ff48;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.music-links {
  display: grid;
  gap: 18px;
}

.music-card {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 22px 28px;
  border-radius: 20px;
  border: 1px solid rgba(233, 255, 72, 0.2);

  color: #e3d8f1;
  text-decoration: none;

  background: rgba(0, 38, 38, 0.78);
  backdrop-filter: blur(12px);

  transition: 0.25s ease;
}

.music-card:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 255, 72, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.music-card span {
  font-size: 1.2rem;
  font-weight: 500;
}

.music-icon {
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
}

.music-icon svg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
}

.music-icon img {
  height: 48px;
  border-radius: 14px;
}

/* =========================
   News / Updates
========================= */

.trippy-news {
  position: relative;

  margin-top: 22px;
  padding: 26px;

  overflow: hidden;
  border-radius: var(--radius-md);

  background: var(--panel-light);
  border: 1px solid rgba(227, 216, 241, 0.12);
  backdrop-filter: blur(16px);

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 40px rgba(233, 255, 72, 0.04);
}

.trippy-news::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at top right,
      rgba(233, 255, 72, 0.08),
      transparent 30%);
}

.news-header {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 18px;
}

.news-header span {
  color: var(--acid);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-header small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-list {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 12px;
}

.news-item {
  padding: 16px 18px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 255, 72, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}



.news-item time {
  display: inline-block;

  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;

  color: var(--deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: var(--acid);
  box-shadow: 0 0 14px rgba(233, 255, 72, 0.2);
}

.news-item p {
  margin: 0;

  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.news-item strong {
  color: var(--text);
}



/* =========================
   Mobile Warning
========================= */

#mobile-warning {
  display: none;
}



/* =========================
   Responsive
========================= */

@media (max-width: 800px) {
  .game-info__grid {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    gap: 14px;
  }

  .topbar a {
    font-size: 17px;
  }

  .logo,
  .topbar p {
    font-size: 25px;
  }

  #game-area {
    display: none;
  }

  .trippy-landing {
    width: min(100% - 24px, 1200px);
    padding: 72px 0;
  }

  .trippy-hero {
    min-height: 560px;
    background-position: center;
  }

  .trippy-hero-content {
    padding: 42px 28px;
  }

  .trippy-cards {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 44px 1fr 90px;
  }

  .leaderboard-row span:nth-child(4),
  .leaderboard-row span:nth-child(5) {
    display: none;
  }

  #mobile-warning {
    display: flex !important;
    position: fixed;
    inset: 0;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    padding: 2rem;
    box-sizing: border-box;

    color: #e9ff48;
    font-family: "Jersey", sans-serif;
    text-align: center;
  }

  #game-container,
  canvas {
    display: none !important;
  }
}