*{box-sizing:border-box}
:root{color-scheme:light;--orange:#ff8a3d;--cream:#fff8e5;--ink:#233b34;--muted:#465b51}
body{margin:0;background:#91cd76;color:var(--ink);font:1rem/1.5 system-ui,'PingFang SC',sans-serif}
main{min-height:100vh;min-height:100dvh;background:linear-gradient(#7fc7e5 0,#87ccac 54%,#91cd76 100%)}
article{max-width:31rem;min-height:100vh;min-height:100dvh;margin:auto;padding:max(1rem,env(safe-area-inset-top)) .85rem max(1rem,env(safe-area-inset-bottom))}
.status{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;font-size:.83rem;font-weight:750}
.pill{border-radius:999px;padding:.42rem .75rem;text-align:center}.warm{background:#fff4cf;color:#64470b}.cool{background:#e7f6ff;color:#174c77}.orange{background:var(--orange);color:#3d260c;margin-left:auto}
.scene{position:relative;overflow:hidden;aspect-ratio:390/267;margin:clamp(1rem,6vh,3.4rem) -.85rem 0}
.scene img{position:absolute;top:-71.2%;width:100%;height:auto;display:block;mix-blend-mode:multiply;pointer-events:none}
.scene.unavailable{display:none}
.caption{margin:.32rem 0 .62rem;text-align:center;color:#294838;font-size:.86rem;font-weight:700}
button,textarea{font:inherit;color:inherit}button{min-height:44px;border:0;cursor:pointer;padding:.5rem .7rem;font-weight:700}button:focus-visible,textarea:focus-visible{outline:3px solid #203f6a;outline-offset:3px}button:disabled{cursor:default;opacity:.63}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-bottom:.8rem}.choices:empty{display:none}
.choice{min-height:54px;border-radius:16px;background:var(--orange);color:#382308;overflow-wrap:anywhere}.choice:nth-child(4n+2){background:#754ba9;color:white}.choice:nth-child(4n+3){background:#1478b9;color:white}.choice:nth-child(4n+4){background:#317749;color:white}.choice:only-child{grid-column:1/-1}
.sheet,dialog{background:var(--cream);border-radius:16px;color:var(--ink);padding:.85rem 1rem;overflow-wrap:anywhere}.sheet{box-shadow:0 .28rem .65rem #34512528}
.sheet h1,.sheet h2,dialog h2{font-size:1.15rem;margin:.2rem 0 .4rem;line-height:1.35}.sheet p{margin:.4rem 0}.tag,.meta,.saved{font-size:.8rem;color:var(--muted)}.tag{font-weight:750;color:#67441b}.meta strong{color:#235f3b}.archives{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin-top:.8rem}.archives button,#close{background:var(--cream);border-radius:12px;font-size:.82rem}.archives button{color:#294d35}.saved{text-align:center;margin:.55rem 0 0;min-height:1.3em}
label{display:block;font-weight:700;margin-top:.65rem}textarea{width:100%;margin:.3rem 0 .5rem;border:1px solid #9eaa89;border-radius:8px;padding:.5rem;background:#fffdf5;resize:vertical}dialog{width:min(92%,29rem);max-height:82vh;max-height:82dvh;border:0;overflow:auto}dialog::backdrop{background:#213d39a6}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid #d4d9bd}.record{padding:.7rem 0;border-bottom:1px solid #d4d9bd}.record p{margin:.3rem 0}.record:last-child{border-bottom:0}

.chapter{margin-top:1rem}
.chapter .choices{margin-top:.75rem}
.chapter #feedback:empty{display:none}
.chapter #feedback:not(:empty){margin:.65rem 0 0;font-size:.9rem;font-weight:650}
.chapter .choice{touch-action:manipulation}
.chapter .choice:active{filter:brightness(.9)}
.chapter #play-help,.chapter #goal{margin:.4rem 0}

.ad-slot{margin:.8rem 0;display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .6rem;padding:.35rem .65rem;border-radius:.8rem;background:#fff8e5d9;color:#64470b;font-size:.82rem}.ad-slot:empty{display:none}.ad-slot button{margin-left:auto;background:#ffdfaa;border-radius:.65rem;min-height:2.75rem}.ad-slot small{border:1px solid currentColor;padding:0 .24rem;border-radius:.25rem}.ad-slot [role=status]:not(:empty){flex-basis:100%}

.game-intro h1{margin:0 0 .65rem;font-size:1.45rem;line-height:1.25}

.ad-slot:empty{display:flex;justify-content:center;min-height:2rem;border:1px dashed #bda77d;pointer-events:none}
.ad-slot:empty::before{content:"广告位"}
