:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #302c25; background: #f6f2ea; }
* { box-sizing: border-box; }
body { margin: 0; padding: 16px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #28765f; outline-offset: 4px; }
[hidden] { display: none !important; }
.card { max-width: 580px; margin: 0 auto; background: #fffcf5; border: 1px solid #ded7c9; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 32px #52462a0a; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 24px; border-bottom: 1px solid #eae3d6; color: #625a49; font-size: 12px; }
.duration { white-space: nowrap; color: #496958; }
.intro { padding: 26px 28px 18px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; color: #92663c; letter-spacing: 3px; }
h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(29px, 6vw, 40px); line-height: 1.3; font-weight: 700; letter-spacing: 1px; }
.subtitle { font-size: 14px; line-height: 1.9; color: #6a6256; margin: 15px 0 0; }
.scene { position: relative; height: 150px; margin: 0 24px; overflow: hidden; border-radius: 14px; background: #e5e9dc; border: 1px solid #dce0d3; }
.window { position: absolute; width: 128px; height: 120px; left: 50%; top: 16px; transform: translateX(-50%); overflow: hidden; border: 6px solid #596e5d; border-radius: 66px 66px 0 0; background: #c3d2c3; }
.moon { position: absolute; width: 30px; height: 30px; top: 12px; left: 24px; border-radius: 50%; background: #fcf2cd; }
.roof { position: absolute; bottom: 6px; right: -12px; width: 92px; height: 48px; background: #5d7669; clip-path: polygon(0 66%, 28% 35%, 48% 0, 68% 35%, 100% 66%, 86% 76%, 86% 100%, 14% 100%, 14% 76%); }
.roof-back { right: 50px; bottom: 8px; transform: scale(.75); background: #8ca08b; }
.lantern { position: absolute; left: 27px; top: 18px; width: 38px; height: 48px; border-radius: 16px; background: #b8583f; color: #fff1d1; text-align: center; padding-top: 10px; font-family: serif; box-shadow: inset 5px 0 #ffffff14, inset -5px 0 #782c271a; }
.lantern::before { content: ""; position: absolute; width: 2px; height: 18px; background: #85694b; top: -18px; left: 18px; }
.lantern::after { content: ""; position: absolute; width: 2px; height: 12px; background: #b8583f; bottom: -12px; left: 18px; }
.counter { position: absolute; width: 100%; height: 27px; background: #c2a47f; bottom: 0; border-top: 5px solid #a48661; }
.teapot { position: absolute; right: 38px; bottom: 27px; width: 38px; height: 30px; background: #60765c; color: #efedcf; border-radius: 10px; font-size: 12px; text-align: center; line-height: 30px; }
.teapot::after { content: ""; position: absolute; width: 16px; height: 17px; border: 4px solid #60765c; border-radius: 50%; top: 4px; right: -12px; }
.bowl { position: absolute; right: 90px; bottom: 27px; width: 31px; height: 16px; border-radius: 0 0 20px 20px; background: #fffcf1; border-top: 3px solid #d1ccb9; }
.scene-note { position: absolute; bottom: 32px; left: 16px; padding: 5px 8px; background: #fffcf5ed; border-radius: 5px; font-size: 11px; color: #625747; }
.menu { padding: 23px 24px 0; }
.menu h2 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: #6a6256; }
.choices { display: grid; gap: 9px; }
.dish { display: flex; align-items: center; width: 100%; gap: 13px; padding: 13px 15px; border: 1px solid #e2daca; border-radius: 12px; background: #fffdf8; color: #302c25; text-align: left; transition: background .15s, border-color .15s; }
.dish:hover { background: #f3f2e8; border-color: #8d9e85; }
.dish[aria-pressed="true"] { background: #eaf0e4; border-color: #58785f; }
.dish-icon { font-size: 26px; width: 34px; text-align: center; }
.dish strong { display: block; font-size: 15px; font-weight: 600; }
.dish small { display: block; margin-top: 4px; font-size: 12px; color: #746b5c; }
.arrow { margin-left: auto; color: #847966; }
.result { margin: 16px 24px 0; padding: 18px; background: #f0eadc; border: 1px solid #ddd2bb; border-radius: 12px; }
.result[data-tone="yes"] { background: #eaf0e4; border-color: #cfdbc6; }
.result-tag { margin: 0 0 7px; color: #65583c; font-size: 11px; letter-spacing: 1px; }
.result h2 { font-size: 19px; line-height: 1.5; margin: 0; }
.story { font-size: 14px; line-height: 1.8; margin: 10px 0; }
.fact { border-top: 1px solid #84704730; padding-top: 12px; font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.hint { font-size: 12px; line-height: 1.7; margin: 10px 0 0; color: #625b4c; }
.progress-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 14px 24px 20px; }
.progress-row p { font-size: 11px; line-height: 1.7; color: #706859; margin: 0; }
#restart { background: transparent; color: #38684f; border: 1px solid #c5d1bc; border-radius: 8px; min-height: 40px; padding: 8px 10px; font-size: 12px; }
.explanation { padding: 21px 24px; border-top: 1px dashed #d6cfbf; background: #f6f4eb; }
.explanation > strong { font-size: 15px; color: #3f614b; }
.explanation p { font-size: 13px; line-height: 1.9; margin: 8px 0 14px; color: #625c50; }
.explanation details { font-size: 11px; color: #706859; margin: 0 0 14px; }
.explanation summary { cursor: pointer; min-height: 28px; padding: 4px 0; }
.explanation details p { font-size: 12px; }
.explanation a { color: #35654d; text-underline-offset: 3px; }
.explanation > small { display: block; font-size: 10px; line-height: 1.8; color: #746e62; }
.noscript { margin: 20px; line-height: 1.8; }
@media (max-width: 360px) { body { padding: 8px; } .topline { padding: 14px 18px; font-size: 11px; } .intro { padding: 22px 20px 18px; } .scene { margin: 0 18px; } .menu { padding: 20px 18px 0; } .result { margin: 14px 18px 0; padding: 15px; } .progress-row { margin: 14px 18px 18px; } .explanation { padding: 20px 18px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
