/* Single-purpose rules guide. Builds on the Xtreme Pinball marketing shell. */
.xp-rules { --guide-muted: #b8c5dc; }
.xp-rules .xp-story { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(4rem, 7vw, 7rem); }
.xp-rules .xp-story h2 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .97; }
.xp-rules section[id], .xp-rules #rules-title { scroll-margin-top: 6rem; }
.xp-rules p, .xp-rules li, .xp-rules dd { line-height: 1.7; }
.xp-rules .xp-story-copy { color: var(--guide-muted); }
.xp-rules .xp-story-copy strong { color: #f8fbff; }
.xp-rules a:focus-visible { outline: 3px solid #30a8ff; outline-offset: 5px; }
.xp-guide-skip { position: fixed; top: -5rem; left: 1rem; z-index: 1100; padding: .7rem 1rem; background: #53f5e2; color: #06131a; }
.xp-guide-skip:focus { top: .5rem; }
.xp-guide-hero { gap: 3rem; min-height: 650px; }
.xp-guide-hero h1 { font-size: clamp(3.6rem, 6.5vw, 6.6rem); line-height: .9; }
.xp-guide-note { max-width: 38rem; margin-top: 1.5rem; color: var(--guide-muted); font-size: .9rem; }
.xp-guide-clock { position: relative; padding: clamp(2rem, 4vw, 4rem); border: 1px solid #355166; background: radial-gradient(circle at 70% 20%, #142e45, #0b1322 70%); box-shadow: 0 25px 80px #0006; }
.xp-guide-clock > strong { display: block; color: #53f5e2; font: 700 clamp(4.5rem, 9vw, 8rem)/1.1 ui-monospace, monospace; letter-spacing: -.08em; }
.xp-guide-clock > p:not(.xp-section-kicker) { color: #f8fbff; margin: 1rem 0 2rem; }
.xp-guide-clock small { display: block; margin-top: 2rem; color: var(--guide-muted); }
.xp-guide-time-bonus { display: flex; gap: 1rem; align-items: center; padding-top: 1.5rem; border-top: 1px solid #344353; }
.xp-guide-time-bonus b { display: block; color: #75cfff; }
.xp-guide-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: 1rem max(1.5rem, calc((100vw - 1200px) / 2)); border-block: 1px solid #293247; background: #101625; }
.xp-guide-nav a { padding: .5rem 0; color: #d5e6fa; font-size: .9rem; text-decoration: none; }
.xp-guide-nav a:hover { color: #53f5e2; }
.xp-guide-stop { margin-top: 3rem; padding: 1.5rem 2rem; border-left: 4px solid #ff727f; background: #291923; }
.xp-guide-stop > strong { display: block; color: #ffbcc3; font-size: 1.3rem; }
.xp-guide-stop p { margin: .6rem 0 0; max-width: 65rem; color: #ecdae0; }
.xp-guide-coins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.xp-guide-coins h3 { margin: 1.5rem 0 1rem; font-size: 1.3rem; }
.xp-guide-coins p { color: var(--guide-muted); }
.xp-guide-coins strong { color: #f8fbff; }
.xp-guide-coin { display: inline-grid; flex: 0 0 auto; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 3px double currentColor; font-weight: 800; font-size: 1.4rem; }
.xp-guide-blue { color: #90d5ff; background: #123e68; }
.xp-guide-gold { color: #ffe59c; background: #574010; }
.xp-guide-purple { color: #e0c1ff; background: #432166; }
.xp-guide-light { color: #12243a; background: #e3effb; }
.xp-guide-light .xp-section-kicker { color: #12665c; }
.xp-guide-intro { max-width: 48rem; margin: 1.8rem 0 2rem; font-size: 1.12rem; color: var(--guide-muted); }
.xp-guide-light .xp-guide-intro, .xp-guide-light .xp-guide-small { color: #3b526d; }
.xp-guide-small { font-size: .9rem; color: var(--guide-muted); }
.xp-guide-level { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem; padding: 2.5rem 0; border-top: 1px solid #b6cadf; }
.xp-guide-number { display: block; margin-bottom: .7rem; color: #53f5e2; font: 600 1rem ui-monospace, monospace; }
.xp-guide-light .xp-guide-number { color: #12665c; }
.xp-guide-level h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
.xp-guide-switches { color: #3b526d; font-size: .9rem; }
.xp-guide-switches strong { color: #12375c; }
.xp-guide-level li { margin-bottom: .35rem; }
.xp-guide-ref-list { counter-reset: ref; list-style: none; margin: 0; padding: 0; }
.xp-guide-ref-list li { counter-increment: ref; position: relative; padding: 1rem 0 1rem 3rem; border-bottom: 1px solid #293247; }
.xp-guide-ref-list li::before { content: counter(ref, decimal-leading-zero); position: absolute; left: 0; top: 1rem; font-family: ui-monospace, monospace; color: #53f5e2; }
.xp-guide-ref-list strong, .xp-guide-ref-list span { display: block; }
.xp-guide-ref-list span { color: var(--guide-muted); font-size: .95rem; }
.xp-guide-walkthrough { background: #101729; }
.xp-guide-walkthrough a, .xp-footer a { color: #75e9dd; }
.xp-guide-step { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: 3rem 0; border-top: 1px solid #354159; }
.xp-guide-step:first-of-type { margin-top: 3rem; }
.xp-guide-step h3 { font-size: 1.65rem; margin-bottom: 1.2rem; }
.xp-guide-step p { color: var(--guide-muted); }
.xp-guide-step strong { color: #f8fbff; }
.xp-guide-step figure { margin: 0; min-width: 0; }
.xp-guide-step figure a { display: block; border: 1px solid #56637d; border-radius: 10px; overflow: hidden; background: #070912; }
.xp-guide-step img { display: block; width: 100%; height: auto; }
.xp-guide-step figcaption { margin-top: .8rem; color: #b8c5dc; font-size: .85rem; }
.xp-guide-formats { margin: 2.5rem 0; }
.xp-guide-formats > div { padding: 1.5rem 0; border-top: 1px solid #b6cadf; }
.xp-guide-formats dt { font-size: 1.3rem; }
.xp-guide-formats dt span { display: inline-block; margin-left: .5rem; padding: .3rem .5rem; color: #174557; background: #c5dde9; font-size: .75rem; vertical-align: middle; }
.xp-guide-formats dd { margin: .8rem 0 0; color: #3b526d; max-width: 48rem; }
.xp-rules .xp-footer a { display: inline-block; margin-left: 1.5rem; }
@media (max-width: 991.98px) {
  .xp-guide-hero { grid-template-columns: 1fr; min-height: auto; }
  .xp-guide-clock { max-width: 35rem; }
  .xp-guide-step { grid-template-columns: 1fr; }
  .xp-guide-coins { gap: 1.5rem; }
}
@media (max-width: 575.98px) {
  .xp-guide-hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .xp-guide-coins, .xp-guide-level { grid-template-columns: 1fr; gap: 1rem; }
  .xp-guide-coins article { padding-block: 1rem; border-bottom: 1px solid #293247; }
  .xp-guide-stop { padding: 1.25rem; }
  .xp-guide-formats dt span { display: table; margin: .5rem 0 0; }
}
@media print {
  .xp-rules #site-topbar, .xp-rules #site-sidebar, .xp-guide-nav, .xp-guide-skip, .xp-rules .xp-final-cta { display: none; }
  .xp-rules, .xp-rules .xp-story, .xp-guide-hero { color: #111; background: #fff; }
  .xp-rules .xp-story { padding: 2rem 0; }
  .xp-rules .xp-story h2 { font-size: 2rem; }
  .xp-rules p, .xp-rules li, .xp-rules dd, .xp-rules strong, .xp-rules figcaption { color: #111; }
  .xp-rules .xp-guide-clock { display: none; }
  .xp-rules .xp-hero h1 em, .xp-rules .xp-story h2 em { color: #111; -webkit-text-stroke: 0; }
  .xp-guide-step, .xp-guide-level { break-inside: avoid; }
}
