/* Rulebook 2026-08-16 visual rebuild. Hero still uses wdhc-page-rules.css */

.rules-book,
.rules-book * {
  box-sizing: border-box;
}

.rules-book {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 28px;
}

.rules-book section {
  margin-bottom: 0;
}

.rules-book h2::before,
.rules-book li::before {
  display: none !important;
  content: none !important;
}

.rules-book li {
  margin: 0;
  padding-left: 0;
  font-size: inherit;
  color: inherit;
}

.rules-book a {
  color: #d4af37;
}

.rules-book__panel {
  border-radius: 20px;
  padding: clamp(16px, 3vw, 26px);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    linear-gradient(165deg, #12110f 0%, #09090b 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.rules-book__head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 18px;
}

.rules-book__eyebrow {
  margin: 0 0 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
}

.rules-book__title {
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2efe8;
  line-height: 1.1;
}

.rules-book__sub {
  margin: 0 auto;
  color: #b0b0b0;
  font-size: 1rem;
  line-height: 1.45;
}

.rules-book__prose {
  max-width: 40rem;
  margin: 0 auto;
  color: #c8c8c8;
  font-size: 1.05rem;
  line-height: 1.55;
}

.rules-book__prose p {
  margin: 0 0 12px;
}

.rules-book__prose p:last-child {
  margin-bottom: 0;
}

/* Need tiles */
.rules-book__needs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rules-book__need {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}

.rules-book__need img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: contain;
  background: #0a0a0a;
  display: block;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.rules-book__need span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f0ebe3;
  line-height: 1.2;
}

/* Two paths */
.rules-book__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rules-book__path {
  overflow: hidden;
  border-radius: 18px;
  background: #0b0b0c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.rules-book__path--verified {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(212, 175, 55, 0.28);
}

.rules-book__path-photo {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
}

.rules-book__path-body {
  padding: 16px 16px 18px;
}

.rules-book__path h3 {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.rules-book__path p {
  margin: 0 0 10px;
  color: #c4c4c4;
  font-size: 0.98rem;
  line-height: 1.45;
}

.rules-book__path p:last-child {
  margin-bottom: 0;
}

.rules-book__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rules-book__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.05);
}

.rules-book__path--verified .rules-book__chip {
  color: #1a1408;
  background: linear-gradient(135deg, #d4af37 0%, #cd7f32 100%);
}

/* Hang type dropdowns */
.rules-book__groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-book__group {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.rules-book__group > summary,
.rules-book__type > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rules-book__group > summary::-webkit-details-marker,
.rules-book__type > summary::-webkit-details-marker {
  display: none;
}

.rules-book__group > summary {
  padding: 16px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f2efe8;
}

.rules-book__group > summary::after,
.rules-book__type > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #d4af37;
  border-bottom: 2px solid #d4af37;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.rules-book__group[open] > summary::after,
.rules-book__type[open] > summary::after {
  transform: rotate(-135deg);
}

.rules-book__count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4af37;
}

.rules-book__types {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 12px;
}

.rules-book__type {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.rules-book__type > summary {
  padding: 10px 12px;
}

.rules-book__type img,
.rules-book__glyph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.rules-book__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.rules-book__glyph svg {
  width: 26px;
  height: 26px;
  display: block;
}

.rules-book__name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f0ebe3;
  line-height: 1.15;
}

.rules-book__type p {
  margin: 0;
  padding: 0 14px 14px 68px;
  color: #b8b8b8;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Fine print */
.rules-book__fine {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.rules-book__fine > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f2efe8;
  display: flex;
  align-items: center;
}

.rules-book__fine > summary::-webkit-details-marker {
  display: none;
}

.rules-book__fine > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid #d4af37;
  border-bottom: 2px solid #d4af37;
  transform: rotate(45deg);
}

.rules-book__fine[open] > summary::after {
  transform: rotate(-135deg);
}

.rules-book__fine-list {
  list-style: none;
  margin: 0;
  padding: 0 18px 16px;
}

.rules-book__fine-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #c4c4c4;
  font-size: 0.95rem;
  line-height: 1.45;
}

.rules-book__fine-list strong {
  display: inline;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.92rem;
  margin-right: 6px;
}

.rules-book__cta {
  text-align: center;
  padding: clamp(22px, 3.5vw, 34px) 20px;
}

.rules-book__cta-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  color: #8a8a8a;
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.rules-book__cta-legal a {
  color: #d4af37;
  text-decoration: none;
  margin: 0;
}

.rules-book__cta-legal a:hover {
  text-decoration: underline;
}

.rules-book__cta h2 {
  margin: 0 0 8px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f2efe8;
}

.rules-book__cta p {
  margin: 0 auto 18px;
  max-width: 36ch;
  color: #a8a8a8;
}

@media (max-width: 800px) {
  .rules-book__needs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rules-book__paths {
    grid-template-columns: 1fr;
  }
  .rules-book__path-photo {
    height: 180px;
  }
}

@media (max-width: 520px) {
  .rules-book__needs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rules-book__need:last-child {
    grid-column: 1 / -1;
    max-width: 11rem;
    justify-self: center;
    width: 100%;
  }
  .rules-book__need img {
    width: 64px;
    height: 64px;
  }
  .rules-book__type p {
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rules-book__group > summary::after,
  .rules-book__type > summary::after,
  .rules-book__fine > summary::after {
    transition: none;
  }
}
