/* ==========================================================================
   M Club Cards design system (mclubcards.com)

   One stylesheet, one vocabulary. Everything on the site is built from the
   tokens in section 1; nothing uses a hand-picked pixel or hex value inline.
   Sections:
     1. Tokens
     2. Reset and base
     3. Layout primitives
     4. Buttons
     5. Badges and tags
     6. Forms
     7. Ticker
     8. Header and navigation
     9. Hero
    10. Story
    11. Cards (one surface, three variants)
    12. Modals
    13. Footer
    14. Floating action button
    15. Links page
    16. Responsive
    17. Reduced motion
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Palette sampled from the logo: a navy and crimson crest with brass trim.
     Primary is the red of the wordmark, secondary the navy of the ring, and
     gold stays a minor "rare card" accent, matching how little of it appears
     on the mark itself. */
  --primary: #c73332;
  --primary-light: #e05655;
  --primary-dark: #8c1d1c;
  --primary-gradient: linear-gradient(135deg, #e05655 0%, #c73332 50%, #8c1d1c 100%);

  --secondary: #154b8c;
  --secondary-light: #5f93cf;
  --secondary-dark: #00316e;
  --secondary-gradient: linear-gradient(135deg, #5f93cf 0%, #154b8c 50%, #00316e 100%);

  --gold: #c9a85b;
  --gold-light: #e0c587;

  --brand-youtube: #ff0033;

  /* Surfaces, darkest to lightest. Every panel on the site picks one. */
  --surface-0: #070d13;
  --surface-1: #0e1722;
  --surface-2: #162332;
  --surface-3: #212f41;
  --surface-sunken: #05070d;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(199, 51, 50, 0.45);

  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;

  /* Type. Two families only: Outfit sets every heading, numeral and label,
     Inter sets every run of prose. */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semi: 600;
  --weight-bold: 700;
  --weight-black: 800;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  --tracking-wide: 0.08em;

  /* Space. Six steps, used for every gap, pad and margin on the site. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 55px -18px rgba(0, 0, 0, 0.85);
  --shadow-primary: 0 10px 28px -10px rgba(199, 51, 50, 0.5);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 0.25s;

  --header-height: 5rem;
}

/* 2. Reset and base ======================================================== */

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

html {
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  background-color: var(--surface-0);
  color: var(--text-1);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 12%, rgba(199, 51, 50, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 55%, rgba(21, 75, 140, 0.07) 0%, transparent 45%);
  background-attachment: fixed;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* One focus treatment for every interactive element on the site. */
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Layout primitives ===================================================== */

.container {
  width: min(100% - var(--space-6), 1200px);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

/* Alternating bands. Two variants only, so the page reads as a rhythm rather
   than a stack of unrelated blocks. */
.section--banded {
  background: rgba(14, 23, 34, 0.55);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 42rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--secondary-light);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.section-desc {
  color: var(--text-2);
  font-size: var(--text-md);
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.grid--tight {
  gap: var(--space-4);
}

.grid-empty {
  grid-column: 1 / -1;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-3);
}

.grid-empty strong {
  display: block;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.center {
  text-align: center;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* 4. Buttons =============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease);
}

.btn--primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(199, 51, 50, 0.6);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-1);
}

.btn--ghost:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(199, 51, 50, 0.08);
}

.btn--youtube {
  background: var(--brand-youtube);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(255, 0, 51, 0.5);
}

.btn--youtube:hover {
  transform: translateY(-2px);
  background: #d40029;
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: var(--text-md);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: var(--text-xs);
}

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

/* 5. Badges and tags ======================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.badge--plain {
  padding-inline: 0;
  color: var(--secondary-light);
}

.badge--navy {
  background: rgba(21, 75, 140, 0.18);
  border-color: rgba(95, 147, 207, 0.28);
  color: var(--secondary-light);
}

.badge--red {
  background: var(--primary-gradient);
  color: #fff;
}

/* The one place gold appears: a numbered card, echoing the logo's brass trim. */
.badge--gold {
  background: rgba(201, 168, 91, 0.14);
  border-color: rgba(201, 168, 91, 0.55);
  color: var(--gold-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(199, 51, 50, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(199, 51, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(199, 51, 50, 0); }
}

/* 6. Forms ================================================================= */

.field {
  position: relative;
  max-width: 40rem;
  margin: 0 auto var(--space-4);
}

.field .icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--text-3);
  pointer-events: none;
}

.input,
.textarea {
  width: 100%;
  font: inherit;
  color: var(--text-1);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.85rem var(--space-5) 0.85rem 2.9rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.input::placeholder {
  color: var(--text-3);
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(199, 51, 50, 0.18);
}

.textarea {
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  resize: none;
}

.label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-3);
  margin-bottom: var(--space-2);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.filter {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color var(--speed) var(--ease),
              background var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.filter:hover {
  color: var(--text-1);
  border-color: var(--border-strong);
}

.filter[aria-pressed="true"] {
  color: #fff;
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.result-count {
  text-align: center;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-3);
}

/* 7. Ticker ================================================================ */

.ticker {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-2);
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-block: var(--space-2);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-inner::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.ticker a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 8. Header and navigation ================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 14px rgba(199, 51, 50, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-1);
}

.brand-name span {
  color: var(--primary-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-2);
  padding-block: var(--space-1);
  transition: color var(--speed) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--speed) var(--ease);
}

