/* Putt It in Words: page CSS for what sits inside the visuals. Tokens come from assets/system.css. */

/* The game's own colours, for the tiles and the scorecard (Game/Assets/Scripts/CourseUI.cs). */
:root {
  --g-cobalt: #1738ef; --g-cyan: #00d9fa; --g-tangerine: #ff8500; --g-gold: #ffc328;
  --g-mint: #c9f3db; --g-green: #09675e; --g-ink: #101b3c;
}

.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__icon { width: 32px; height: 32px; border-radius: 9px; }

/* The hero stage: the course panorama runs edge to edge. */
.hero--product .hero__stage img { object-position: var(--ly-pos, 30% 60%); }

/* ------------------------------------------------------------ how a hole plays */
.moves { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.moves li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
.moves__name { font-family: var(--font-display); font-size: 1.375rem; }
.moves__eg { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--muted); letter-spacing: .02em; }

/* The scorecard that plays COLD to WARM: the game's card, tiles and counters in HTML. */
.putt {
  position: relative; margin: 0; padding: clamp(20px, 3vw, 36px);
  border-radius: 28px; background: var(--g-cobalt); color: #fff;
  box-shadow: 0 2px 0 #0d22a8, 0 24px 48px -24px rgb(16 27 60 / .55);
}
.putt__head {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: end; gap: var(--s-4);
  padding: var(--s-5); border-radius: 20px; background: #fff; color: var(--g-ink);
}
.putt__label { display: block; font-size: .8125rem; letter-spacing: .06em; color: #4a5578; margin-bottom: 4px; }
.putt__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.putt__arrow { font-size: 1.5rem; color: var(--g-green); padding-bottom: 6px; }
.putt__par { text-align: center; padding: 8px 16px; border-radius: 14px; background: var(--g-cobalt); color: #fff; }
.putt__par .putt__label { color: #dce3ff; }
.putt__num { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; }
.putt__tiles { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 16px); margin: clamp(24px, 4vw, 44px) 0; }
.putt__tiles span {
  display: grid; place-items: center; width: clamp(56px, 8vw, 92px); aspect-ratio: 1;
  border-radius: 18px; background: #fff; color: var(--g-ink);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem);
  box-shadow: 0 6px 0 #c2c9e3; transition: background-color .25s, transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.putt__tiles span.is-new { background: var(--g-cyan); box-shadow: 0 6px 0 #00a1c0; transform: translateY(-6px); }
.putt__tiles span.is-pin { background: var(--g-mint); box-shadow: 0 6px 0 #8fd1ad; }
.putt__foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-top: var(--s-4); border-top: 2px solid rgb(255 255 255 / .25); font-size: 1.125rem;
}
.putt__stroke b { font-family: var(--font-display); font-size: 1.75rem; margin-left: 6px; }
.putt__result { font-family: var(--font-display); font-size: 1.5rem; }
.putt__result.is-birdie { color: var(--g-gold); }
.putt .putt__pause { right: 16px; top: 16px; bottom: auto; }

/* ------------------------------------------------------------------ today */
.today { display: block; }
.today__card {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-4) var(--s-6);
  padding: clamp(24px, 4vw, 40px); border-radius: 28px;
  background: var(--p-surface); box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgb(16 27 60 / .45);
}
.today__meta { grid-column: 1 / 3; display: flex; gap: var(--s-4); margin: 0; color: var(--muted); font-size: 1rem; }
.today__meta span + span::before { content: "·"; margin-right: var(--s-4); }
.today__words { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); flex-wrap: wrap; }
.today__word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(2.25rem, 7vw, 5.5rem); line-height: 1; color: var(--g-ink);
}
.today__word--pin { color: var(--g-green); }
.today__arrow { font-size: clamp(1.5rem, 4vw, 3rem); color: var(--g-tangerine); }
.today__par { margin: 0; font-size: 1.25rem; }
.today__par b { font-family: var(--font-display); font-size: 1.75rem; }
.today__past .mo-mq__track li { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: .03em; }
.today__past .t-label { margin-bottom: var(--s-3); }

