/* ==========================================================================
   Dart Golf — DartWolf Studios
   Site styles. One deep "fairway at dusk" theme: forest green, parchment, gold.
   ========================================================================== */

:root {
  --bg:        #10211600;       /* set on body below with layers */
  --ink:       #0e1f14;         /* deepest green */
  --field:     #14291b;         /* page base */
  --panel:     #1b3826;         /* raised cards */
  --panel-2:   #21402c;
  --line:      rgba(243, 234, 214, 0.14);
  --line-soft: rgba(243, 234, 214, 0.08);

  --cream:     #f3ead6;         /* parchment text */
  --cream-dim: rgba(243, 234, 214, 0.74);
  --cream-faint: rgba(243, 234, 214, 0.52);

  --gold:      #e6c15a;
  --gold-deep: #c9a23f;
  --fairway:   #3a9159;         /* light fairway green accent */
  --red:       #cf4433;         /* dartboard red, sparing */

  --maxw: 1080px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 18px 48px -22px rgba(0, 0, 0, 0.7);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--cream);
  background-color: var(--field);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(58, 145, 89, 0.20), transparent 60%),
    radial-gradient(900px 700px at 8% 108%, rgba(230, 193, 90, 0.08), transparent 55%),
    linear-gradient(180deg, #16301f 0%, #122619 46%, #0e1f14 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ---- Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

section { padding: 62px 0; }
section.tight { padding: 40px 0; }

/* ---- Header ---------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 31, 20, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 38px; height: 38px; border-radius: 9px; display: block; box-shadow: 0 0 0 1px var(--line); }
.brand b { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.1px; }
.brand span { color: var(--gold); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--cream-dim); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 9px; transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--cream); background: rgba(243, 234, 214, 0.06); }
.nav a.active { color: var(--ink); background: var(--gold); }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding: 76px 0 54px; text-align: center; }
.badge {
  width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 26px;
  display: block; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
h1 .thin { font-weight: 400; font-style: italic; color: var(--cream-dim); }
.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--cream-dim);
  max-width: 620px; margin: 0 auto 30px;
}

/* ---- Buttons --------------------------------------------------------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #241c05; box-shadow: 0 12px 30px -14px rgba(230, 193, 90, 0.8); }
.btn-primary:hover { background: #efce6f; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(243, 234, 214, 0.35); background: rgba(243, 234, 214, 0.05); }

/* ---- Section headings ------------------------------------------------ */
.kicker {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(27px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.3px;
  margin: 0 0 14px;
}
h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.section-intro { color: var(--cream-dim); max-width: 640px; margin-bottom: 36px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---- Cards / grids --------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .num {
  font-family: var(--display); font-weight: 900; font-size: 30px;
  color: var(--gold); line-height: 1; margin-bottom: 12px; display: block;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 15px;
  display: grid; place-items: center; background: rgba(230, 193, 90, 0.12);
  border: 1px solid rgba(230, 193, 90, 0.25); font-size: 22px;
}
.card p { color: var(--cream-dim); margin: 0; }
.card p + p { margin-top: 10px; }

/* ---- Rule / steps ---------------------------------------------------- */
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.step .tag {
  font-family: var(--display); font-weight: 900; font-size: 20px;
  color: var(--ink); background: var(--gold); border-radius: 11px;
  width: 54px; height: 54px; display: grid; place-items: center;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--cream-dim); }

/* ---- Prose (legal / support) ---------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; font-size: clamp(22px, 3vw, 29px); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 26px; font-size: 19px; }
.prose p, .prose li { color: var(--cream-dim); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--cream); }
.prose .updated { color: var(--cream-faint); font-size: 14px; margin-top: -4px; }
.callout {
  background: rgba(230, 193, 90, 0.08); border: 1px solid rgba(230, 193, 90, 0.22);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 22px 0;
}
.callout p { margin: 0; color: var(--cream); }

/* ---- Divider rule w/ dart ------------------------------------------- */
.rule { display: flex; align-items: center; gap: 16px; color: var(--cream-faint); margin: 8px 0 0; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(207, 68, 51, 0.18); }

/* ---- FAQ ------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 2px; position: relative;
  font-weight: 600; font-size: 17px; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--gold); font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 2px 18px; color: var(--cream-dim); }
.faq .ans p { margin: 0 0 10px; }

/* ---- Contact band ---------------------------------------------------- */
.band {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 44px; text-align: center; box-shadow: var(--shadow);
}
.band h2 { margin-bottom: 10px; }
.band p { color: var(--cream-dim); max-width: 520px; margin: 0 auto 22px; }
.mail {
  font-family: var(--display); font-size: clamp(20px, 3.4vw, 28px); font-weight: 600;
  color: var(--gold); text-decoration: none; word-break: break-word;
}
.mail:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Footer ---------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 28px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot .fbrand { display: flex; align-items: center; gap: 10px; color: var(--cream-dim); font-size: 14px; }
.site-foot img { width: 26px; height: 26px; border-radius: 7px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot nav a { color: var(--cream-faint); text-decoration: none; font-size: 14px; }
.site-foot nav a:hover { color: var(--cream); }

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  section { padding: 46px 0; }
  .hero { padding: 48px 0 34px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand b { font-size: 18px; }
  .band { padding: 30px 20px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .step .tag { width: 44px; height: 44px; font-size: 17px; }
}

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

/* ---- Discord ---------------------------------------------------------- */
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 12px 30px -14px rgba(88, 101, 242, 0.85); }
.btn-discord:hover { background: #6f7af5; }
.band .alt-help { margin: 18px auto 0; font-size: 15px; }
.band .alt-help a { color: var(--gold); }

/* ---- Phone header: brand on one row, the five links on the next ------ */
@media (max-width: 620px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 2px; min-height: 0; padding-top: 10px; padding-bottom: 8px; }
  .brand b { white-space: nowrap; }
  .nav { width: calc(100% + 14px); margin: 0 -7px; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 7px; white-space: nowrap; }
}

/* ---- Course Editor guide (how-to-play.html#course-editor) ------------ */
#course-editor { scroll-margin-top: 80px; }
.jump { margin: 18px 0 0; }
.jump a, .inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.subhead { margin: 34px 0 14px; }
.shot { margin: 30px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { color: var(--cream-faint); font-size: 14px; margin-top: 10px; text-align: center; }
.shot.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.shot.tall { max-width: 360px; margin: 34px auto 0; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.legend > div { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.legend i { flex: none; width: 18px; height: 18px; border-radius: 5px; margin-top: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); }
.legend p { margin: 0; }
.legend b { display: block; font-size: 15px; color: var(--cream); }
.legend span { color: var(--cream-dim); font-size: 14px; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: start; }
@media (max-width: 860px) {
  .legend { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 520px) {
  .legend { grid-template-columns: 1fr; }
}


/* ---- Get the game: Play / App Store / Discord / email, on every page --- */
.nav a.nav-play { color: var(--gold); border: 1px solid rgba(230, 193, 90, 0.55); font-weight: 600; margin-left: 6px; }
.nav a.nav-play:hover { color: #241c05; background: var(--gold); }
.btn-sm { font-size: 14px; padding: 9px 15px; border-radius: 10px; }
.btn.soon { opacity: 0.72; cursor: default; }
.btn.soon:active { transform: none; }
.btn-appstore { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-appstore:hover { background: #1a1a1a; }
.hero-sub { margin: 16px 0 0; font-size: 15px; }
.hero-sub a { color: var(--cream-dim); }
.hero-sub a:hover { color: var(--cream); }
.site-foot .fget { margin-top: 20px; justify-content: flex-start; gap: 10px; }
.site-foot .fmail { margin-left: auto; color: var(--gold); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-foot .fmail:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .site-foot .fget { justify-content: center; }
  .site-foot .fmail { margin-left: 0; width: 100%; text-align: center; padding-top: 6px; }
}
/* Phones: the nav row scrolls sideways, so the Play button sits on the brand row where it's always in view */
@media (max-width: 620px) {
  .site-head .wrap { position: relative; }
  .nav a.nav-play { position: absolute; top: 12px; right: 22px; margin: 0; padding: 7px 16px; background: var(--gold); color: #241c05; border-color: var(--gold); }
}


/* ---- The big dartboard: the home page's Play button ---------------------- */
.board-play { display: block; width: min(300px, 72vw); margin: 34px auto 0; text-decoration: none; color: inherit; }
.board-play .bp-img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(243, 234, 214, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease; }
.board-play:hover .bp-img { transform: scale(1.03) rotate(-1.5deg);
  box-shadow: 0 36px 80px -22px rgba(0, 0, 0, 0.82), 0 0 0 3px rgba(230, 193, 90, 0.6); }
.board-play:active .bp-img { transform: scale(0.99); }
.board-play:focus-visible { outline: none; }
.board-play:focus-visible .bp-img { outline: 3px solid var(--gold); outline-offset: 6px; }
.bp-label { position: relative; display: inline-flex; align-items: center; gap: 9px; margin-top: -24px;
  padding: 12px 26px; border-radius: 999px; background: var(--gold); color: #241c05; font-weight: 700; font-size: 18px;
  box-shadow: 0 12px 30px -12px rgba(230, 193, 90, 0.85); }
.board-play:hover .bp-label { background: #efce6f; }
.bp-sub { display: block; margin-top: 12px; color: var(--cream-dim); font-size: 15px; }
.board-play + .cta-row { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .board-play .bp-img { transition: none; } .board-play:hover .bp-img { transform: none; } }
