.bullet-hell-page {
  --bh-gold: #D7A64B;
  --bh-charcoal: #171A22;
  --bh-ivory: #F0E6D2;
  --bh-orange: #E97546;
  --bh-teal: #3A9C96;
  --bh-violet: #7665A8;
  --bh-gold-40: rgba(215, 166, 75, 0.4);
  --bh-violet-10: rgba(118, 101, 168, 0.1);
  --bh-gap-section: 64px;
  --bh-gap-desktop: 96px;
  --bh-gutter: 24px;
  --bh-radius: 2px;
  --bh-focus: 2px solid var(--bh-teal);
  --bh-shadow-glow: 0 0 8px rgba(215, 166, 75, 0.4);
  --bh-transition: 150ms ease-out;
  background-color: var(--bh-charcoal);
  color: var(--bh-ivory);
  overflow-x: hidden;
}

.bullet-hell-page .container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .bullet-hell-page .container {
    padding-inline: 48px;
  }
}

.bh-section {
  margin-block: var(--bh-gap-section);
}

@media (min-width: 768px) {
  .bh-section {
    margin-block: var(--bh-gap-desktop);
  }
}

.bh-hero {
  position: relative;
  padding-block: 48px 32px;
  background-image: linear-gradient(rgba(215, 166, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 166, 75, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--bh-gold-40);
}

.bh-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .bh-hero__inner {
    grid-template-columns: 60% 40%;
    gap: 48px;
  }
}

.bh-hero__text {
  min-width: 0;
}

.bh-hero__kicker {
  color: var(--bh-gold);
  margin-block-end: 12px;
}

.bh-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--bh-gold);
  margin-block-end: 24px;
  max-width: 12ch;
}

.bh-hero__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--bh-ivory);
  max-width: 55ch;
  margin-block-end: 16px;
}

.bh-hero__support {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(240, 230, 210, 0.85);
  max-width: 55ch;
}

.bh-hero__decor {
  display: none;
  position: relative;
  min-width: 0;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 160px;
}

@media (min-width: 768px) {
  .bh-hero__decor {
    display: flex;
  }
}

.bh-hero__rule {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--bh-gold);
  opacity: 0.6;
}

.bh-hero__bullet {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bh-gold);
  background-color: var(--bh-orange);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(233, 117, 70, 0.5);
}

.bh-what-is__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .bh-what-is__grid {
    grid-template-columns: 60% 35%;
    gap: 5%;
    align-items: start;
  }
}

.bh-what-is__text {
  min-width: 0;
}

.bh-what-is__text h2,
.bh-patterns__text h2,
.bh-movement__text h2,
.bh-enemies h2,
.bh-defensive__text h2,
.bh-awareness__text h2,
.bh-mistakes h2,
.bh-practice h2,
.bh-resources h2 {
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--bh-ivory);
  margin-block-end: 24px;
  border-bottom: 2px solid var(--bh-gold);
  padding-bottom: 12px;
  display: inline-block;
  min-width: 48px;
}

.bh-what-is__text h3,
.bh-patterns__text h3,
.bh-movement__text h3,
.bh-enemies h3,
.bh-defensive__text h3,
.bh-awareness__text h3,
.bh-practice h3 {
  font-size: clamp(1.375rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--bh-ivory);
  margin-block: 24px 12px;
}

.bh-what-is__text p,
.bh-patterns__text p,
.bh-movement__text p,
.bh-enemies p,
.bh-defensive__text p,
.bh-awareness__text p,
.bh-mistakes p,
.bh-practice p,
.bh-resources__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bh-ivory);
  max-width: 68ch;
  margin-block-end: 16px;
}

.bh-what-is__text p strong,
.bh-patterns__text p strong,
.bh-movement__text p strong,
.bh-defensive__text p strong,
.bh-awareness__text p strong {
  color: var(--bh-gold);
  font-weight: 600;
}

.bh-callout {
  background-color: var(--bh-ivory);
  color: var(--bh-charcoal);
  padding: 24px;
  border-left: 4px solid var(--bh-teal);
  margin-block-end: 24px;
}

.bh-callout--orange {
  border-left-color: var(--bh-orange);
}

.bh-callout p {
  color: var(--bh-charcoal);
  font-size: 1rem;
  line-height: 1.6;
  margin-block-end: 12px;
}

.bh-callout p:last-child {
  margin-block-end: 0;
}

.bh-what-is__callout {
  min-width: 0;
}

@media (min-width: 768px) {
  .bh-what-is__callout {
    margin-block-start: 48px;
  }
}

.bh-patterns__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .bh-patterns__grid {
    grid-template-columns: 55% 40%;
    gap: 5%;
    align-items: start;
  }
}

.bh-patterns__text {
  min-width: 0;
}

.bh-pattern-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.bh-pattern-list li {
  margin-block-end: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.bh-pattern-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--bh-orange);
  transform: rotate(45deg);
}

.bh-pattern-name {
  color: var(--bh-orange);
  font-weight: 600;
}

.bh-patterns__tip {
  margin-block-start: 24px;
}

.bh-patterns__figure {
  min-width: 0;
  margin: 0;
}

.bh-patterns__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--bh-gold);
  transform: rotate(1.5deg);
  display: block;
}

.bh-patterns__figure figcaption {
  margin-block-start: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bh-gold);
}

.bh-movement {
  position: relative;
}

.bh-movement__figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.bh-movement__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid var(--bh-gold);
  border-bottom: 1px solid var(--bh-gold);
  transform: rotate(2deg) scale(1.02);
}

.bh-movement__content {
  padding-block-start: 48px;
}

.bh-movement__text {
  max-width: 80%;
  min-width: 0;
  margin-inline: 0;
}

