/* Courtly landing: a local game-first identity in the existing green palette. */
.landing-courtly{--landing-lime:#d6f082;--landing-ink:#edf9ee;--landing-muted:#aac6b7;background:#061b1a;color:var(--landing-ink);overflow:clip}
.landing-courtly .courtly-hero{min-height:0;background:radial-gradient(ellipse at 80% 20%,#185d3f60,transparent 55%),#061b1a;padding-bottom:0;isolation:isolate}
.landing-courtly .courtly-hero .hero-photo,.landing-courtly .courtly-hero .hero-shade,.landing-courtly .hero-side-label,.landing-courtly .scroll-pickleball{display:none}
.landing-courtly .courtly-hero::after{background:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:70px 70px;animation:none;z-index:-1}
.landing-courtly .hero-content{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:48px;padding-top:70px;padding-bottom:60px;align-items:center;position:relative}
.landing-courtly .hero-intro{min-width:0}
.landing-courtly .hero-eyebrow{color:#d6f082;font-size:10px;letter-spacing:2px;margin-bottom:24px}
.landing-courtly .hero h1{font-size:clamp(48px,5.4vw,78px);letter-spacing:-3.8px;line-height:1.02;color:#edf9ee;margin:0 0 26px;font-weight:750}
.landing-courtly .hero h1 em{font-family:Georgia,serif;font-weight:400;color:#d6f082}
.landing-courtly .hero-intro>p{font-size:16px;color:#aac6b7;line-height:1.8;margin:0 0 28px;max-width:500px}
.landing-courtly .hero-search{display:flex;gap:12px;background:#102f29;border:1px solid #487961;border-radius:16px;padding:12px;margin:0;max-width:none;align-items:center}
.landing-courtly .search-field{display:flex;flex:1;min-width:0;gap:10px;padding:0 8px}
.landing-courtly .search-field>div{min-width:0;flex:1}
.landing-courtly .search-field label{font-size:8px;color:#aac6b7;letter-spacing:1px;display:block}
.landing-courtly .search-field input{width:100%;padding:4px 0;border:0;background:transparent;color:#edf9ee;font-size:14px;outline-offset:2px}
.landing-courtly .hero-search .btn{background:#d6f082;border-color:#d6f082;color:#143827;padding:14px 16px;font-size:13px;flex-shrink:0}
.landing-courtly .popular{font-size:11px;display:flex;flex-wrap:wrap;gap:10px;color:#aac6b7;margin-top:17px}
.landing-courtly .popular a{color:#edf9ee;border-bottom:1px solid #487961}
.landing-courtly .hero-join{display:block;color:#aac6b7;font-size:12px;margin-top:25px;line-height:1.8}
.landing-courtly .hero-join strong{display:inline-flex;gap:8px;align-items:center;color:#d6f082;font-weight:600}
.landing-courtly .hero-join .icon{width:17px;height:17px}
.landing-courtly .hero-bottom{position:relative;bottom:auto;padding-top:20px;padding-bottom:22px;border-top:1px solid #396752;color:#aac6b7;font-size:9px;letter-spacing:1.2px}
.landing-courtly .rally-scene{position:relative;min-height:550px;border:1px solid #396752;border-radius:30px;background:radial-gradient(ellipse at 50% 40%,#21634770,transparent 65%),linear-gradient(145deg,#12392e,#082420);overflow:hidden;isolation:isolate}
.landing-courtly .scene-top{position:absolute;top:26px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:8px;letter-spacing:1.3px;color:#aac6b7}
.landing-courtly .scene-top i,.landing-courtly .scene-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d6f082;margin-right:7px}
.landing-courtly .scene-orbit{position:absolute;left:12%;top:15%;width:76%;height:68%;border:1px dashed #70965b55;border-radius:50%;transform:rotate(-25deg)}
.landing-courtly .scene-court{position:absolute;width:230px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-19deg);filter:drop-shadow(18px 25px 0 #02141180)}
.landing-courtly .scene-court svg{display:block;width:100%;height:auto}
.landing-courtly .scene-ball{position:absolute;right:20%;top:30%;width:68px;height:68px;display:grid;place-items:center;background:#d6f082;color:#173b2e;border-radius:50%;box-shadow:0 18px 35px #0005;animation:rally-float 5s ease-in-out infinite}
.landing-courtly .scene-ball .icon{width:46px;height:46px}
.landing-courtly .scene-note{position:absolute;display:flex;gap:12px;align-items:center;background:#0b2723ed;border:1px solid #527d60;box-shadow:0 12px 28px #0003;padding:15px 18px;border-radius:16px;max-width:calc(100% - 44px)}
.landing-courtly .scene-note small{display:block;font-size:8px;letter-spacing:1.1px;color:#d6f082;margin-bottom:4px}
.landing-courtly .scene-note strong{font-size:12px;font-weight:550;display:block;color:#edf9ee}
.landing-courtly .scene-group{left:22px;top:105px;transform:rotate(-3deg)}
.landing-courtly .scene-score{right:22px;bottom:108px;transform:rotate(3deg)}
.landing-courtly .scene-note .icon{color:#d6f082;width:24px;height:24px}
.landing-courtly .scene-bottom{position:absolute;bottom:25px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.landing-courtly .scene-bottom>span{font-size:8px;letter-spacing:1.2px;color:#aac6b7}
.landing-courtly .scene-bottom strong{font-size:24px;letter-spacing:-1.5px;color:#edf9ee}
.landing-courtly .scene-bottom strong span{color:#d6f082}
.landing-courtly .courtly-stats{background:#0a2621;border-block:1px solid #396752}
.landing-courtly .stat-item strong{color:#edf9ee}
.landing-courtly .stat-item div>span{color:#aac6b7}
.landing-courtly .stat-icon{background:#183f30;color:#d6f082}
.landing-courtly .section-heading h2{color:#edf9ee;letter-spacing:-1.8px;font-size:clamp(32px,3.6vw,48px);line-height:1.15}
.landing-courtly .section-heading>p{color:#aac6b7}
.landing-courtly .connected-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:20px}
.landing-courtly .connected-card{min-width:0;display:flex;flex-direction:column;border:1px solid #396752;border-radius:24px;padding:30px;background:#102f29;position:relative;overflow:hidden}
.landing-courtly .connected-main{background:radial-gradient(ellipse at 0 0,#31713e66,transparent 75%),#102f29}
.landing-courtly .feature-number{font-size:9px;letter-spacing:1.5px;color:#aac6b7}
.landing-courtly .connected-card h3{font-size:27px;line-height:1.15;letter-spacing:-.8px;color:#edf9ee;margin:0 0 18px}
.landing-courtly .connected-card p{font-size:13px;line-height:1.85;color:#aac6b7;margin:0 0 28px}
.landing-courtly .connected-card .text-link{margin-top:auto;color:#d6f082;font-size:12px;align-self:flex-start}
.landing-courtly .group-symbol{display:flex;margin:36px 0 28px;padding-left:5px;min-height:48px;align-items:center}
.landing-courtly .group-symbol span{width:43px;height:43px;display:grid;place-items:center;border:3px solid #102f29;border-radius:50%;background:#285a43;color:#edf9ee;margin-left:-5px;font-size:13px;font-weight:650}
.landing-courtly .group-symbol span:nth-child(even){background:#d6f082;color:#173b2e}
.landing-courtly .feature-icon,.landing-courtly .rank-symbol{margin:36px 0 28px;min-height:48px;display:flex;align-items:center;color:#d6f082}
.landing-courtly .feature-icon .icon{width:46px;height:46px}
.landing-courtly .rank-symbol{font-size:40px;gap:14px;line-height:1}
.landing-courtly .rank-symbol span{font-size:34px;color:#aac6b7}
.landing-courtly .city-tone-1{background:#244e41}.landing-courtly .city-tone-2{background:#35583b}.landing-courtly .city-tone-3{background:#28483a}
.landing-courtly .owner-invitation{background:radial-gradient(ellipse at 100% 0,#4b733b66,transparent 60%),#102f29;border-radius:24px;padding:40px}
.landing-courtly .play-cta{border-radius:28px;background:radial-gradient(ellipse at 80% 50%,#40793466,transparent 65%),#103d2c;border:1px solid #487961}
@keyframes rally-float{50%{transform:translate(-10px,14px) rotate(12deg)}}
@media(min-width:1600px){.landing-courtly .hero-content{max-width:1320px}}
@media(max-width:1000px){.landing-courtly .hero-content{gap:28px}.landing-courtly .hero h1{font-size:56px}.landing-courtly .rally-scene{min-height:510px}.landing-courtly .scene-note{padding:12px}.landing-courtly .scene-note strong{font-size:11px}.landing-courtly .connected-card{padding:24px}.landing-courtly .connected-card h3{font-size:24px}.landing-courtly .hero-search{flex-wrap:wrap}.landing-courtly .hero-search .search-field{flex-basis:100%}.landing-courtly .hero-search .btn{width:100%}}
@media(max-width:767px){.landing-courtly .hero-content{grid-template-columns:1fr;padding-top:40px;padding-bottom:35px;gap:32px}.landing-courtly .hero h1{font-size:clamp(46px,10vw,66px);letter-spacing:-2.3px}.landing-courtly .hero-intro>p{font-size:14px}.landing-courtly .hero-search{padding:12px}.landing-courtly .search-field input{font-size:16px}.landing-courtly .rally-scene{min-height:425px;border-radius:24px}.landing-courtly .scene-court{width:185px}.landing-courtly .scene-group{top:75px;left:16px}.landing-courtly .scene-score{bottom:82px;right:16px}.landing-courtly .scene-top{left:20px;right:20px;top:20px;font-size:7px}.landing-courtly .scene-bottom{left:20px;right:20px;bottom:20px}.landing-courtly .scene-ball{width:54px;height:54px;right:18%;top:34%}.landing-courtly .scene-ball .icon{width:36px;height:36px}.landing-courtly .hero-bottom{font-size:8px}.landing-courtly .connected-grid{grid-template-columns:1fr}.landing-courtly .connected-card{padding:28px}.landing-courtly .connected-card h3{font-size:29px}.landing-courtly .group-symbol,.landing-courtly .feature-icon,.landing-courtly .rank-symbol{margin:26px 0 22px}.landing-courtly .owner-invitation{padding:26px}}
@media(prefers-reduced-motion:reduce){.landing-courtly .scene-ball{animation:none}.landing-courtly .hero-search{transition:none}}

@media(max-width:767px){.landing-courtly .hero-join{min-height:44px;padding-block:8px}.landing-courtly .popular a{display:inline-flex;align-items:center;min-height:44px}.landing-courtly .scene-note{max-width:calc(100% - 32px)}.landing-courtly .scene-note strong{overflow-wrap:anywhere}.landing-courtly .owner-invitation .btn{width:100%;white-space:normal}.landing-courtly .hero-eyebrow{line-height:1.8}.landing-courtly .scene-bottom>span{max-width:150px;line-height:1.8}}
@media(max-width:380px){.landing-courtly .container{padding-left:20px;padding-right:20px}.landing-courtly .hero h1{font-size:44px}.landing-courtly .rally-scene{min-height:390px}.landing-courtly .scene-top{letter-spacing:.7px}.landing-courtly .scene-note{padding:11px;gap:8px}.landing-courtly .scene-note strong{font-size:10px}.landing-courtly .scene-bottom>span{font-size:7px}.landing-courtly .connected-card{padding:24px}}

/* A single search surface: override the shared public input background. */
body .landing-courtly .hero-search .search-field input{background:transparent;border:0;border-radius:0;box-shadow:none;color:#edf9ee;appearance:none;-webkit-appearance:none;min-width:0}
body .landing-courtly .hero-search .search-field input:focus{background:transparent;box-shadow:none;outline:none}
body .landing-courtly .hero-search:focus-within{border-color:#d6f082;box-shadow:0 0 0 3px #d6f08226}
body .landing-courtly .hero-search .search-field input::placeholder{color:#aac6b7;opacity:1}
body .landing-courtly .hero-search .search-field input:-webkit-autofill{-webkit-text-fill-color:#edf9ee;box-shadow:0 0 0 1000px #102f29 inset}

/* Interactive pickleball: the marker retains its place in the hero court. */
.landing-courtly .scene-ball-home{position:absolute;right:20%;top:30%;width:68px;height:68px;pointer-events:none}
.landing-courtly .scene-ball,body .courtly-pickleball{width:68px;height:68px;padding:0;border:0;background:transparent;box-shadow:none;animation:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;border-radius:50%;filter:drop-shadow(0 12px 10px #0005)}
body .courtly-pickleball img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
body .courtly-pickleball.is-interactive{position:fixed;top:0;left:0;right:auto;z-index:12;will-change:transform;display:block}
body .courtly-pickleball.is-dragging{cursor:grabbing;filter:drop-shadow(0 18px 13px #0006)}
body .courtly-pickleball:focus-visible{outline:3px solid #d6f082;outline-offset:5px}
@media(max-width:767px){.landing-courtly .scene-ball-home{right:18%;top:34%;width:54px;height:54px}body .courtly-pickleball,.landing-courtly .scene-ball{width:54px;height:54px}}

/* Bounce uses individual translate/scale so scroll and drag rotation stay independent. */
body .courtly-pickleball img{animation:courtly-ball-bounce 2s infinite;transform-origin:50% 75%;will-change:transform,translate}
body .courtly-pickleball:is(.is-dragging,.is-paused) img{animation-play-state:paused}
@keyframes courtly-ball-bounce{0%,100%{translate:0 0;scale:1;animation-timing-function:ease-out}12%{translate:0 2px;scale:1.04 .95;animation-timing-function:ease-out}45%{translate:0 -12px;scale:1;animation-timing-function:ease-in}76%{translate:0 0;scale:1.04 .96;animation-timing-function:ease-out}86%{translate:0 -3px;scale:1;animation-timing-function:ease-in}}
@media(prefers-reduced-motion:reduce){body .courtly-pickleball img{animation:none;will-change:auto}}
