/* "Your day" (screens/day.js): the round's path, lies and shot lengths, on satellite photos. */
.day-course { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.day-course b { display: block; font: 500 19px/1.2 var(--serif, Georgia); }
.day-course span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2, #8fa396); }

/* the three headline numbers: big serif figures, a brass hairline above each */
.day-tiles { margin-top: 0; gap: 0; }
.day-tiles .cell { padding: 14px 0 6px; border-top: 1px solid #C9A14A66; }
.day-tiles .cell { padding-right: 8px; }
.day-tiles .v { font-size: 36px; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.day-tiles .v small { font-size: .42em; margin-left: 3px; opacity: .7; letter-spacing: 0; }
.day-tiles .l { margin-top: 5px; font-size: 11px; letter-spacing: .08em; line-height: 1.3; }
.day-note { margin: 14px 0 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2, #8fa396); }
.day-empty { margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--line, rgba(255,255,255,.14)); }
.day-empty h3 { margin: 0 0 6px; }
.day-empty p { margin: 0; line-height: 1.45; }

.day-list { margin-top: 12px; }
.day-hole { border-top: 1px solid rgba(255, 255, 255, .09); }
.day-hole:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.day-hole summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto 18px; align-items: baseline; column-gap: 12px; min-height: 56px; padding: 15px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.day-hole summary::-webkit-details-marker { display: none; }
.day-hole summary b { font: 500 19px/1.2 var(--serif, Georgia); }
.day-hole .day-par { font-size: 14px; color: var(--ink-2, #8fa396); }
.day-hole .day-head { font-size: 16px; justify-self: end; text-align: right; color: #F3EEE2; }
.day-hole .chev { width: 16px; height: 16px; align-self: center; opacity: .55; transition: transform 220ms cubic-bezier(.16, 1, .3, 1); }
.day-hole[open] .chev { transform: rotate(90deg); }
.day-hole summary:focus-visible { outline: 2px solid #C9A14A; outline-offset: 2px; border-radius: 6px; }

/* the satellite card: a rounded photo with a soft edge-light, a small hole chip, and the path and shot lengths drawn on it */
.day-mapwrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.day-mapwrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 18, 12, .5), rgba(8, 18, 12, 0) 26%, rgba(8, 18, 12, 0) 72%, rgba(8, 18, 12, .45)); }
.day-map { display: block; width: 100%; height: 300px; background: #1b2c20; }
.day-chip { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(9, 18, 13, .78); color: #fff; font: 600 14px/1 var(--sans, system-ui); }
.day-chip i { font-style: normal; font-weight: 500; font-size: 13px; color: #C9D3C8; }
.day-best { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 7px 12px; border-radius: 999px; background: #F2C230; color: #1E1A08; font: 800 12px/1 var(--sans, system-ui); letter-spacing: .08em; text-transform: uppercase; }

.day-shots { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; }
.day-shots li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 46px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 16px; }
.day-shots li:first-child { border-top: 0; }
.day-shots .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F2C230; color: #1E1A08; font: 800 13px/1 system-ui, sans-serif; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.day-shots .k { color: #C9D3C8; }
.day-shots b { font: 500 22px/1 var(--serif, Georgia); }
.day-none { margin: 12px 0 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2, #8fa396); }
.day-end { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: no-preference) {
  .day-tiles .cell, .day-hole { animation: day-in 520ms cubic-bezier(.16, 1, .3, 1) both; }
  .day-tiles .cell:nth-child(2) { animation-delay: 60ms; } .day-tiles .cell:nth-child(3) { animation-delay: 120ms; }
  .day-hole:nth-child(1) { animation-delay: 160ms; } .day-hole:nth-child(2) { animation-delay: 200ms; } .day-hole:nth-child(3) { animation-delay: 240ms; }
}
@keyframes day-in { from { transform: translateY(10px); opacity: .001; } }
