:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  overflow-x: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid #E8C547;
  outline-offset: 4px;
}

.yv-button {
  text-decoration: none;
}

.yv-section-heading {
  font-size: clamp(44px, 5vw, 64px) !important;
}

.yv-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.85;
  white-space: nowrap;
}

.yv-wordmark-text {
  color: #3D2418;
  font-size: clamp(76px, 9vw, 120px);
}

.yv-wordmark-v {
  display: inline-block;
  width: clamp(76px, 9vw, 120px);
  height: clamp(82px, 9.75vw, 130px);
  margin-inline: clamp(-6px, -0.4vw, -4px);
  transform: translateY(6px);
}

.yv-wordmark-v svg {
  display: block;
  width: 100%;
  height: 100%;
}

.yv-app-showcase {
  padding: 96px 56px 112px;
  background: #F5E9D0;
}

.yv-app-showcase-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.yv-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.yv-feature-card {
  min-height: 148px;
  padding: 22px;
  border: 3px solid #3D2418;
  border-radius: 18px;
  background: #EBDDBE;
  box-shadow: 0 5px 0 #3D2418;
}

.yv-feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: #3D2418;
  font-size: 18px;
}

.yv-feature-card p {
  margin: 0;
  color: #6B4226;
  font-size: 14px;
  line-height: 1.5;
}

.yv-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.yv-screenshot-card {
  overflow: hidden;
  border: 3px solid #3D2418;
  border-radius: 24px;
  background: #3D2418;
  box-shadow: 0 8px 0 #3D2418;
}

.yv-screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.yv-screenshot-card figcaption {
  padding: 14px 16px 16px;
  color: #F5E9D0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-align: center;
}

@media (max-width: 980px) {
  .yv-nav {
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 20px !important;
    padding-bottom: 32px !important;
  }

  .yv-brand {
    flex: 1 1 auto;
  }

  .yv-navlinks {
    flex: 1 1 100%;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 16px !important;
  }

  .yv-phase-grid,
  .yv-sabotage-grid,
  .yv-players-grid,
  .yv-editions-grid,
  .yv-feature-grid,
  .yv-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .yv-phase-card {
    min-height: 250px !important;
    transform: none !important;
  }

  .yv-phase-arrow {
    display: none;
  }

  .yv-joker-spotlight {
    grid-template-columns: 0.8fr 1.2fr !important;
  }
}

@media (max-width: 680px) {
  .yv-hero {
    min-height: auto !important;
    padding: 18px 20px 56px !important;
  }

  .yv-brand-version {
    display: none;
  }

  .yv-navlinks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .yv-navlinks > a:not(.yv-button) {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    font-size: 11px !important;
  }

  .yv-navlinks .yv-button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .yv-hero-copy {
    padding-top: 6px !important;
  }

  .yv-stamps {
    flex-wrap: wrap;
    gap: 9px !important;
  }

  .yv-stamps > span {
    padding: 4px 9px !important;
    font-size: 10px !important;
    letter-spacing: 1.2px !important;
  }

  .yv-wordmark {
    letter-spacing: -2px;
  }

  .yv-wordmark-text {
    font-size: clamp(51px, 17vw, 72px);
  }

  .yv-wordmark-v {
    width: clamp(51px, 17vw, 72px);
    height: clamp(55px, 18.5vw, 78px);
    transform: translateY(3px);
  }

  .yv-hero-title {
    max-width: 340px !important;
    font-size: 21px !important;
    line-height: 1.18 !important;
  }

  .yv-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px !important;
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .yv-actions .yv-button {
    justify-content: center;
    width: 100%;
  }

  .yv-hero-fan {
    height: 238px !important;
    margin-top: 34px !important;
  }

  .yv-hero-fan-inner {
    width: 100% !important;
    height: 225px !important;
  }

  .yv-hero-card {
    transform:
      translate(calc(-50% + var(--mobile-x)), var(--mobile-y))
      rotate(var(--card-rot)) !important;
  }

  .yv-hero-card .yv-card-face {
    width: 92px !important;
    height: 127px !important;
  }

  .yv-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px !important;
  }

  .yv-stat-number {
    font-size: 40px !important;
  }

  .yv-section,
  .yv-app-showcase {
    padding: 64px 20px 72px !important;
  }

  .yv-section-title {
    margin-bottom: 28px !important;
  }

  .yv-section-heading {
    margin-top: 10px !important;
    font-size: clamp(36px, 11vw, 48px) !important;
    letter-spacing: -1.3px !important;
    line-height: 0.98 !important;
  }

  .yv-section-sub {
    font-size: 16px !important;
  }

  .yv-phase-grid,
  .yv-sabotage-grid,
  .yv-players-grid,
  .yv-editions-grid,
  .yv-feature-grid {
    grid-template-columns: 1fr !important;
  }

  .yv-phase-card {
    min-height: auto !important;
  }

  .yv-recipe-strip {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 20px !important;
    margin-top: 44px !important;
    padding: 22px !important;
  }

  .yv-recipe-cards {
    justify-content: flex-start !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 0 10px;
  }

  .yv-codex-head {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px !important;
  }

  .yv-filters {
    gap: 8px !important;
  }

  .yv-filters button {
    min-height: 42px;
    padding: 7px 12px !important;
    font-size: 10px !important;
  }

  .yv-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .yv-card-tile {
    min-width: 0;
    padding: 10px 6px !important;
  }

  .yv-joker-spotlight {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
  }

  .yv-joker-title {
    font-size: 36px !important;
  }

  .yv-sabotage-watermark {
    font-size: 92px !important;
  }

  .yv-edition-card {
    min-height: 178px;
  }

  .yv-cta {
    padding: 82px 20px !important;
  }

  .yv-cta-card {
    display: none;
  }

  .yv-cta-title {
    font-size: clamp(48px, 15vw, 66px) !important;
    letter-spacing: -2px !important;
  }

  .yv-cta-copy {
    font-size: 16px !important;
  }

  .yv-footer {
    align-items: flex-start !important;
    flex-direction: column;
    padding: 30px 20px !important;
  }

  .yv-footer-links {
    gap: 14px !important;
    flex-wrap: wrap;
  }

  .yv-feature-card {
    min-height: auto;
  }

  .yv-screenshot-grid {
    display: grid !important;
    grid-auto-columns: 82%;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 14px;
    overflow-x: auto;
    padding: 0 4px 14px;
    scroll-snap-type: x mandatory;
  }

  .yv-screenshot-card {
    margin: 0;
    scroll-snap-align: center;
  }
}

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

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