/* The daily mini golf guide (/daily-mini-golf/): the club's pixel look as the game and /how-to-play/ have it. */
@font-face { font-family: 'Jersey 10'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jersey10.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/fonts/rubik-latin.woff2') format('woff2-variations'), url('/fonts/rubik-latin.woff2') format('woff2'); }
@font-face { font-family: 'DLE Mark'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dlemark.woff2') format('woff2'); }

:root {
  --px-num: 'Jersey 10', ui-monospace, monospace;
  --ink: #241f2c; --ink-2: rgba(36, 31, 44, 0.66); --line: rgba(36, 31, 44, 0.16); --ledge: rgba(36, 31, 44, 0.22);
  --card: #fbf6ea; --key-edge: #d9ccb1; --tint: #efe6d2; --sand: #f6ead6;
  --mint: #93e2bd; --mint-deep: #2c8a63; --on-mint: #12261c;
  --felt: #15703c; --flag: #e0553d;
  --bar-h: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.55 'Rubik', 'Avenir Next', 'Segoe UI', system-ui, sans-serif; padding-bottom: var(--bar-h); }
a { color: inherit; text-underline-offset: 0.2em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--px-num); font-weight: 400; letter-spacing: 0; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 48px); line-height: 0.9; margin-bottom: 14px; }
h3 { font-size: 28px; line-height: 1; }
p { margin: 0 0 14px; }

.top, main, .foot { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* header: the wordmark (the i's dot is a pixel golf ball), the club credit and the play button */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 0 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wm { display: inline-flex; align-items: center; }
.wm img { display: block; width: auto; height: 42px; }
.by { font: 400 18px/1 var(--px-num); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.by:hover { text-decoration: underline; }

/* the club's mint primary button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 14px; background: var(--mint); color: var(--on-mint); box-shadow: 0 3px 0 var(--mint-deep); font: 400 28px/1 var(--px-num); text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 22px; }
.text-link { font: 400 22px/1 var(--px-num); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.eyebrow { margin: 0 0 8px; font: 400 20px/1 var(--px-num); letter-spacing: 0.04em; color: var(--mint-deep); }

/* hero: the pitch beside Coffee Break, a real Puttsies hole */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 540px); align-items: center; gap: clamp(24px, 5vw, 64px); padding: 28px 0 48px; }
h1 { font-size: clamp(56px, 8vw, 104px); line-height: 0.84; margin-bottom: 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 34ch; margin: 0; }
.practice { width: 100%; background: var(--card); border-radius: 18px; box-shadow: 0 5px 0 var(--key-edge); overflow: hidden; }
.round-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 10px 16px; }
#verdict { margin: 0; font: 400 22px/1.15 var(--px-num); }
#start { flex: none; cursor: pointer; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--mint); color: var(--on-mint); box-shadow: 0 3px 0 var(--mint-deep); font: 400 22px/1 var(--px-num); }
#start:disabled { opacity: 0.65; cursor: progress; }
.arena { position: relative; aspect-ratio: 8 / 7; overflow: hidden; background: var(--tint); }
.arena iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#poster { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.noscript { margin: 0; padding: 12px 16px; }

/* each content section is a cream card on its ledge */
.band { background: var(--card); border-radius: 18px; box-shadow: 0 5px 0 var(--key-edge); padding: clamp(20px, 3.5vw, 36px); margin: 0 0 24px; }
.section-play { display: inline-flex; gap: 10px; margin-top: 8px; font: 400 24px/1 var(--px-num); color: var(--mint-deep); text-decoration: none; border-bottom: 2px solid; padding-bottom: 4px; }
.section-play:hover { color: var(--ink); }

.maker { display: grid; grid-template-columns: 1fr minmax(0, 300px); align-items: center; gap: clamp(20px, 4vw, 56px); }
.maker p { max-width: 46ch; }
.maker-shot { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 5px 0 var(--key-edge); }

.steps { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 14px; background: var(--tint); box-shadow: 0 4px 0 var(--key-edge); margin-bottom: 14px; }
.steps img.wide { object-fit: cover; object-position: 50% 50%; }
.steps h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.steps h3 span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--felt); color: #fff; font-size: 24px; }
.steps p { margin: 0; }

.tips ul { margin: 0 0 14px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 70ch; }
.more a { font-weight: 700; }
.faq h3 { font-size: 26px; margin: 18px 0 4px; }
.faq h3:first-of-type { margin-top: 4px; }
.faq p { max-width: 64ch; }

/* footer: the other DLE games */
.foot { padding: 20px 0 max(36px, env(safe-area-inset-bottom)); border-top: 2px solid var(--line); margin-top: 32px; }
.foot h2 { font-size: 32px; margin-bottom: 14px; }
.games { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.games a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--card); box-shadow: 0 3px 0 var(--key-edge); font: 400 22px/1 var(--px-num); text-decoration: none; }
.games img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.hub { font-weight: 700; }
.fine { color: var(--ink-2); font-size: 15px; margin: 0; }

/* phones: the sticky play bar (the page is padded by its height, so it never covers content) */
.play-bar { display: none; }
@media (max-width: 760px) {
  :root { --bar-h: calc(78px + env(safe-area-inset-bottom)); }
  .brand { flex-direction: column; align-items: flex-start; gap: 0; }
  .wm img { height: 32px; }
  .by { font-size: 16px; }
  .top .btn-sm { min-height: 40px; padding: 0 12px; font-size: 19px; }
  .hero { grid-template-columns: 1fr; padding: 12px 0 32px; gap: 22px; }
  .lede { max-width: none; }
  .maker { grid-template-columns: 1fr; }
  .maker-shot { max-width: 300px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .play-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sand); border-top: 2px solid var(--line); }
  .play-bar .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, #start, .games a { transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .games a:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--key-edge); }
  html { scroll-behavior: smooth; }
}
