.hero-image,
.editorial-image {
  margin: 0;
  overflow: hidden;
  background: #dfe4da;
}

.hero-image {
  height: 540px;
  border-radius: 2px;
  box-shadow: 0 28px 45px #17241d2b;
}

.hero-image img,
.editorial-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img { object-position: 52% center; }

.planning-story,
.practical-story {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}

.planning-story > div,
.practical-story > div { min-width: 0; }

.planning-story .steps {
  grid-template-columns: 1fr;
  margin-top: 32px;
}

.planning-story .steps > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: baseline;
  border-right: 0;
  padding: 18px 0;
}

.planning-story .steps h3,
.planning-story .steps p {
  grid-column: 2;
  margin: 0;
}

.editorial-image { aspect-ratio: 4 / 3; }

.practical-story {
  max-width: none !important;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.practical-story > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.practical-story .editorial-image { aspect-ratio: 3 / 2; }

.article-image {
  margin: 0 0 48px;
  overflow: hidden;
  background: #dfe4da;
  aspect-ratio: 16 / 9;
}

.article-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A restrained cue-sports motif: baize, timber rails and table sights. */
.hero + .planning-story + section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 42px;
  margin-bottom: 42px;
  padding: 96px clamp(40px, 6vw, 78px);
  border: 14px solid #563e2d;
  border-radius: 3px;
  background:
    radial-gradient(circle at 18% 24%, #ffffff0b 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 68%, #0000000b 0 1px, transparent 1.5px),
    linear-gradient(112deg, #286f52, #1f6548 48%, #18543d);
  background-size: 9px 9px, 11px 11px, auto;
  color: #fffdf8;
  box-shadow:
    inset 0 0 0 2px #2e2017,
    inset 0 0 42px #071b1240,
    0 24px 45px #17241d24;
}

.hero + .planning-story + section::before,
.hero + .planning-story + section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero + .planning-story + section::before {
  inset: 18px;
  border: 1px solid #fffdf826;
}

.hero + .planning-story + section::after {
  top: 22px;
  right: 11%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8f15b;
  box-shadow:
    -145px 0 #d8f15b,
    -290px 0 #d8f15b;
  opacity: .7;
}

.hero + .planning-story + section .eyebrow { color: #d8f15b; }

.hero + .planning-story + section > h2 {
  max-width: 780px;
  text-wrap: balance;
}

.hero + .planning-story + section .card {
  position: relative;
  background: #fffdf8f2;
  color: #17241d;
  border-color: #fffdf861;
  box-shadow: 0 12px 28px #0a24182e;
}

.hero + .planning-story + section .card:hover {
  border-color: #d8f15b;
  box-shadow: 0 16px 32px #0a241842;
}

.planning-story .steps b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f6548;
  color: #fffdf8;
  box-shadow: inset 0 0 0 2px #ffffff24;
}

.motion-ready .hero-image,
.motion-ready .article-image,
.motion-ready .card,
.motion-ready .knowledge-card,
.motion-ready .game-card {
  will-change: transform, opacity;
}

.section-intro {
  max-width: 760px;
}

.section-intro > p:last-child {
  max-width: 660px;
  color: #405047;
  font-size: 1.08rem;
}

.fit-stage {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px 70px;
  align-items: center;
}

.fit-stage .fit-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.clearance-plan {
  margin: 0;
}

.plan-room {
  position: relative;
  aspect-ratio: 1.48;
  padding: 11%;
  border: 3px solid #17241d;
  background:
    linear-gradient(90deg, transparent 49.6%, #17241d0d 50%, transparent 50.4%),
    linear-gradient(transparent 49.6%, #17241d0d 50%, transparent 50.4%),
    #fffdf8;
  box-shadow: 12px 12px 0 #d9ded4;
}

.plan-label {
  position: absolute;
  padding: 4px 8px;
  background: #f4f0e8;
  color: #405047;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.room-label { top: -14px; left: 20px; }

.clearance-zone {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px dashed #1f6548;
  background: #1f65480a;
}

.clearance-label { top: -13px; right: 16px; }

.plan-table {
  position: relative;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1.9;
  border: 9px solid #563e2d;
  background: #1f6548;
  color: #fffdf8;
  box-shadow: 0 12px 22px #17241d30;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan-table::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid #ffffff2e;
}

.plan-table i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fffdf8;
}

.plan-table i:nth-of-type(1) { left: 28%; top: 32%; }
.plan-table i:nth-of-type(2) { right: 25%; bottom: 28%; background: #d8f15b; }
.plan-table i:nth-of-type(3) { left: 48%; bottom: 22%; background: #17241d; }

.clearance-plan figcaption {
  margin-top: 20px;
  color: #647168;
  font-size: .9rem;
}

.game-selector {
  padding-top: 46px;
}

.game-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: #cfd4ca;
  border: 1px solid #cfd4ca;
}

.game-card {
  min-width: 0;
  padding: 28px 20px 24px;
  background: #fffdf8;
  color: #17241d;
  text-decoration: none;
}

.game-card > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 34px;
  border-radius: 50%;
  background: #1f6548;
  color: white;
  font-weight: 800;
  box-shadow: inset -8px -9px 14px #061c1240;
}

.game-card strong,
.game-card small {
  display: block;
}

.game-card strong {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.game-card small {
  color: #647168;
  line-height: 1.45;
}

.game-card.pool > span { background: #17241d; }
.game-card.snooker > span { background: #a73b31; }

.game-card.darts > span {
  background: repeating-conic-gradient(#17241d 0 9deg, #f4f0e8 9deg 18deg);
  border: 7px solid #1f6548;
}

.game-card.darts > span::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #a73b31;
  box-shadow: 0 0 0 4px #d8f15b;
}

.game-card.table-tennis > span {
  width: 48px;
  height: 48px;
  background: #a73b31;
}

.game-card.table-tennis > span::after {
  content: "";
  position: absolute;
  bottom: -17px;
  width: 12px;
  height: 24px;
  border-radius: 2px 2px 8px 8px;
  background: #563e2d;
}

.game-card.air-hockey > span {
  height: 22px;
  margin-top: 15px;
  margin-bottom: 49px;
  border-radius: 50%;
  background: #17241d;
  box-shadow: inset 0 5px 0 #405047, 0 8px 11px #17241d30;
}

.spec-bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  max-width: 1180px;
  padding: 0;
  background: #e4eadf;
}

.spec-bench > figure {
  min-height: 620px;
  margin: 0;
  overflow: hidden;
}

.spec-bench > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-bench > div {
  padding: 72px 62px;
}

.spec-bench h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); }

.spec-points {
  margin: 36px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #aeb9aa;
}

.spec-points li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #aeb9aa;
}

.spec-points b { color: #1f6548; }
.spec-points strong { display: block; }

.reading-rail {
  --reading-progress: 0;
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  overflow: hidden;
  background: #d5d9d0;
  pointer-events: none;
}

.reading-rail > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #563e2d 0 12%, #b98b55 12% 85%, #f1e6cf 85% 96%, #17241d 96%);
  transform: scaleX(var(--reading-progress));
  transform-origin: left center;
}

header {
  position: sticky;
  z-index: 20;
  top: 0;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: #f4f0e8ed;
  box-shadow: 0 1px 0 #cfd4ca;
  backdrop-filter: blur(14px);
}

.brand span {
  position: relative;
  box-shadow: inset -7px -8px 12px #071b1245, 0 5px 12px #17241d1f;
}

.brand span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 8px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff78;
  transform: rotate(-28deg);
}

.guide {
  counter-reset: guide-section;
}

.guide > h2 {
  position: relative;
  counter-increment: guide-section;
  text-wrap: balance;
}

.guide > h2::before {
  content: counter(guide-section, decimal-leading-zero);
  display: block;
  margin-bottom: 9px;
  color: #1f6548;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.guide > p:not(.lede):not(.byline):not(.method) a {
  text-decoration-color: #1f654866;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.guide .glance {
  position: relative;
  overflow: hidden;
  border: 9px solid #563e2d;
  background:
    radial-gradient(circle at 20% 20%, #ffffff0c 0 1px, transparent 1.5px),
    linear-gradient(120deg, #286f52, #174f3a);
  background-size: 10px 10px, auto;
  box-shadow: inset 0 0 28px #061b1238, 0 18px 32px #17241d1c;
}

.guide .glance::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8f15b;
  box-shadow: -32px 0 #d8f15b, -64px 0 #d8f15b;
  opacity: .75;
}

.guide .glance dl > div {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff24;
}

.guide .glance dl > div:nth-last-child(-n+2) { border-bottom: 0; }

.guide .table-wrap {
  border: 0;
  border-top: 7px solid #563e2d;
  box-shadow: 0 12px 26px #17241d12;
}

.guide .table-wrap caption {
  padding: 18px 16px 10px;
  background: #17241d;
  color: white;
}

.guide .table-wrap th,
.guide .table-wrap td {
  padding: 13px 14px;
}

.guide .table-wrap tbody tr:nth-child(even) { background: #eef0e9; }
.guide .table-wrap tbody tr:hover { background: #e4eadf; }

.guide .toc {
  position: relative;
  border: 0;
  border-left: 4px solid #1f6548;
  box-shadow: 0 10px 24px #17241d0c;
}

footer {
  position: relative;
  max-width: none;
  padding: 70px max(24px, calc((100vw - 1180px) / 2 + 24px)) 58px;
  border-top: 0;
  background: #17241d;
  color: #fffdf8;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(90deg, #402b20, #6e4c34 30%, #4b3224 70%, #2e2017);
  box-shadow: inset 0 -2px #0d1712;
}

footer .brand { color: #d8f15b; }
footer a { transition: color 160ms ease; }
footer a:hover,
footer a:focus-visible { color: #d8f15b; }

footer > div:first-child p {
  max-width: 25ch;
  color: #bdc8c0;
}

header nav a {
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: #1f6548;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

header nav a:hover::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  box-shadow: 0 8px 20px #17241d18;
  transition: box-shadow 220ms ease, filter 220ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 12px 26px #17241d2b;
  filter: saturate(1.08);
}

@media (prefers-reduced-motion: reduce) {
  header nav a::after,
  .button,
  footer a { transition: none; }
}

@media (max-width: 980px) {
  .fit-stage { gap: 36px; }
  .game-rail { grid-template-columns: repeat(3, 1fr); }
  .spec-bench > div { padding: 58px 42px; }
}

@media (max-width: 750px) {
  .hero,
  .planning-story,
  .practical-story {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    gap: 40px;
    padding-top: 56px;
  }

  .hero-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-image img { object-position: 62% center; }

  .hero + .planning-story + section {
    margin: 20px 12px 36px;
    border-width: 9px;
    padding: 68px 28px;
  }

  .hero + .planning-story + section::after { display: none; }

  .fit-stage,
  .spec-bench {
    grid-template-columns: 1fr;
  }

  .fit-stage .fit-actions {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-room { padding: 9%; }
  .plan-table { width: 66%; border-width: 6px; }

  .game-rail {
    grid-template-columns: 1fr 1fr;
  }

  .game-card { min-height: 190px; }

  .spec-bench > figure {
    min-height: 360px;
  }

  .spec-bench > div {
    padding: 52px 28px 60px;
  }
}

@media (max-width: 430px) {
  .game-rail { grid-template-columns: 1fr; }
  .game-card { min-height: 0; }
}

/* Mobile is a purpose-built layout, not a compressed desktop page. */
@media (max-width: 750px) {
  body { font-size: 15.5px; }

  header {
    position: relative;
    top: auto;
    gap: 8px;
    padding: 14px 18px 0;
    background: #f4f0e8f5;
  }

  header .brand { font-size: 1.25rem; }

  header nav {
    gap: 8px;
    margin: 0 -18px;
    padding: 9px 18px 14px;
    scroll-padding-left: 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  header nav::-webkit-scrollbar { display: none; }

  header nav a {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #cfd4ca;
    border-radius: 999px;
    background: #fffdf8;
    scroll-snap-align: start;
    font-size: .8rem;
  }

  header nav a::after { display: none; }

  section,
  article {
    padding-right: 18px;
    padding-left: 18px;
  }

  article { padding-top: 58px; padding-bottom: 64px; }

  .hero {
    gap: 30px;
    padding: 46px 18px 62px;
  }

  .hero h1,
  .tool-hero h1,
  article > h1 {
    max-width: 12ch;
    font-size: clamp(2.85rem, 14vw, 3.55rem);
    line-height: .95;
  }

  section h2,
  article h2 {
    font-size: clamp(1.85rem, 9.5vw, 2.65rem);
  }

  .hero p { font-size: 1rem; }

  .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-top: 26px;
  }

  .actions .button { text-align: center; }

  .hero-image {
    aspect-ratio: 1 / 1;
    margin-right: -18px;
    margin-left: -18px;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-image img { object-position: 66% center; }

  .planning-story,
  .practical-story {
    gap: 28px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .planning-story .steps > div {
    grid-template-columns: 38px 1fr;
    padding: 15px 0;
  }

  .editorial-image { aspect-ratio: 4 / 3; }

  .hero + .planning-story + section {
    margin: 12px 10px 34px;
    padding: 54px 20px;
    border-width: 7px;
  }

  .hero + .planning-story + section::before { inset: 11px; }

  .hero + .planning-story + section .card {
    padding: 21px;
  }

  .fit-stage { padding-top: 62px; padding-bottom: 62px; }

  .plan-room {
    margin-top: 8px;
    padding: 11% 8%;
    box-shadow: 7px 7px 0 #d9ded4;
  }

  .plan-label { font-size: .58rem; }
  .plan-table { width: 72%; font-size: .55rem; }

  .game-selector {
    overflow: hidden;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .game-rail {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    margin-right: -18px;
    padding: 2px 18px 12px 0;
    border: 0;
    background: transparent;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .game-rail::-webkit-scrollbar { display: none; }

  .game-card {
    flex: 0 0 min(76vw, 278px);
    min-height: 205px;
    border: 1px solid #cfd4ca;
    scroll-snap-align: start;
  }

  .spec-bench { margin: 0; }

  .spec-bench > figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .spec-bench > div { padding: 46px 22px 56px; }

  .spec-bench h2 { font-size: clamp(2.1rem, 10vw, 3rem); }

  .practical-story {
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-image {
    width: calc(100% + 36px);
    margin-right: -18px;
    margin-left: -18px;
    aspect-ratio: 4 / 3;
  }

  article .lede {
    margin-bottom: 38px;
    font-size: 1.12rem;
  }

  .toc { padding: 18px; }
  .note,
  .tool-callout { margin: 30px 0; padding: 18px; }
  .glance { margin-right: -18px; margin-left: -18px; }

  .checker {
    gap: 30px;
    padding-top: 12px;
  }

  .checker form,
  .checker-output { min-width: 0; }

  footer { padding: 42px 18px; }
}
