/* The illustrated landscape sits behind the interactive province outlines. */
.hero{position:relative;isolation:isolate;overflow:hidden;background:#98bfd0 url("vuon-sach-nhin-xa.jpg") center/cover no-repeat;padding-block:40px}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff5eddb 0%,#fff4ea7c 19%,transparent 38%,transparent 68%,#fff7eb38 100%)}
.intro h1{text-shadow:0 2px 16px #fff5e5}
.intro p{color:#462739;font-weight:600;text-shadow:0 1px 8px #fff7eb}
.stage svg{overflow:hidden}
#map-note{display:inline-block;background:#fffbf1ed;color:#543e48;border-radius:20px;padding:5px 12px}
.land{stroke:#f7e0a5;stroke-width:1;filter:none;transition:fill .18s}
.land.district{cursor:pointer}
.land.district:hover,.land.district.active{fill:#edba94}
.terrain-depth{fill:#759273;stroke:#617d6d;stroke-width:2;pointer-events:none}
#land-depth{filter:drop-shadow(0 4px 4px #173a5b85)}
.marker circle{fill:#fff7ec;stroke:#e6b991;stroke-width:.7}
.marker.active circle,.marker:focus circle{fill:#ffdbea;stroke:#9a3056;stroke-width:1.5}
.marker use{pointer-events:none}
#world>text{paint-order:stroke;stroke:#f5f6ef;stroke-width:2.5px;stroke-linejoin:round}
.library-art{display:block;width:100%;height:240px;object-fit:cover;object-position:15% 55%;background:#f5d9dc}
.petals{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:-1}
.petal{position:absolute;top:-20px;left:var(--x);width:12px;height:8px;border-radius:80% 30% 75% 40%;background:linear-gradient(135deg,#ffe6ef,#e79bb4);opacity:.75;animation:petal-fall var(--duration) var(--delay) linear infinite}
@keyframes petal-fall{to{transform:translate(110px,82vh) rotate(360deg);opacity:0}}
@media(max-width:850px){.hero{background-position:46% center}.hero::before{background:linear-gradient(#fff5eedb 0%,#fff4ea55 29%,transparent 49%)}}
@media(prefers-reduced-motion:reduce){.petal{animation:none;display:none}.land{transition:none}}
header{gap:12px;padding:7px clamp(14px,4vw,62px);background:#fffbf8f7}
.brand{white-space:nowrap}.brand span{font-style:normal;font-size:.65em}.brand small{margin-left:4.3em}
nav{justify-content:center;gap:4px;flex:1}
nav a,nav button{display:grid;justify-items:center;gap:2px;padding:6px 10px;color:#4b2235;border:0;background:none;border-radius:13px;white-space:nowrap;text-decoration:none;font:600 clamp(11px,1vw,15px)/1.35 system-ui}
nav b{font:700 26px/1 Georgia;color:#952b51}
nav .current,nav a:hover,nav button:hover{background:#ffe3ec}
.header-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}
.header-actions>a:not(.button){font-size:26px;text-decoration:none}
.header-actions .button{border:1px solid #f5b7cb;background:linear-gradient(#ec8fac,#b93562)}
.hero{min-height:calc(100vh - 75px);grid-template-columns:minmax(205px,.86fr) minmax(330px,2.15fr) minmax(220px,1fr);column-gap:20px;row-gap:12px;padding:20px clamp(14px,3vw,50px);align-items:start}
.hero::before{background:linear-gradient(90deg,#fff0edbf,transparent 29%)}
.intro{align-self:start;padding-top:clamp(18px,4vw,68px)}
.intro h1{font-size:clamp(31px,3.4vw,59px);color:#772044;text-shadow:0 2px 12px #fff0f4;letter-spacing:normal}
.intro .button,.selection .button{background:linear-gradient(#db5d8a,#ad2856);border:1px solid #fff0f4;box-shadow:0 5px 12px #6b22333b}
.stats{width:min(100%,255px);padding:8px 17px;margin-top:18px}
.stats div{display:flex;flex-direction:column-reverse;border-bottom:1px solid #ecd1d7;padding:5px 0}
.stats div:last-child{border:0}.stats dt{font-size:13px}.stats dd{margin:0;color:#6e203c;font-size:21px;font-weight:800;line-height:1.1}
.stage svg{height:clamp(460px,69vh,750px)}
aside{padding:0;background:none;box-shadow:none;border:none;display:grid;gap:12px;align-self:start}
.today,.chooser{background:#fffaf5f5;border:2px solid #fff5f7;border-radius:20px;padding:14px 17px;box-shadow:0 8px 23px #6340512c}
.today h2{font-size:19px;margin:0 0 5px}.today p{font-size:13px;margin:0 0 6px}
.quick-provinces{display:grid}.quick-provinces button{border:0;border-top:1px solid #efd9de;background:none;color:#512936;text-align:left;font-weight:700;padding:5px 2px}.quick-provinces button::before{content:"🏡";margin-right:8px}
.chooser{background:linear-gradient(120deg,#fff8f6f5,#ffedf1f2)}
#results{max-height:85px}.selection{padding-top:7px;margin-top:9px}.selection h2{font-size:21px}
.selection .tree{font-size:24px}.selection p{margin:3px 0}
.discover{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.discover a,.discover button{display:flex;align-items:center;text-align:left;gap:12px;padding:11px 13px;min-height:78px;border:2px solid #fff9f7;border-radius:18px;background:linear-gradient(135deg,#fffaf4f5,#ffe9e9f5);color:#4e2333;text-decoration:none;box-shadow:0 3px 10px #59334229}
.discover b{font-size:clamp(23px,3vw,45px)}.discover strong,.discover small{display:block;line-height:1.35}.discover small{margin-top:4px}
dialog{border:1px solid #f3c2d2;border-radius:20px;background:#fff8f3;color:#403a45;padding:24px;max-width:min(420px,92vw)}dialog::backdrop{background:#43223c80}
@media(max-width:1070px){header{flex-wrap:wrap}nav{order:3;flex-basis:100%}.header-actions{margin-left:auto}}
@media(max-width:850px){.hero{grid-template-columns:minmax(0,1.3fr) minmax(210px,1fr)}.intro{padding-top:6px}.intro h1 br{display:none}.stats{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.stats div{border:0}.discover{grid-template-columns:repeat(3,1fr)}}
@media(max-width:550px){header{display:flex}.brand{font-size:21px}.brand small{margin-left:2.5em}.header-actions>a:not(.button){display:none}nav{justify-content:start;overflow:auto;flex-wrap:nowrap}.hero{grid-template-columns:1fr}.stage svg{height:440px}.discover{grid-template-columns:repeat(2,1fr)}.stats dt{font-size:11px}}

/* Keep the map prominent over the conservatory artwork. */
.stage{padding-top:14px;z-index:1}
.stage svg{height:clamp(615px,89vh,975px)}
.land.district{stroke:#ffe5a2;stroke-width:1.25}
.land.district:hover,.land.district.active{fill:#da874e;stroke:#fff0ad}
.terrain-depth{fill:#254f43;stroke:#254f43;stroke-width:2.3}
#land-depth{filter:drop-shadow(0 3px 2px #122e40e6) drop-shadow(0 6px 6px #193d58a6)}
@media(min-width:851px){
 .hero{grid-template-columns:minmax(185px,1fr) minmax(0,2.65fr) minmax(205px,1fr);background-position:center}
}
@media(max-width:550px){
 .stage{padding-top:8px}
 .stage svg{height:525px}
}

.marker.blooming circle{fill:#ffb4d1;stroke:#a62959;stroke-width:2.5;filter:drop-shadow(0 0 3px #ffe0a5)}
.marker.blooming use{filter:brightness(1.12)}


.live-flowers{display:none;pointer-events:none}
.marker.blooming .live-flowers{display:block}
.live-flowers text{fill:#a7215c;paint-order:stroke;stroke:#fff5db;stroke-width:1.6px;font:700 9px system-ui}
.marker[data-bloom=few] .live-flowers text:nth-child(n+2),.marker[data-bloom=many] .live-flowers text:nth-child(3){display:none}


.marker.selected-bloom circle{fill:#ffb4d1;stroke:#a62959;stroke-width:2.1}
.marker.selected-bloom .live-flowers{display:block;animation:province-bloom .38s ease-out both}
.marker.selected-bloom:not(.blooming) .live-flowers text:nth-child(n+2){display:none}
@keyframes province-bloom{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.marker.selected-bloom .live-flowers{animation:none}}
