/* ==========================================================================
   TEAM 6919 — THE COMMODORES
   Design system: retro-computer (Commodore 64) identity
   ========================================================================== */

@font-face {
  font-family: 'Exo2Brand';
  src: url('../fonts/Exo2-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand colors, sampled directly from the team logo files ---- */
  --red:     #D12625;
  --orange:  #D5603F;
  --yellow:  #F1CB29;
  --green:   #4BB249;
  --blue:    #009EDA;

  /* ---- Case (chassis) neutrals — the "breadbox beige" of the badge lockup ---- */
  --case:       #5D594F;
  --case-2:     #4A4739;
  --case-light: #726D5E;

  /* ---- Screen (CRT) tones — classic Commodore 64 boot-screen blue ---- */
  --screen:       #33266E;
  --screen-2:     #291F59;
  --screen-light: #8176D6;
  --screen-text:  #C9C4FF;

  /* ---- Paper / surfaces ---- */
  --paper: #EAE3D0;
  --card:  #F8F5EC;
  --ink:   #211D18;
  --ink-soft: #514A3E;
  --white: #FFFFFF;

  /* ---- Type ---- */
  --font-brand: 'Exo2Brand', 'Exo 2', sans-serif;
  --font-head:  'Exo 2', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'Space Mono', monospace;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* ---------------------------------------------------------------------- */
/* Base                                                                    */
/* ---------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.container-narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5.5rem 0; }

@media (max-width: 767px) {
  section { padding: 3.25rem 0; }
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------- */
/* Rainbow rule — the recurring signature device, pulled straight from    */
/* the team's own logo bars. Used as a divider / accent, never as        */
/* wall-to-wall decoration.                                               */
/* ---------------------------------------------------------------------- */

.rainbow-rule {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 64px;
}
.rainbow-rule span {
  display: block;
  height: 6px;
  border-radius: 4px;
}
.rainbow-rule span:nth-child(1) { background: var(--red);    width: 100%; }
.rainbow-rule span:nth-child(2) { background: var(--orange); width: 84%; }
.rainbow-rule span:nth-child(3) { background: var(--yellow); width: 68%; }
.rainbow-rule span:nth-child(4) { background: var(--green);  width: 52%; }
.rainbow-rule span:nth-child(5) { background: var(--blue);   width: 36%; }

.rainbow-rule.center { align-items: center; }
.rainbow-rule.center span:nth-child(1) { width: 100%; }
.rainbow-rule.center span:nth-child(2) { width: 84%; }
.rainbow-rule.center span:nth-child(3) { width: 68%; }
.rainbow-rule.center span:nth-child(4) { width: 52%; }
.rainbow-rule.center span:nth-child(5) { width: 36%; }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

/* ---------------------------------------------------------------------- */
/* Navbar                                                                  */
/* ---------------------------------------------------------------------- */

.c-navbar {
  background: var(--case);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--screen);
}

.c-navbar .navbar-brand img { height: 42px; width: auto; }

.c-navbar .nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white) !important;
  padding: 0.6rem 1rem !important;
  position: relative;
}

.c-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.c-navbar .nav-link:hover::after,
.c-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.c-navbar .btn-nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.c-navbar .btn-nav-cta:hover { background: var(--white); }

.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-c:hover { transform: translateY(-2px); }

.btn-c-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-c-primary:hover { background: var(--white); color: var(--ink); }

.btn-c-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-c-outline:hover { background: var(--white); color: var(--screen); }

.btn-c-outline-dark {
  background: transparent;
  border-color: var(--case);
  color: var(--case);
}
.btn-c-outline-dark:hover { background: var(--case); color: var(--white); }

.btn-c-block { width: 100%; }

/* ---------------------------------------------------------------------- */
/* Screen / terminal panel — the primary signature element                */
/* ---------------------------------------------------------------------- */

.screen-panel {
  position: relative;
  background: radial-gradient(120% 160% at 20% 0%, var(--screen-2) 0%, var(--screen) 60%, var(--screen-2) 100%);
  color: var(--screen-text);
  border-radius: var(--radius-lg);
  border: 3px solid var(--screen-light);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(20, 14, 54, 0.55);
}

.screen-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.screen-panel .screen-inner {
  position: relative;
  z-index: 1;
}

.screen-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--screen-text);
  border: 1px solid var(--screen-light);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  opacity: 0.85;
}

.cursor-blink {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--white);
  margin-left: 0.15em;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-blink { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 3rem 0 4rem;
}

.hero .screen-panel {
  padding: clamp(2.25rem, 5vw, 4.5rem);
}

.hero-logo {
  max-width: 460px;
  width: 100%;
  margin: 1.5rem 0 1.75rem;
}

.hero-tagline {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--screen-text);
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------- */
/* Stat strip                                                              */
/* ---------------------------------------------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--screen-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2.5rem;
}
.stat-cell {
  background: var(--screen-2);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-cell .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--yellow);
  display: block;
}
.stat-cell .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--screen-text);
  opacity: 0.85;
}

@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */

.card-c {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 2px solid rgba(33, 29, 24, 0.08);
}

/* ---------------------------------------------------------------------- */
/* High-score board (achievements)                                        */
/* ---------------------------------------------------------------------- */

.score-board {
  background: var(--case);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: var(--white);
}

.score-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.15rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.score-row:last-child { border-bottom: none; }

.score-row .score-season {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.95rem;
  padding-top: 0.15rem;
}

.score-row .score-game {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.score-row .score-awards {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.score-row .score-awards .dot {
  color: var(--screen-light);
  margin: 0 0.15em;
}

.score-flag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: end;
}

@media (max-width: 620px) {
  .score-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .score-flag { justify-self: start; }
}

/* ---------------------------------------------------------------------- */
/* Social row                                                              */
/* ---------------------------------------------------------------------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.social-tile {
  background: var(--case);
  border-radius: var(--radius-md);
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--white);
  transition: transform 0.15s ease, background 0.15s ease;
  border-top: 5px solid var(--red);
}
.social-tile:nth-child(1) { border-top-color: var(--red); }
.social-tile:nth-child(2) { border-top-color: var(--orange); }
.social-tile:nth-child(3) { border-top-color: var(--yellow); }
.social-tile:nth-child(4) { border-top-color: var(--green); }

.social-tile:hover { transform: translateY(-4px); background: var(--case-2); }

.social-tile svg { width: 30px; height: 30px; margin-bottom: 0.65rem; }

.social-tile .handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

@media (max-width: 700px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------- */
/* Dues / CTA terminal block                                              */
/* ---------------------------------------------------------------------- */

.dues-panel .screen-inner { padding: clamp(2rem, 4vw, 3.25rem); }

.prompt-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--yellow);
  margin: 0.2rem 0;
}
.prompt-line .path { color: var(--screen-text); opacity: 0.7; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.c-footer {
  background: var(--case-2);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.c-footer a:hover { color: var(--yellow); }
.c-footer .footer-logo img { height: 40px; margin-bottom: 1rem; }
.c-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.c-footer .footer-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 2.5rem 0 1.5rem;
}
.c-footer .fine-print {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------- */
/* Page header (Store / Kickoff sub-pages)                                */
/* ---------------------------------------------------------------------- */

.page-header {
  background: var(--case);
  padding: 3.5rem 0 3rem;
  color: var(--white);
}
.page-header .eyebrow { color: var(--yellow); opacity: 1; }
.page-header h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-header p { color: rgba(255,255,255,0.78); max-width: 60ch; }

/* ---------------------------------------------------------------------- */
/* Store — cartridge cards                                                */
/* ---------------------------------------------------------------------- */

.cart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cart-grid { grid-template-columns: 1fr; }
}

.cartridge {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(33,29,24,0.1);
  display: flex;
  flex-direction: column;
}

.cartridge-label {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--white);
  position: relative;
}

.cartridge-label .cart-icon {
  font-family: var(--font-brand);
  font-size: 2.75rem;
  line-height: 1;
}

.cartridge-label .cart-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 0.75rem;
}

.cartridge-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.cartridge-body .price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.cartridge-body .desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}

.cart-1 { background: linear-gradient(160deg, var(--red), #9c1c1b); }
.cart-2 { background: linear-gradient(160deg, var(--blue), #00688f); }
.cart-3 { background: linear-gradient(160deg, var(--green), #2f7c2d); }
.cart-4 { background: linear-gradient(160deg, var(--orange), #a3421f); }
.cart-5 { background: linear-gradient(160deg, var(--yellow), #b98f0f); color: var(--ink); }
.cart-6 { background: linear-gradient(160deg, var(--screen-light), var(--screen)); }

.placeholder-note {
  border: 2px dashed rgba(33,29,24,0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------------- */
/* Kickoff — countdown                                                    */
/* ---------------------------------------------------------------------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.25rem 0 1rem;
}
.countdown-cell {
  background: var(--screen-2);
  border: 2px solid var(--screen-light);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 1.25rem 0.5rem;
}
.countdown-cell .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--yellow);
  display: block;
}
.countdown-cell .unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--screen-text);
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(33,29,24,0.1);
}
.info-list li:last-child { border-bottom: none; }
.info-list .k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.info-list .v { font-weight: 600; }

@media (max-width: 560px) {
  .info-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-marker .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.timeline-marker .line {
  width: 2px;
  flex: 1;
  background: rgba(33,29,24,0.15);
  margin: 0.35rem 0;
}
.timeline-item:last-child .line { display: none; }
.timeline-content { padding-bottom: 2rem; }
.timeline-content .t-title { font-weight: 700; margin-bottom: 0.25rem; }
.timeline-content .t-desc { color: var(--ink-soft); font-size: 0.95rem; }