.nav-link:hover {
  color: var(--text-1);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-1);
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
}

.mobile-nav a,
.mobile-nav button {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--text-2);
  text-align: left;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--primary-light);
}

.mobile-nav .btn {
  margin-top: var(--space-3);
  border-bottom: none;
  text-align: center;
}

/* 9. Hero ================================================================== */

.hero {
  padding-block: var(--space-8);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.9rem;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: rgba(199, 51, 50, 0.08);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.02em;
  color: var(--text-1);
}

.hero-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.hero-title span {
  color: var(--primary-light);
}

.hero-lede {
  max-width: 34rem;
  font-size: var(--text-lg);
  color: var(--text-2);
  margin-bottom: var(--space-6);
}

.hero .stack-actions {
  margin-bottom: var(--space-7);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.stat dt {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: var(--space-1);
}

.stat dd {
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* Phone mockup: the hero's single decorative flourish. */
.phone {
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(199, 51, 50, 0.12);
}

.phone-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  text-align: left;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.phone-screen:hover img {
  transform: scale(1.04);
}

.phone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-4);
  /* The thumbnail underneath is whatever the pull happened to be, so the
     bottom of this gradient has to be dark enough to carry white text over a
     bright card photo. */
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.95) 100%);
}

.phone-overlay .badge {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--primary-light);
}

.phone-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.phone-meta {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--secondary-light);
  margin-bottom: var(--space-3);
}

.phone-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.55rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

/* 10. Story ================================================================ */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 35, 50, 0.75) 0%, rgba(14, 23, 34, 0.9) 100%);
}

.story-copy {
  color: var(--text-2);
  margin-bottom: var(--space-5);
}

.story-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.feature {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.feature .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary-light);
  margin-bottom: var(--space-2);
}

.feature h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-1);
  margin-bottom: var(--space-1);
}

.feature p {
  font-size: var(--text-sm);
  color: var(--text-2);
}

/* 11. Cards ================================================================
   Every tile on the page is a .card. The variants change what is inside,
   never the surface, radius, border or hover behaviour. */

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #000;
}

.card-media--card {
  aspect-ratio: 3 / 4;
}

.card-media--short {
  aspect-ratio: 9 / 16;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-2);
  padding: var(--space-4);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-1) 100%);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  font-size: var(--text-sm);
  color: var(--text-2);
}

.card-note {
  font-size: var(--text-xs);
  color: var(--text-3);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.card-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  letter-spacing: -0.02em;
  color: var(--primary-light);
  line-height: 1.1;
}

/* Vault variant: no image, so the player name carries the tile. */
.card--vault .card-body {
  padding: var(--space-4);
}

.card-player {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--text-1);
}

/* Short variant: play button covers the thumbnail. */
.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background var(--speed) var(--ease);
}

.card-play:hover {
  background: rgba(0, 0, 0, 0.15);
}

.card-play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(199, 51, 50, 0.92);
  color: #fff;
  box-shadow: 0 0 25px rgba(199, 51, 50, 0.5);
  transition: transform var(--speed) var(--ease);
}

