:root { color-scheme: light; --ink: #47473d; --muted: #979483; --cream: #fbf8ef; --sage: #7d8b6d; }
* { box-sizing: border-box; }
html { min-height: 100%; background: #f1f0e6; }
body { margin: 0; min-height: 100svh; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); overflow-x: hidden; background-image: linear-gradient(#aaa99509 1px, transparent 1px), linear-gradient(90deg, #aaa99509 1px, transparent 1px); background-size: 32px 32px; }
.ambient { position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(70px); }
.ambient-one { width: 440px; height: 440px; background: #dbe3cd65; top: -180px; left: -90px; }
.ambient-two { width: 370px; height: 500px; background: #ebdaca45; right: -200px; bottom: -220px; }
.workspace { max-width: 1440px; margin: 0 auto; padding: 29px 70px 18px; min-height: 100svh; display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr); gap: 60px; align-items: center; }
.intro { max-width: 310px; align-self: stretch; position: relative; padding-top: clamp(18px, 6vh, 68px); padding-bottom: 53px; }
.eyebrow { font-size: 8px; letter-spacing: 2px; color: #878e79; font-weight: 650; white-space: nowrap; }
.tiny-pot { font-size: 20px; vertical-align: -2px; margin-right: 7px; }
.intro-sticker { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #829075; padding: 7px 11px; background: #e6e9dc; border-radius: 5px; margin-top: 49px; transform: rotate(-3deg); }
.intro-sticker span, .save-hint span { width: 5px; height: 5px; border-radius: 50%; background: #8c9c7b; display: inline-block; }
h1 { font-family: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", serif; font-size: clamp(43px, 4.1vw, 63px); font-weight: 800; letter-spacing: 2px; line-height: 1.27; margin: 21px 0 18px; color: #596349; }
.question { color: #b5896a; display: inline-block; transform: rotate(9deg); }
.handwritten { font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-size: 17px; color: #9b8769; transform: rotate(-3deg); transform-origin: left center; white-space: nowrap; }
.intro-copy { font-size: 12px; line-height: 2.05; letter-spacing: .9px; color: #9a9989; margin-top: 30px; }
.intro-line { width: 36px; height: 1px; background: #c9cbbc; margin: 26px 0 17px; }
.genre { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: .6px; color: #999b87; white-space: nowrap; }
.genre i { color: #b9b9a9; font-style: normal; }
.mini-note { position: relative; background: #f6edd7; width: 190px; padding: 18px 22px 17px; margin: 53px 0 0 10px; transform: rotate(-6deg); box-shadow: 0 9px 17px #746b4210; border-radius: 2px 2px 20px 2px; }
.note-pin { position: absolute; width: 60px; height: 17px; top: -8px; left: 64px; background: #ced5b7b0; transform: rotate(3deg); }
.mini-note p { font-size: 9px; letter-spacing: 2px; color: #b5a47f; margin: 0 0 11px; }
.mini-note strong { font-size: 14px; line-height: 1.8; letter-spacing: 2px; color: #a38a64; font-weight: 500; }
.note-face { position: absolute; font-size: 30px; right: 21px; bottom: 11px; color: #b9a073; transform: rotate(-10deg); }
.version { font-size: 7px; color: #b5b3a2; letter-spacing: 1px; position: absolute; bottom: 5px; white-space: nowrap; }
.version span { margin: 0 8px; color: #c8c5b5; }
.game-column { display: flex; flex-direction: column; align-items: center; }
.game-shell { width: min(420px, calc((100svh - 80px) * 420 / 884)); aspect-ratio: 420 / 884; position: relative; background: var(--cream); border-radius: 29px; box-shadow: 0 25px 70px #595c4520, 0 3px 9px #55503d08; outline: 1px solid #fffdf8; overflow: hidden; }
#game { width: 100%; height: 100%; display: block; touch-action: manipulation; }
#controls { position: absolute; inset: 0; pointer-events: none; }
.canvas-control { position: absolute; border: 0; margin: 0; padding: 0; background: transparent; color: transparent; pointer-events: auto; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.canvas-control:disabled { cursor: default; }
.canvas-control:focus { outline: none; }
.canvas-control:focus-visible { outline: 2px solid #788e65; outline-offset: -3px; background: #899c7209; }
.canvas-control:hover:not(:disabled) { background: #84785806; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--cream); font-size: 14px; color: var(--sage); }
.save-hint { font-size: 8px; letter-spacing: .8px; color: #a1a58d; margin-top: 15px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.save-hint span { width: 4px; height: 4px; }
.field-notes { max-width: 255px; padding-left: 12px; }
.side-label { font-size: 7px; letter-spacing: 1.8px; color: #a5a993; }
h2 { position: relative; font-family: "Kaiti SC", "STKaiti", "KaiTi", serif; font-size: 26px; letter-spacing: 3px; line-height: 1.6; margin: 19px 0 31px; color: #7f866e; font-weight: 500; }
h2 span { display: inline-block; margin-left: 18px; font-size: 28px; color: #a8b094; transform: rotate(-18deg); }
.field-notes ol { list-style: none; margin: 0; padding: 0; }
.field-notes li { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 27px; }
.step-number { border: 1px solid #d7dac8; border-radius: 50%; width: 25px; height: 25px; flex: 0 0 25px; text-align: center; line-height: 24px; color: #a7ad95; font-size: 9px; font-family: Georgia, serif; }
.field-notes h3 { font-size: 12px; color: #83896f; font-weight: 550; margin: 3px 0 9px; letter-spacing: 1px; }
.field-notes p { font-size: 10px; line-height: 1.95; letter-spacing: .6px; color: #a2a58f; margin: 0; }
.cat-note { margin-top: 37px; padding-top: 22px; border-top: 1px dashed #d6d9c8; text-align: center; transform: rotate(3deg); }
.cat-note svg { width: 99px; height: 90px; margin-bottom: 9px; }
.cat-note p { color: #9da187; font-family: "Kaiti SC", "STKaiti", serif; font-size: 13px; }
.cat-note > span { display: block; font-size: 8px; color: #b1b39e; margin-top: 10px; letter-spacing: .8px; }
@media (max-width: 1200px) { .workspace { padding: 24px 40px 18px; gap: 32px; grid-template-columns: minmax(205px, 1fr) auto minmax(195px, 1fr); } .field-notes { padding-left: 0; } .eyebrow { letter-spacing: 1.3px; font-size: 7px; } h1 { font-size: 49px; } }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(210px, 1fr) auto; max-width: 780px; gap: 38px; } .field-notes { display: none; } h1 { font-size: 58px; } .intro { padding-top: 35px; } }
@media (max-width: 660px) { body { background: var(--cream); } .workspace { display: flex; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); min-height: 100svh; } .intro, .field-notes, .save-hint, .ambient { display: none; } .game-shell { width: min(100vw, calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 420 / 884)); border-radius: 0; box-shadow: none; outline: none; } }
@media (max-height: 760px) and (min-width: 661px) { .intro-sticker { margin-top: 20px; } .intro { padding-top: 0; } h1 { font-size: 45px; margin-top: 15px; } .mini-note { margin-top: 26px; padding: 13px 22px; } .intro-copy { margin-top: 22px; } .field-notes { transform: scale(.88); transform-origin: center right; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
