/* Padel and hiking sections. Everything is scoped to .sec or the [data-hero] stage. */
.sec h2 { margin: 2.75rem 0 1rem; font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; letter-spacing: -.015em; color: #1c1917; }
.sec h3 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.2; color: #1c1917; }
.sec a:not([class]) { color: #c2410c; text-decoration: underline; text-underline-offset: 2px; }
.sec .prose h2 { margin-top: 2.25rem; }
.sec p > a:only-child { display: inline-block; padding-block: .25rem; }
.sec .small { margin-top: .5rem; font-size: .875rem; color: #57534e; }
.sec .meta { font-size: .875rem; color: #57534e; }

.sec .cards { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
@media (min-width: 640px) { .sec .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sec .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec .card { position: relative; overflow: hidden; border: 1px solid #e7e5e4; border-radius: 1.5rem; background: #fff; padding: 1.25rem; transition: transform .18s, box-shadow .18s; }
.sec .card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgb(28 25 23 / .45); }
.sec .card:focus-within { outline: 3px solid #f59e0b; }
.sec .card h2, .sec .card h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.sec .card-link { color: #1c1917; text-decoration: none; }
.sec .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sec .card p { margin-top: .4rem; font-size: .875rem; }
.sec .court-card, .sec .route-card { display: flex; flex-direction: column; padding: 0; }
.sec .card .body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.25rem 1.25rem; }
.sec .card .transit { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-weight: 600; color: #9a3412; }
.sec .tag { display: inline-block; border-radius: 999px; background: #fff7ed; padding: .1rem .65rem; font-size: .75rem; font-weight: 700; color: #9a3412; }

.sec .art { position: relative; height: 7rem; }
.sec .court-card .art { --turf: #0e7490; border: 10px solid var(--turf); box-shadow: inset 0 0 0 2px #fff;
  background: linear-gradient(#fff 0 0) 50% 0 / 4px 100% no-repeat, linear-gradient(#fff 0 0) 18% 0 / 2px 100% no-repeat, linear-gradient(#fff 0 0) 82% 0 / 2px 100% no-repeat, linear-gradient(90deg, transparent 18%, #fff 18% 82%, transparent 82%) 0 50% / 100% 2px no-repeat, var(--turf); }
.sec .court-card[data-setting="indoor"] .art { --turf: #9a3412; }
.sec .court-card[data-setting="mixed"] .art { --turf: #c2410c; }
.sec .court-card[data-setting="unknown"] .art { --turf: #44403c; }
.sec .court-card .art-number, .sec .court-card .art-ball { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sec .art-number { display: flex; width: 3.5rem; height: 3.5rem; flex-direction: column; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #c2410c; font: 800 1.3rem/1 "Bricolage Grotesque", Inter, sans-serif; box-shadow: 0 5px 12px rgb(0 0 0 / .3); }
.sec .art-number small { font-size: .7rem; }
.sec .art-ball { width: 2.25rem; height: 2.25rem; border-radius: 999px; background: #e4ff2f; }
.sec .route-card .art { background: linear-gradient(#fff7ed, #fed7aa); }
.sec .route-card .art-number { position: absolute; right: .75rem; top: .75rem; }
.sec .art .profile { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec .art .area { fill: #3f6b45; }
.sec .art .ridge { fill: none; stroke: #1c1917; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sec .route-card[data-level="moderate"] .area { fill: #0e7490; }
.sec .route-card[data-level="hard"] .area { fill: #9a3412; }

.sec .guide-icon { width: 3rem; height: 3rem; margin-bottom: .75rem; border-radius: 1rem; background: #ffedd5; padding: .6rem; color: #c2410c; }
.sec .guide-card:nth-child(3n+2) .guide-icon { background: #cffafe; color: #0e7490; }
.sec .guide-card:nth-child(3n) .guide-icon { background: #fef3c7; color: #92400e; }

.sec .line { display: inline-block; border-radius: .375rem; background: #334155; padding: 0 .4rem; font-size: .75rem; font-weight: 700; line-height: 1.25rem; color: #fff; }
.sec .line[data-line="L1"] { background: #c8102e; }
.sec .line[data-line="L2"] { background: #7b2d8e; }
.sec .line[data-line="L3"] { background: #12702b; }
.sec .line[data-line="L4"] { background: #ffcd00; color: #1f1600; }
.sec .line[data-line="L5"] { background: #0057a3; }
.sec .line[data-line="L9S"], .sec .line[data-line="L10S"] { background: #a04a00; }
.sec .line[data-line^="T"] { background: #00704f; }
.sec .line[data-line^="R"] { background: #8a1c62; }

.sec .chips { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; list-style: none; }
.sec .chips a { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #fed7aa; border-radius: 999px; background: #fff; padding: .5rem 1rem; font-size: .875rem; font-weight: 700; color: #1c1917; text-decoration: none; }
.sec .chips a:hover { background: #ffedd5; }
.sec .count { border-radius: 999px; background: #fff7ed; padding: 0 .5rem; font-size: .75rem; color: #9a3412; }
.sec .slang { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.sec .slang details { border: 1px solid #fed7aa; border-radius: 1rem; background: #fff; }
.sec .slang summary { cursor: pointer; padding: .5rem 1rem; font: 800 1.05rem "Bricolage Grotesque", Inter, sans-serif; color: #1c1917; }
.sec .slang details[open] { background: #ffedd5; }
.sec .slang p { max-width: 15rem; padding: 0 1rem .75rem; font-size: .875rem; }

.sec .facts { display: grid; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .sec .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sec .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.sec .facts > div { border: 1px solid #e7e5e4; border-left: 8px solid #f97316; border-radius: 1rem; background: #fff; padding: .75rem 1rem; }
.sec .facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #57534e; }
.sec .facts dd a { display: inline-block; padding-block: .15rem; }
.sec .table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid #e7e5e4; border-radius: 1rem; background: #fff; }
.sec table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; font-size: .875rem; }
.sec caption { padding: .5rem .75rem; text-align: left; font-weight: 700; color: #1c1917; }
.sec th, .sec td { border-bottom: 1px solid #e7e5e4; padding: .5rem .75rem; text-align: left; vertical-align: top; }
.sec thead th { background: #fff7ed; }
.sec .sources ul { list-style: disc; padding-left: 1.5rem; font-size: .875rem; }
.sec .sources li { padding-block: .25rem; }

.sec .safety { margin-top: 1.5rem; border: 1px solid #fcd34d; border-left: 8px solid #d97706; border-radius: 1rem; background: #fffbeb; padding: .9rem 1.1rem; font-size: .9rem; color: #1c1917; }
.sec .safety h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.sec .safety ul { list-style: disc; padding-left: 1.2rem; }
.sec .safety li { margin-top: .2rem; }
.sec .safety a { color: #9a3412; text-decoration: underline; }
.sec .maps { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 820px) { .sec .maps { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.sec .maps figure { margin: 0; border: 1px solid #e7e5e4; border-radius: 1.25rem; background: #fff; padding: .75rem; }
.sec .maps figcaption { margin-top: .5rem; font-size: .8rem; color: #57534e; }
.sec .maps figcaption a { display: inline-block; padding-block: .25rem; }
.sec .route-map, .sec .maps .profile { display: block; width: 100%; height: auto; }
.sec .route-map { max-height: 26rem; }
.sec .route-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sec .route-map .line-casing { stroke: #fed7aa; stroke-width: 10; }
.sec .route-map .line-route { stroke: #c2410c; stroke-width: 3.5; }
.sec .route-map .pin-start { fill: #0e7490; stroke: #fff; stroke-width: 3; }
.sec .route-map .pin-end { fill: #1c1917; stroke: #fff; stroke-width: 3; }
.sec .route-map .scale { stroke: #1c1917; stroke-width: 2; }
.sec .route-map text { fill: #1c1917; font-size: 15px; }
.sec .maps .profile .area { fill: #ffedd5; }
.sec .maps .profile .ridge { fill: none; stroke: #c2410c; stroke-width: 3; }

.sec .video-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .sec .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec .video-facade, .sec .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: 1rem; background: #0c0a09; }
.sec .video-facade img { width: 100%; height: 100%; object-fit: cover; }
.sec .play { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; transform: translate(-50%, -50%); border-radius: 999px; background: #fff; }
.sec .play::after { content: ""; position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%); border-block: 11px solid transparent; border-left: 18px solid #1c1917; }
.sec .video-title { margin: .75rem 0 0; font-size: 1.2rem; }

/* 3D hero stage */
.stage { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 1.5rem; user-select: none; touch-action: pan-y; }
@media (min-width: 640px) { .stage { aspect-ratio: 1 / 1; } }
.stage canvas, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { cursor: grab; }
.stage[data-state="ready"] .poster { display: none; }
.stage .score { position: absolute; left: .5rem; top: .5rem; min-width: 11rem; overflow: hidden; border-radius: .75rem; background: rgb(28 25 23 / .85); font-size: .875rem; font-weight: 700; color: #fff; pointer-events: none; }
.stage .score-row { display: flex; align-items: center; gap: .5rem; padding: .25rem 0 .25rem .75rem; }
.stage .score-row::before { content: ""; width: .625rem; height: .625rem; border-radius: 999px; background: #f97316; }
.stage .score-row.cpu::before { background: #fbbf24; }
.stage .score-name { margin-right: auto; }
.stage .score-games { width: 1.25rem; text-align: center; color: #d6d3d1; }
.stage .score-points { min-width: 2.5rem; padding: .1rem .4rem; background: #fff; text-align: center; color: #9a3412; font-variant-numeric: tabular-nums; }
.stage .call { position: absolute; inset-inline: 0; top: 30%; text-align: center; font: 800 clamp(1.7rem, 5vw, 2.6rem)/1 "Bricolage Grotesque", Inter, sans-serif; color: #fff; text-shadow: 0 3px 0 #1c1917, 0 0 18px rgb(28 25 23 / .6); opacity: 0; pointer-events: none; }
.stage .call.show { animation: sec-pop 1.2s ease-out forwards; }
.stage .call.bad { color: #fed7aa; }
.stage .stage-hint { position: absolute; left: .5rem; bottom: .5rem; border-radius: 999px; background: rgb(28 25 23 / .85); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; color: #fff; pointer-events: none; }
.stage .stage-hint[hidden] { display: none; }
.stage .trail-slider { position: absolute; left: .75rem; right: .75rem; bottom: .5rem; height: 2rem; width: calc(100% - 1.5rem); accent-color: #fff; cursor: pointer; }
.stage .trail-slider ~ .stage-hint, .stage .trail-slider + * { z-index: 1; }
.stage[data-terrain] .stage-hint { bottom: 2.75rem; }
.stage .stage-btn { position: absolute; right: .5rem; top: .5rem; min-width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: rgb(28 25 23 / .85); padding: 0 .75rem; font-size: .875rem; font-weight: 700; color: #fff; cursor: pointer; }
.stage .stage-btn.big { left: 50%; right: auto; top: 50%; height: 3.5rem; transform: translateX(-50%); white-space: nowrap; background: #fff; padding: 0 1.5rem; font-size: 1.1rem; color: #9a3412; }
.stage .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes sec-pop { 0% { opacity: 0; transform: scale(.5); } 15% { opacity: 1; transform: scale(1.12); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .sec .card, .stage .call.show { transition: none; animation: none; } }
/* "Many more by car" tile at the end of the hiking route grid */
.sec .join-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 16rem; border: 0; background: linear-gradient(135deg, #9a3412, #c2410c 55%, #ea580c); text-align: center; }
.sec .join-card h3 { max-width: 15rem; margin: 0; font-size: 1.5rem; color: #fff; }
.sec .join-card .join-emoji { font-size: 2.5rem; }
.sec .join-card .join-btn { display: inline-block; border-radius: 999px; background: #fff; padding: .7rem 1.75rem; font-size: 1rem; font-weight: 700; color: #9a3412; }
/* Daily game: the stage is the main event, so it gets its own backing. */
.stage[data-mode="daily"] { max-width: 40rem; background: rgb(28 25 23 / .25); }
.stage[data-mode="daily"] .score-points { min-width: 4rem; letter-spacing: .05em; }
.stage[data-mode="daily"] .stage-btn[hidden] { display: none; }
/* Golf: a taller view on phones, a map of the hole, and the club, aim and power controls. */
.stage[data-course] { aspect-ratio: 2 / 3; }
@media (max-width: 639px) { .stage[data-course] .score { min-width: 9rem; font-size: .75rem; } .stage[data-course] .score-row { padding-block: .1rem; } }
@media (min-width: 640px) { .stage[data-course] { aspect-ratio: 1 / 1; } }
.stage[data-course][data-state="ready"] { background: #a9ddf7; }
.stage .golf-map { position: absolute; inset: 3.5rem .5rem auto auto; width: 4rem; height: 9.375rem; border: 2px solid #fff; border-radius: .6rem; cursor: default; pointer-events: none; }
.stage[data-state="poster"] .golf-map { display: none; }
.stage .golf-controls { position: absolute; inset: auto .5rem .5rem; display: grid; gap: .4rem; border-radius: 1rem; background: rgb(28 25 23 / .85); padding: .5rem; color: #fff; }
.stage .golf-controls[hidden] { display: none; }
.stage .golf-controls.busy { opacity: .45; }
.stage .golf-controls button { min-height: 2.5rem; border: 0; border-radius: .75rem; background: #fff; font-weight: 700; color: #1c1917; cursor: pointer; }
.stage .golf-clubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.stage .golf-clubs button { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .8rem; line-height: 1.15; }
.stage .golf-clubs small { font-size: .65rem; font-weight: 600; color: #57534e; }
.stage .golf-clubs button[aria-pressed="true"] { background: #c2410c; color: #fff; }
.stage .golf-clubs button[aria-pressed="true"] small { color: #fff; }
.stage .golf-aim { display: flex; align-items: center; gap: .4rem; }
.stage .golf-controls .golf-turn { width: 2.75rem; flex: none; touch-action: none; }
.stage .golf-power { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .15rem; text-align: center; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage .golf-reading { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage .golf-bar { position: relative; height: 1.1rem; overflow: hidden; border-radius: .5rem; background: #57534e; }
.stage .golf-bar i { position: absolute; top: 0; bottom: 0; left: 0; }
/* The colours stay put while the bar uncovers them. */
.stage .golf-fill { overflow: hidden; }
.stage .golf-fill::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 100vw; max-width: 100vw; background: linear-gradient(90deg, #a3e635, #facc15 8rem, #f97316 14rem, #e11d48 22rem); }
.stage .golf-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgb(255 255 255 / .6) calc(25% - 2px) 25%); }
.stage .golf-bar .golf-last { z-index: 1; width: 3px; margin-left: -3px; background: #fff; }
.stage .golf-bar .golf-last[hidden] { display: none; }
.stage .golf-scale { display: grid; grid-template-columns: repeat(4, 1fr); text-align: right; font-size: .625rem; font-weight: 600; color: #e7e5e4; }
.stage .golf-controls .golf-swing { min-height: 3rem; background: #f97316; font-size: 1.15rem; color: #1c1917; touch-action: manipulation; }
.stage .golf-controls .golf-swing.live { background: #fff27a; }
.stage[data-course] .call { top: 24%; font-size: clamp(1.4rem, 4vw, 2.1rem); }
#game-panel [hidden], #game-beat[hidden] { display: none; }
/* A phone held sideways: the whole game, with its controls, fits under the site header. */
.stage[data-mode="daily"] { scroll-margin-top: 4.25rem; }
@media (orientation: landscape) and (max-height: 500px) {
  .stage[data-mode="daily"] { aspect-ratio: auto; height: calc(100vh - 4.5rem); height: calc(100svh - 4.5rem); }
  .stage[data-course] .score { min-width: 8.5rem; font-size: .7rem; }
  .stage[data-course] .score-row { padding-block: .05rem; }
  .stage[data-course] .golf-map { height: 5rem; width: 2.15rem; }
  .stage[data-course] .golf-controls { gap: .25rem; padding: .35rem; }
  .stage[data-course] .golf-controls button { min-height: 2rem; }
  .stage[data-course] .golf-controls .golf-swing { min-height: 2.25rem; font-size: 1rem; }
  .stage[data-course] .golf-clubs small, .stage[data-course] .golf-scale { display: none; }
  .stage[data-course] .golf-bar { height: .9rem; }
}
