/* 成长之山。白天是日出，夜间是星空 */
.ivy .hill-wrap{overflow:hidden;border-radius:18px;box-shadow:0 18px 36px -20px rgba(120,60,0,.55);container-type:inline-size}
.ivy .hill{aspect-ratio:800/470;--s1:#5fb4ee;--s2:#bfe6fb;--s3:#ffe2a8;--far:#a9c6e6;--mid:#9fd08a}
.ivy .hill .s1{stop-color:var(--s1)}.ivy .hill .s2{stop-color:var(--s2)}.ivy .hill .s3{stop-color:var(--s3)}
.ivy .hill .far{fill:var(--far)}.ivy .hill .mid{fill:var(--mid)}
.ivy .hill .orb{fill:#fff3b0}
.ivy .hill .rays{fill:#fff6c4;opacity:.22;animation:hill-spin 60s linear infinite}
.ivy .hill .cloud{fill:#fff;opacity:.92;animation:hill-drift 26s ease-in-out infinite alternate}
.ivy .hill .c2{opacity:.75;animation-duration:38s;animation-direction:alternate-reverse}
.ivy .hill .stars,.ivy .hill .flies{display:none}
.ivy .hill .grass{fill:#69b845}.ivy .hill .edge{stroke:#b6e868;stroke-width:4;stroke-linecap:round}
.ivy .hill .layer{filter:saturate(.35) brightness(.93);transition:filter .6s}
.ivy .hill .layer.built{filter:none}
.ivy .hill .plaque rect{fill:#3b2008;fill-opacity:.34;stroke:#fff;stroke-opacity:.18;stroke-width:2;transition:.4s}
.ivy .hill text{text-anchor:middle}
.ivy .hill .plaque text{fill:#fff;fill-opacity:.6;font-size:16px;font-weight:600;transition:.4s}
.ivy .hill .plaque.lit rect{fill-opacity:.5;stroke:#ffd75e;stroke-opacity:.65}
.ivy .hill .plaque.lit text{fill:#fff6d6;fill-opacity:1}
.ivy .hill .plaque.now rect{stroke-opacity:1;stroke-width:3;filter:drop-shadow(0 0 8px #ffd75e)}
.ivy .hill .pennant path{fill:#b7ada0;transition:fill .4s}
.ivy .hill .check.lit .pennant path{fill:#e5486b}
.ivy .hill .check.lit .pennant{animation:hill-wave 1.8s ease-in-out infinite}
.ivy .hill .check text{fill:#fff;font-size:9px;font-weight:700}
.ivy .hill .flag{animation:hill-wave 1.6s ease-in-out infinite;transform-origin:1px -88px;transform-box:view-box}
.ivy .hill .beam{opacity:0;transition:opacity .8s}
.ivy .summit .hill .beam{opacity:1}
.ivy .summit .hill .win{fill:#ffd23f}
.ivy .hill .spark{fill:#fff2a0;animation:hill-fade .5s forwards}
.ivy .hill .sway{animation:hill-sway 5s ease-in-out infinite alternate}

.ivy .hud{position:absolute;left:12px;top:12px;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 6px;border-radius:999px;background:rgba(40,22,6,.62);color:#fff;font-size:13px;pointer-events:none;transition:top .4s}
.ivy .hud b{background:linear-gradient(#ffd54a,#f59300);color:#3d2400;border-radius:999px;padding:1px 10px}
.ivy .win-card{position:absolute;left:34%;top:24%;transform:translate(-50%,0) scale(.4);opacity:0;pointer-events:none;white-space:nowrap;font:700 clamp(20px,5cqw,40px) var(--display);color:#fff;-webkit-text-stroke:6px #a34400;paint-order:stroke fill;transition:opacity .3s,transform .5s cubic-bezier(.3,1.8,.5,1)}
.ivy .summit .win-card{opacity:1;transform:translate(-50%,0) scale(1);transition-delay:.15s}
/* 播放时上下黑边 */
.ivy .hill-wrap::before,.ivy .hill-wrap::after{content:"";position:absolute;left:0;right:0;height:6%;background:#120a02;z-index:1;pointer-events:none;transition:transform .5s}
.ivy .hill-wrap::before{top:0;transform:translateY(-101%)}
.ivy .hill-wrap::after{bottom:0;transform:translateY(101%)}
.ivy .cinema::before,.ivy .cinema::after{transform:none}
.ivy .cinema .hud{top:calc(6% + 8px)}
.ivy .hill-wrap button{z-index:2}

html.dark .ivy .hill{--s1:#0d1238;--s2:#2b2a63;--s3:#7a4a6e;--far:#2c3566;--mid:#23463f}
html.dark .ivy .hill .orb{fill:#f4f1da}
html.dark .ivy .hill .halo{opacity:.35}
html.dark .ivy .hill .rays{opacity:.05}
html.dark .ivy .hill .cloud{opacity:.16}
html.dark .ivy .hill .stars{display:inline;fill:#fff}
html.dark .ivy .hill .stars circle{animation:hill-twinkle 3s ease-in-out infinite}
html.dark .ivy .hill .flies{display:inline;fill:#eaff7a}
html.dark .ivy .hill .flies circle{filter:drop-shadow(0 0 5px #eaff7a);animation:hill-fly 6s ease-in-out infinite}
html.dark .ivy .hill .layer.built{filter:brightness(.78)}
html.dark .ivy .hill .layer:not(.built){filter:saturate(.3) brightness(.55)}
html.dark .ivy .hill .school .win{fill:#ffd23f}

@keyframes hill-spin{to{transform:rotate(360deg)}}
@keyframes hill-drift{to{transform:translateX(70px)}}
@keyframes hill-wave{50%{transform:skewY(5deg) scaleX(.88)}}
@keyframes hill-fade{to{opacity:0}}
@keyframes hill-sway{from{transform:rotate(-3deg)}to{transform:rotate(4deg)}}
@keyframes hill-twinkle{50%{opacity:.2}}
@keyframes hill-fly{0%,100%{transform:translate(0,0);opacity:.2}50%{transform:translate(14px,-20px);opacity:1}}

@media (max-width:700px){
    .ivy .hill .plaque text{font-size:20px}
    .ivy .hud{left:6px;top:6px;font-size:10px;gap:5px;padding:3px 8px 3px 3px}
    .ivy .hud span{display:none}
}
