:root {color-scheme:light; --ink:#19382f; --muted:#41685c; --line:#b2d2c5}
body {color:#19382f;background:#b8d8cf url("assets/qijiu/studio.svg") center / cover fixed}
.qijiu-header {width:min(100% - 24px, 960px);margin:0 auto 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#173c35;color:#f5fff8;padding:9px 16px;border-radius:14px}
.qijiu-header h1 {font-size:clamp(17px,3vw,25px);letter-spacing:.04em;margin:0;line-height:1.1}
.qijiu-header small {display:block;color:#a9d4c3;font-size:10px;margin-bottom:3px}
.qijiu-header label {white-space:nowrap;font-size:12px}
.qijiu-header select {font:inherit;background:#effaf2;color:#173c35;border:0;border-radius:8px;padding:6px 9px}
#qijiu-status:empty {display:none}
.stage {border-color:#87b7a7;background:#dcefe5;box-shadow:0 8px 28px #183d3435}
.panel,.dialog {background:#f3fbf6;border-color:#a4c8bb;color:#19382f}
.stat,.next-box,.chain-box {background:#e5f4eb;border-color:#bfdccf}
.stat-label,.box-label,.tips,.subtitle,.chain-note,.dialog-hint,.board-note {color:#41685c}
.btn,.icon-btn,.link-btn {color:#214e41;border-color:#a1c9b7;background:#f7fff9}
.btn-primary,.btn-revive {color:#fff;background:#226754;border-color:#226754}
.btn-primary:hover,.btn-revive:hover {background:#174d3e;color:#fff}
.stat-value,.stat-best {color:#23634f}
@media(max-width:860px){.qijiu-header{margin-bottom:5px;padding:6px 9px}}
body {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:auto}
.app {max-height:none}
@media(min-width:861px){.stage {height:min(calc(100dvh - 100px),700px)}}
@media(max-width:860px) and (orientation:portrait){.stage {max-height:calc(100dvh - 150px)}}
body {background:#b8d8cf url("assets/qijiu/merge-party.png") center center / cover fixed no-repeat}
.qijiu-mode {font-size:12px;color:#d6f5e8;white-space:nowrap}
@media(max-width:860px) and (orientation:portrait) {
  body {background-size:100% auto;background-position:center bottom;background-color:#c5ebd9}
}
