/* Terrace inherits the four-period palette from home.css. */
.terrace-shell{padding-bottom:18px}
.terrace-stage{background:var(--sky)}
.terrace-back-door{position:absolute;z-index:8;left:0;top:30.3%;width:6.5%;height:40%;text-decoration:none}
.terrace-back-door i{position:absolute;right:10%;top:5%;width:4px;height:90%;background:var(--accent);opacity:.58}
.terrace-back-door b{position:absolute;right:34%;top:49%;width:7px;height:7px;background:var(--accent2)}
.terrace-back-door:hover i{opacity:1;filter:drop-shadow(0 0 4px var(--accent))}
.terrace-back-door:hover b{transform:translateX(1px)}

.terrace-sky{fill:var(--sky)}
.terrace-floor{fill:color-mix(in srgb,var(--w1) 76%,var(--w2) 24%)}
.house-wall{fill:var(--w0)}
.terrace-ground{fill:var(--ground)}
.garden-wall{fill:var(--w2);opacity:.72}
.terrace-stars-pixel{opacity:.18}
.terrace-star-cross rect,.terrace-star-dot{fill:var(--star)}
.terrace-star-cross{transform-box:fill-box;transform-origin:center}
.terrace-star-a{opacity:.9}.terrace-star-b{opacity:.72}.terrace-star-c{opacity:.84}.terrace-star-d{opacity:.65}
.terrace-star-dot{opacity:.72}
body.morning .terrace-stars-pixel{opacity:.12}
body.day .terrace-stars-pixel{opacity:.18}
body.dusk .terrace-stars-pixel{opacity:.62}
body.night .terrace-stars-pixel{opacity:1}
body.night .terrace-star-cross rect{fill:#cfd6dd}
body.night .terrace-star-dot{fill:#e376af}
.terrace-star-a{animation:terrace-star-pulse 8.6s steps(2) infinite}
.terrace-star-c{animation:terrace-star-pulse 11.4s steps(2) infinite reverse}
@keyframes terrace-star-pulse{
  0%,72%,100%{transform:scale(1);opacity:.72}
  75%,82%{transform:scale(1.08);opacity:1}
}
.arbor,.roof-edge{fill:var(--w2)}
.vine-line{fill:none;stroke:#315f70;stroke-width:9px}
.vine-leaves ellipse{fill:#3f7880}
.grape-clusters circle{fill:#724f86}
body.night .grape-clusters circle{fill:#8c69a4}
.terrace-cup{fill:var(--accent)}
.breakfast-plate{fill:color-mix(in srgb,var(--w0) 78%,var(--accent2) 22%)}
.proposal-line{fill:var(--accent2);opacity:.42}
.proposal-seven{fill:var(--accent)}
.rain-copper{fill:color-mix(in srgb,#9a684b 72%,var(--accent) 28%)}
.rain-link{fill:color-mix(in srgb,#9a684b 74%,var(--w2) 26%)}
.stone-basin{fill:var(--w2)}
.basin-water{fill:var(--accent2);opacity:.44}
.rain-stone{fill:color-mix(in srgb,var(--w1) 55%,var(--w0) 45%)}
.rain-mark{fill:var(--accent)}
.terrace-floor-lines rect{fill:var(--w2);opacity:.18}

.terrace-shooting-star{
  position:absolute;z-index:5;left:0;top:0;width:90px;height:40px;
  pointer-events:none;opacity:0;transform:translate3d(0,0,0)
}
.terrace-shooting-star i,.terrace-shooting-star b{position:absolute;display:block;background:var(--star)}
.terrace-shooting-star i{left:0;top:29px;width:7px;height:7px}
.terrace-shooting-star b{
  left:8px;top:31px;width:64px;height:3px;transform-origin:left center;transform:rotate(-33deg);
  box-shadow:14px 0 0 color-mix(in srgb,var(--star) 70%,transparent)
}
body.night .terrace-shooting-star i{background:#e376af}
body.night .terrace-shooting-star b{background:#98a4d8}
.terrace-shooting-star.is-falling{opacity:1;animation:terrace-meteor-flight 1.15s steps(12) forwards}
@keyframes terrace-meteor-flight{
  from{transform:translate(0,0)}
  to{transform:translate(-230px,150px)}
}

.terrace-lamp-post{fill:var(--w2)}
.terrace-lamp-light{fill:var(--accent);opacity:.72}
.terrace-lamp-halo{fill:#f4d28a;opacity:0;filter:blur(16px);pointer-events:none}
body.terrace-lamp-on .terrace-lamp-light{fill:#f4d28a;opacity:1}
body.morning.terrace-lamp-on .terrace-lamp-halo{opacity:.08}
body.day.terrace-lamp-on .terrace-lamp-halo{opacity:.05}
body.dusk.terrace-lamp-on .terrace-lamp-halo{opacity:.18}
body.night.terrace-lamp-on .terrace-lamp-halo{opacity:.34}

.vine-object{left:52%;top:16%}
.breakfast-object{left:44%;top:58%}
.proposal-object{left:68%;top:73%}
.rain-object{left:89%;top:68%}
.terrace-lamp-object{left:77%;top:48%}

.terrace-note{
  display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:12px;padding:12px 14px;
  border:1px solid var(--line);background:var(--panel)
}
.terrace-note span{color:var(--muted);font-size:9px;letter-spacing:.11em}
.terrace-note strong{color:var(--text);font:600 .82rem/1.6 "PingFang SC","Noto Sans CJK SC",sans-serif;text-align:right}
body.night .terrace-card{background:#15124f;color:#cfd6dd}

@media(prefers-reduced-motion:reduce){
  .terrace-star-cross,.terrace-shooting-star{animation:none!important}
  .terrace-shooting-star{display:none}
}

@media(max-width:760px){
  .terrace-note{align-items:flex-start;flex-direction:column}
  .terrace-note strong{text-align:left}
}