@media (max-width: 767px) {
  .bh-movement__text {
    max-width: 100%;
  }
}

.bh-card {
  background-color: var(--bh-ivory);
  color: var(--bh-charcoal);
  border: 1px solid var(--bh-gold);
  padding: 24px;
  position: relative;
  margin-block-end: 24px;
}

.bh-card::before,
.bh-card::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--bh-gold);
}

.bh-card::before {
  top: -1px;
  left: -1px;
}

.bh-card::after {
  bottom: -1px;
  right: -1px;
}

.bh-card--warning {
  border-left: 4px solid var(--bh-orange);
}

.bh-card--gold {
  border-left: 4px solid var(--bh-gold);
}

.bh-tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bh-tip-list li {
  margin-block-end: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bh-charcoal);
}

.bh-tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--bh-gold);
}

.bh-tip-list li:last-child {
  margin-block-end: 0;
}

.bh-enemies__text {
  max-width: 68ch;
  min-width: 0;
}

.bh-tell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.bh-tell-list li {
  margin-block-end: 12px;
  padding-left: 24px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.bh-tell-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--bh-teal);
}

.bh-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block-start: 24px;
}

.bh-enemy-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bh-charcoal);
  color: var(--bh-ivory);
  font-size: 1rem;
  line-height: 1.6;
  min-width: 600px;
}

.bh-enemy-table th {
  background-color: var(--bh-gold);
  color: var(--bh-charcoal);
  font-family: 'Cinzel', 'Georgia', serif;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--bh-gold);
}

.bh-enemy-table td {
  padding: 12px 16px;
  border: 1px solid var(--bh-gold-40);
}

@media (max-width: 767px) {
  .bh-enemy-table {
    min-width: 0;
  }
  .bh-enemy-table thead {
    display: none;
  }
  .bh-enemy-table,
  .bh-enemy-table tbody,
  .bh-enemy-table tr,
  .bh-enemy-table td {
    display: block;
    width: 100%;
  }
  .bh-enemy-table tr {
    margin-block-end: 16px;
    border: 1px solid var(--bh-gold-40);
  }
  .bh-enemy-table td {
    border: none;
    border-bottom: 1px solid var(--bh-gold-40);
    padding: 12px 16px;
  }
  .bh-enemy-table td:last-child {
    border-bottom: none;
  }
  .bh-enemy-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--bh-gold);
    margin-block-end: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

.bh-defensive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .bh-defensive__grid {
    grid-template-columns: 40% 55%;
    gap: 5%;
    align-items: start;
  }
}

.bh-defensive__figure {
  min-width: 0;
  margin: 0;
  order: -1;
}

@media (min-width: 768px) {
  .bh-defensive__figure {
    order: 0;
  }
}

.bh-defensive__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--bh-gold);
  display: block;
}

.bh-defensive__figure figcaption {
  margin-block-start: 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bh-gold);
}

.bh-defensive__text {
  min-width: 0;
}

.bh-defensive__warning {
  margin-block-start: 24px;
}

.bh-awareness__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .bh-awareness__grid {
    grid-template-columns: 60% 35%;
    gap: 5%;
    align-items: start;
  }
}

.bh-awareness__text {
  min-width: 0;
}

.bh-awareness__callout {
  min-width: 0;
}

@media (min-width: 768px) {
  .bh-awareness__callout {
    margin-block-start: 48px;
  }
}

.bh-mistakes__inner {
  display: flex;
  justify-content: center;
}

.bh-mistakes__card {
  width: 100%;
  max-width: 80%;
  min-width: 0;
}

@media (max-width: 767px) {
  .bh-mistakes__card {
    max-width: 100%;
  }
}

.bh-mistake-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mistake;
}

.bh-mistake-list li {
  counter-increment: mistake;
  margin-block-end: 16px;
  padding-left: 40px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bh-charcoal);
}

.bh-mistake-list li::before {
  content: counter(mistake);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--bh-orange);
  color: var(--bh-charcoal);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.bh-mistake-list li strong {
  color: var(--bh-charcoal);
  font-weight: 600;
}

.bh-mistake-list li:last-child {
  margin-block-end: 0;
}

.bh-practice__inner {
  display: flex;
  justify-content: center;
}

.bh-practice__card {
  width: 100%;
  max-width: 70%;
  min-width: 0;
}

@media (max-width: 767px) {
  .bh-practice__card {
    max-width: 100%;
  }
}

.bh-practice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: practice;
}

.bh-practice-list li {
  counter-increment: practice;
  margin-block-end: 16px;
  padding-left: 40px;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bh-charcoal);
}

.bh-practice-list li::before {
  content: counter(practice);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--bh-gold);
  color: var(--bh-charcoal);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.bh-practice-list li:last-child {
  margin-block-end: 0;
}

.bh-resources__lead {
  margin-block-end: 32px;
}

.bh-resources__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bh-resources__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bh-resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bh-charcoal);
  border: 1px solid var(--bh-gold-40);
  padding: 24px;
  text-decoration: none;
  transition: color var(--bh-transition), box-shadow var(--bh-transition), border-color var(--bh-transition);
  min-width: 0;
}

.bh-resource-card:hover {
  color: var(--bh-orange);
  box-shadow: var(--bh-shadow-glow);
  border-color: var(--bh-gold);
}

.bh-resource-card:focus-visible {
  outline: var(--bh-focus);
  outline-offset: 2px;
}

.bh-resource-card__title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--bh-gold);
  font-weight: 600;
}

.bh-resource-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bh-ivory);
}

@media (prefers-reduced-motion: reduce) {
  .bullet-hell-page *,
  .bullet-hell-page *::before,
  .bullet-hell-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.bh-section.is-animated {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.bh-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