/* ------------------------------------------------------------- screenshots */
.phone {
  aspect-ratio: 720 / 680; overflow: hidden; border-radius: 30px; background: var(--g-ink);
  border: 6px solid var(--g-ink); margin-bottom: var(--s-5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 24px; transition: transform .5s; }
.card:hover .phone img { transform: scale(1.025); }
.shots .card h3 { margin-bottom: var(--s-2); }

/* ------------------------------------------------------------------ stores */
.stores { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 14px;
  border-radius: var(--r-btn, 0); background: var(--p-action); color: var(--p-action-ink); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(16 27 60 / .6); }
a.store:active { transform: translateY(0); }
.store span { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.05; }
.store small { font-family: var(--font-text); font-size: .6875rem; letter-spacing: .02em; opacity: .85; }
.store__mark { width: 22px; height: 22px; flex: none; }
.store--soon { background: transparent; color: var(--ink); border: 1.5px dashed color-mix(in oklab, var(--ink) 40%, transparent); }
.get__art { aspect-ratio: 1; border-radius: 28px; }

@media (max-width: 639px) {
  .putt__head { grid-template-columns: 1fr auto 1fr; padding: var(--s-4); }
  .putt__par { grid-column: 1 / -1; display: flex; justify-content: center; align-items: baseline; gap: 10px; }
  .putt__par .putt__label { margin: 0; }
  .moves li { flex-direction: column; gap: 2px; }
  .store { flex: 1 1 100%; }
}

/* The strokes so far, as on the game's scorecard. */
.putt__rows { list-style: none; margin: 0 0 var(--s-5); padding: 0; border-radius: 16px; background: #fff; color: var(--g-ink); overflow: hidden; }
.putt__rows li {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: var(--s-3);
  padding: 8px var(--s-5); border-top: 1px solid #dce3ff; opacity: .28; transition: opacity .3s, background-color .3s;
}
.putt__rows li:first-child { border-top: 0; }
.putt__rows li.is-on { opacity: 1; }
.putt__rows li.is-last { background: #c9f3db; }
.putt__rows b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.putt__rows span { color: #4a5578; }
.putt__tiles { margin: clamp(20px, 3vw, 32px) 0; }

/* Two questions under the download heading. */
.faq-mini { margin: 0; display: grid; gap: var(--s-4); }
.faq-mini dt { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
.faq-mini dd { margin: 2px 0 0; }

/* ------------------------------------------------- share-link landing pages */
.landing { min-height: 100dvh; background: var(--p-bg); }
.landing__main { width: min(100% - 32px, 560px); margin: 0 auto; padding: 24px 0 40px; display: grid; gap: 20px; }
.landing__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--p-ink); text-decoration: none; }
.landing__card { border-radius: 28px; overflow: hidden; background: var(--p-surface); box-shadow: 0 30px 60px -36px rgb(16 27 60 / .45); }
.landing__art { aspect-ratio: 16 / 7; overflow: hidden; }
.landing__art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.landing__body { padding: clamp(20px, 5vw, 32px); }
.landing__h { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.05; margin: 0; }
.landing__meta { margin: 0; color: var(--p-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.landing__meta span:empty { display: none; }
.landing__code { font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; color: var(--g-green); }
.landing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing__actions .btn { width: 100%; }
.landing__foot { text-align: center; color: var(--p-muted); font-size: .9375rem; }
.landing__foot a { color: inherit; }
[hidden] { display: none !important; }

/* The hero picture: a portrait crop on a phone, the panorama elsewhere. */
.hero__stage > picture { display: contents; }
@media (max-width: 639px) { .hero--product .hero__stage { aspect-ratio: 4 / 3; } }

@media (max-width: 639px) {
  .putt__num, .putt__stroke b { font-size: 1.75rem; }
  .today__card { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .nav__icon { display: none; }
  .nav__logo { font-size: 1rem; }
  .nav__actions .btn { padding-inline: 12px; }
}

/* Today's hole card: the words on the left, the golfer at the right edge. */
.today__card { position: relative; grid-template-columns: 1fr auto auto; }
.today__golfer { grid-row: 1 / span 2; grid-column: 3; align-self: end; width: clamp(96px, 12vw, 170px); height: auto; margin: -24px 0 -8px; }
@media (max-width: 639px) { .today__card { grid-template-columns: 1fr auto; } .today__golfer { grid-row: auto; grid-column: 2; width: 84px; margin: 0; } }
@media (max-width: 639px) { .today__meta, .today__words { grid-column: 1 / -1; } .today__par { align-self: center; } }
.today__past { margin-top: var(--s-6); }