.card-play span .icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  stroke: none;
  margin-left: 3px;
}

.card:hover .card-play span {
  transform: scale(1.12);
}

.load-more {
  margin-top: var(--space-5);
}

/* 12. Modals =============================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(3, 6, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.modal.is-open {
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - var(--space-6));
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-panel--wide {
  max-width: 60rem;
  display: grid;
  grid-template-columns: 22rem 1fr;
  overflow: hidden;
}

.modal-panel--narrow {
  max-width: 36rem;
  padding: var(--space-6);
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: #fff;
  transition: background var(--speed) var(--ease);
}

.modal-close:hover {
  background: var(--primary);
}

.modal-player {
  aspect-ratio: 9 / 16;
  max-height: 36rem;
  background: #000;
}

.modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-title {
  font-size: var(--text-xl);
}

.modal-meta {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-3);
}

.modal-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  white-space: pre-line;
}

.modal-tags {
  font-size: var(--text-xs);
  color: var(--secondary-light);
}

.modal-actions {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}

.modal-actions--split {
  grid-template-columns: 1fr 1fr;
}

.summary {
  padding: var(--space-4);
  margin-block: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.summary-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
  color: var(--text-1);
  margin-block: var(--space-1);
}

.summary-set {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--secondary-light);
}

.summary-rows {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-3);
}

.summary-rows strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-1);
}

.modal-copy {
  margin-top: var(--space-2);
}

.modal-hint {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-block: var(--space-4);
}

/* 13. Footer =============================================================== */

.footer {
  margin-top: var(--space-8);
  padding-block: var(--space-8) var(--space-5);
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-blurb {
  max-width: 22rem;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-3);
}

.footer h2 {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.footer-links li + li {
  margin-top: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-3);
  transition: color var(--speed) var(--ease);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-note {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: var(--space-4);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* 14. Floating action button =============================================== */

.fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  box-shadow: 0 14px 34px -10px rgba(199, 51, 50, 0.65);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.fab:hover {
  transform: translateY(-3px);
}

/* 15. Links page ===========================================================
   The /links page shares every token above; it only needs its own layout. */

.linkpage {
  display: flex;
  justify-content: center;
  padding-block: var(--space-8);
}

.linkpage-inner {
  width: min(100% - var(--space-6), 26rem);
  text-align: center;
}

.linkpage-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.linkpage h1 {
  font-size: var(--text-xl);
}

.linkpage-handle {
  color: var(--text-2);
  font-size: var(--text-sm);
  margin-block: var(--space-2) var(--space-6);
}

.linkrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              background var(--speed) var(--ease);
}

.linkrow:hover {
  transform: translateY(-2px);
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.linkrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  color: #fff;
}

.linkrow-icon--red { background: var(--primary-gradient); }
.linkrow-icon--navy { background: var(--secondary-gradient); }

.linkrow-label {
  flex: 1;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

.linkrow-label span {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  font-size: var(--text-xs);
  color: var(--text-2);
}

.linkpage footer {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* 16. Responsive =========================================================== */

@media (max-width: 62rem) {
  .hero-grid,
  .story,
  .story-features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .story {
    padding: var(--space-6);
  }

  .footer-grid {
    gap: var(--space-6);
  }

  .modal-panel--wide {
    grid-template-columns: 1fr;
    max-width: 30rem;
    overflow-y: auto;
  }

  .modal-player {
    max-height: 26rem;
  }
}

@media (max-width: 48rem) {
  :root {
    --space-8: 3rem;
  }

  .nav-menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .nav-actions .btn span {
    display: none;
  }

  .nav-actions .btn {
    padding-inline: 0.85rem;
  }

  /* Only the headline message survives on a phone; the rest is reachable in
     the nav and footer anyway. */
  .ticker-item--secondary {
    display: none;
  }

  .hero-stats {
    gap: var(--space-5);
  }

  .modal-actions--split {
    grid-template-columns: 1fr;
  }

  .fab {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .fab span {
    display: none;
  }
}

@media (min-width: 48.0625rem) {
  .mobile-nav {
    display: none !important;
  }
}

/* 17. Reduced motion ======================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .btn:hover,
  .fab:hover,
  .linkrow:hover {
    transform: none;
  }
}
