.hero .wallpaper-share{
 position:absolute;top:calc(22px + env(safe-area-inset-top));right:calc(var(--section-menu-width,44px) + 26px);z-index:4;
 display:grid;justify-items:center;height:var(--share-control-size);padding:12px;border:0;border-radius:12px;
 background:rgba(9,35,50,.18);color:#f5f7f9;text-shadow:0 1px 3px #06192580
}
.wallpaper-share svg{display:block;width:19px;height:19px;opacity:.85}
.wallpaper-share:disabled{opacity:.45;cursor:wait}
.wallpaper-share:focus-visible{outline:3px solid #fff;outline-offset:3px}
.wallpaper-share-dialog{max-width:calc(100vw - 32px);width:340px;border:1px solid #ddd;border-radius:20px;padding:20px;color:var(--brand-ink);background:var(--brand-background)}
.wallpaper-share-dialog::backdrop{background:#06192580}.wallpaper-share-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.wallpaper-share-dialog h2{font-size:18px;margin:0}.wallpaper-share-dialog button{min-width:44px;min-height:44px;border:0;border-radius:10px;background:var(--brand-control);color:inherit;font-size:24px}.wallpaper-share-dialog a{display:block;padding:13px;border-radius:12px;text-align:center;background:var(--brand-action);color:#fff;font-weight:700;text-decoration:none}.wallpaper-share-dialog p{font-size:14px}

@media(min-width:601px){.hero .wallpaper-share{right:max(calc(var(--section-menu-width,44px) + 26px),calc((100vw - 690px)/2 + var(--section-menu-width,44px) + 30px))}}

/* Keep the first phone screen focused on the court and weather summaries. */
@media(max-width:600px){
 .hero.hero{height:calc(350px + env(safe-area-inset-top));min-height:calc(350px + env(safe-area-inset-top));padding:calc(22px + env(safe-area-inset-top)) 20px 20px}
 .hero.hero.has-tournament-banner{height:calc(400px + env(safe-area-inset-top));min-height:calc(400px + env(safe-area-inset-top))}
 .hero .loc{font-size:22px;line-height:1.2;max-width:calc(100% - 100px)}
 .hero .sub{font-size:12px;margin-top:4px}
 .hero-next-booking{margin:22px 0 12px;gap:7px;max-width:56%}
 .hero-booking-label{font-size:10px;margin-bottom:2px}
 .hero-booking-date{font-size:21px}
 .hero-booking-time{font-size:19px}
 .hero-booking-place{font-size:14px}
 .hero-booking-attendance{font-size:12px;min-height:36px}
 .hero .tournament-banner{min-height:50px;padding:8px 12px;margin-bottom:10px}
 .location-panel{padding:12px 14px;margin-bottom:10px}
 .location-title{font-size:13px;margin-bottom:8px}
 .location-options{flex-wrap:nowrap;gap:6px}
 .location-options button{min-width:0;min-height:44px;padding:8px 6px;font-size:12px;white-space:nowrap}
 .cards{gap:10px}
 .cards .card{padding:14px 13px;border-radius:20px}
 .cards .cardhead{font-size:13px;gap:5px}
 .cards .cardhead>span:last-child{min-height:36px;line-height:18px}
 .cards .metric{font-size:38px;margin:8px 0 4px}
 .cards .status{font-size:12px;margin:5px 0}
 .cards .muted{font-size:11px;line-height:1.35}
}

.wallpaper-share-dialog .wallpaper-share-home{display:inline;padding:0;border-radius:0;background:none;color:var(--brand-action);font-weight:600;text-decoration:underline}

/* Desktop: keep the summaries close to the weather panel, with a stable artwork frame. */
@media(min-width:601px){
 .hero.hero{display:flex;flex-direction:column;align-items:flex-start;height:calc(440px + env(safe-area-inset-top));min-height:calc(440px + env(safe-area-inset-top));padding-bottom:28px}
 .hero.hero.has-tournament-banner{height:calc(500px + env(safe-area-inset-top));min-height:calc(500px + env(safe-area-inset-top))}
 .hero .hero-next-booking{flex:none;margin-top:24px;margin-bottom:14px}
}
