@font-face{font-family:Story;src:url(assets/story-title.woff2) format("woff2");font-display:swap}
:root{--ink:#563d2c;--muted:#846d55;--edge:#a58560;--paper:#fff9ea;--shadow:#d8bd97;--round:18px;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;overscroll-behavior-x:none;color:var(--ink);font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;background-color:#f7efde;background-image:radial-gradient(ellipse at 8% 5%,#fff8e98c,transparent 35%),radial-gradient(#bb94642a .8px,transparent .9px);background-size:auto,7px 7px}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,canvas:focus-visible{outline:3px solid #426d67;outline-offset:4px}button{touch-action:manipulation}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}[hidden]{display:none!important}
.wrap{width:min(1152px,calc(100% - 88px));margin:0 auto}
.site-head{background:#fdf7ebd9;border-bottom:1px solid #cbb4939e}
.head-row{display:flex;align-items:center;justify-content:space-between;min-height:78px}
.brand{display:flex;align-items:center;gap:10px}.pack{width:49px;height:49px;transform:rotate(-8deg);filter:drop-shadow(0 2px 0 #d8c5a3)}
.brand b{display:block;font-size:22px;font-weight:900;letter-spacing:1px;line-height:1.3}
.brand small{display:block;font:750 9px/1.6 ui-rounded,"Avenir Next",sans-serif;letter-spacing:2.25px;color:#9a7958}
nav{display:flex;gap:11px}.tool,.circle{display:inline-flex;align-items:center;justify-content:center;border:1.6px solid #b69b78;background:#fff9eb;box-shadow:0 2px 0 #d8c5a8;transition:background .15s,transform .15s}
.tool{gap:7px;border-radius:12px;padding:8px 13px;font-size:13px;font-weight:700}.tool svg{width:17px;height:17px}.tool:hover,.circle:hover{background:#f9eacb;transform:translateY(-1px)}
main{padding:24px 0 28px}
.console{background:#fff8e9;border:2px solid #927252;border-radius:22px;padding:6px 6px 0;box-shadow:0 4px 0 #cbb18c,0 8px 21px #82663e0e;position:relative}
.stage{position:relative;isolation:isolate;overflow:hidden;border:1.4px solid #9f7853;border-radius:15px;background:#f2d3a1;aspect-ratio:2.69}
canvas{display:block;width:100%;height:100%;outline:none!important}.cover,.cover-art,.cover-wash,.overlay{position:absolute;inset:0;width:100%;height:100%}
.cover-art{object-fit:cover;object-position:52% 52%}.cover-wash{background:linear-gradient(90deg,#ffeac7b8 0%,#ffedc363 27%,transparent 48%);pointer-events:none}
#coverBoy{position:absolute;right:15%;bottom:10%;height:70%;filter:drop-shadow(0 4px 1px #5540264f)}
.cover.alternate .cover-wash{background:linear-gradient(90deg,#fff0d9ed,#fff4dabb 35%,transparent 64%)}
.intro{position:absolute;left:5.5%;top:50%;transform:translateY(-49%);display:flex;align-items:flex-start;flex-direction:column}
.genre{display:inline-flex;align-items:center;gap:7px;color:#624d36;border:1.2px solid #ac9369;background:#fff5dcdc;padding:4px 10px;font-weight:750;font-size:12px;line-height:1.3;letter-spacing:1px;border-radius:7px;transform:rotate(-2deg)}
.genre svg{width:17px;height:17px}
h1{font-family:Story,"PingFang SC",sans-serif;position:relative;font-weight:900;font-size:clamp(58px,6.75vw,92px);margin:12px 0 11px;letter-spacing:1px;line-height:1.06;color:#ffca73;-webkit-text-stroke:5.5px #65412d;paint-order:stroke fill;transform:rotate(-3deg);filter:drop-shadow(0 3px 0 #70452c) drop-shadow(2px 0 0 #fff1cb) drop-shadow(-2px 0 0 #fff1cb) drop-shadow(0 -2px 0 #fff1cb) drop-shadow(0 3px 0 #fff1cb)}
.intro p{margin:2px 0 21px;color:#59412c;font-weight:650;font-size:clamp(13px,1.22vw,16px);line-height:1.85;letter-spacing:.4px}
.primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 27px;border:2px solid #815433;border-radius:13px;background:#f5ab59;box-shadow:inset 0 2px 0 #ffd29b,0 4px 0 #966240,0 5px 0 2px #fff0cb93;font-weight:850;font-size:17px;letter-spacing:1px;transition:transform .12s,background .12s,box-shadow .12s}.primary svg{width:18px;height:18px}.primary:hover{background:#ffb969;transform:translateY(-1px)}.primary:active{transform:translateY(3px);box-shadow:inset 0 2px 0 #ffd29b,0 1px 0 #966240}
.stage-tools{position:absolute;top:13px;right:13px;display:flex;gap:7px;z-index:3}.circle{border-radius:10px;width:34px;height:34px;padding:6px;background:#fff7e8eb}.circle svg{width:18px;height:18px}
.hud{display:grid;grid-template-columns:1fr 1fr 1.25fr 1.02fr;align-items:center;min-height:58px;padding:8px 15px}
.hud-cell{display:flex;align-items:center;justify-content:center;gap:14px;min-height:25px;border-right:1px dashed #ccb394}.hud-cell:first-child{justify-content:flex-start;padding-left:11px}.hud-cell:last-child{justify-content:flex-end;border:0;padding-right:8px}
.hud small{color:var(--muted);font-size:12px;font-weight:650}.hud strong{font-size:14px}.hud .digits,.best b{font-family:ui-rounded,"Avenir Next","Arial Rounded MT Bold",sans-serif;letter-spacing:1.8px;font-weight:850;font-variant-numeric:tabular-nums}.hud .digits{font-size:19px}
.hearts{color:#e98676;font-family:Arial,sans-serif;font-size:21px;letter-spacing:0;-webkit-text-stroke:.65px #a26046;line-height:1}.equipped,.level-cell{display:flex;align-items:center;gap:5px}.equipped svg{width:15px;height:15px}.level-cell{font-weight:750;font-size:13px}.level-cell svg{color:#94855a;width:18px;height:18px}
.map{margin-top:26px}.section-head,.guide-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-head h2,.guide-top h2{display:flex;align-items:center;gap:9px;margin:0;font-size:22px;letter-spacing:1px;font-weight:850}.section-head h2 svg{width:24px;height:24px;color:#896a47;fill:#f2d39c}.section-head>span{font-size:12px;font-weight:650;color:#8d775e}.section-head>span span{font-size:17px}
.map-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.map-card{display:flex;align-items:center;text-align:left;min-width:0;padding:5px 13px 5px 5px;gap:14px;background:#fff8eafa;border:1.5px solid #bda381;border-radius:15px;box-shadow:0 3px 0 #d8c2a1;transition:transform .15s,box-shadow .15s,background .15s}
.map-card:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 0 #d8c2a1}
.map-card.selected{background:#f9f1d9;border-color:#94744c;box-shadow:0 3px 0 #b59b74}.map-card img{width:40%;height:77px;object-fit:cover;border-radius:10px;border:1px solid #997d5a65}.map-text{display:flex;flex-direction:column;gap:6px;white-space:nowrap}.map-text small{font:800 9px/1.2 "Avenir Next",sans-serif;letter-spacing:1.7px;color:#a58762}.map-text b{font-size:18px;letter-spacing:.4px}.map-go{margin-left:auto;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;font-size:20px;line-height:1;color:#997f63;flex-shrink:0}.selected .map-go{font-size:12px;background:#dce1b4;color:#697044;border:1px solid #9da675}
.controlbar{margin-top:23px;padding:15px 1px 2px;border-top:1px dashed #c9b18e;display:flex;align-items:center;gap:21px;color:#816d55;font-size:12px;font-weight:620}.control-title,.best{display:flex;align-items:center;gap:7px}.control-title svg,.best svg{width:18px;height:18px}.control-title{color:#6f563d}.keyset,.keyset>span{display:flex;align-items:center;gap:5px}.keyset{gap:16px}kbd{font:700 11px/1.3 system-ui,sans-serif;border:1px solid #c3aa87;background:#fff9eb;box-shadow:0 2px 0 #d2b997;padding:1px 5px;border-radius:5px;color:#795e44}.best{margin-left:auto}.best svg{color:#a17f4e}.best b{color:#785a3e;letter-spacing:1px}
.toast{position:absolute;top:12px;left:14px;padding:7px 12px;border-radius:10px;border:1px solid #a8895d;background:#fffae9ec;color:#634d34;font-weight:750;font-size:13px;max-width:calc(100% - 104px);pointer-events:none}
.overlay{background:#50392650;display:grid;place-items:center;z-index:4}.note,dialog{background:#fff7e6;border:2px solid #95724e;border-radius:18px;box-shadow:0 5px 0 #b79166;text-align:center}.note{padding:14px 23px;max-width:90%}.note img{height:56px}.note h2{margin:2px 0 6px;font-size:24px}.note p{font-size:13px;margin:0 0 15px}.note .primary,.guide-row~.primary{font-size:14px;padding:7px 16px}.plain{border:0;background:none;text-decoration:underline;text-underline-offset:3px;font-size:12px;margin-left:10px}
.touch{position:absolute;left:10px;right:10px;bottom:8px;display:none;justify-content:space-between;pointer-events:none;z-index:2}.touch>div{display:flex;gap:7px}.touch button{pointer-events:auto;border:1.5px solid #8a704f;background:#fff8e6d9;box-shadow:0 2px 0 #a88a65;border-radius:11px;min-width:42px;height:36px;touch-action:none;user-select:none;-webkit-user-select:none;font-size:14px;font-weight:800}
dialog{padding:20px 24px;max-width:min(440px,94vw);color:var(--ink)}dialog::backdrop{background:#48352680}.guide-top{margin-bottom:10px}.guide-row{display:flex;align-items:center;gap:17px;padding:12px 3px;text-align:left;border-top:1px dashed #d6c3a3}.guide-row img{width:58px;height:63px;object-fit:contain}.guide-row h3{margin:0;font-size:15px}.guide-row p{margin:3px 0 0;font-size:13px;line-height:1.65;color:#81684c}#gotIt{margin:8px 0 3px}
.console:fullscreen,.console.expanded{width:100%;height:100%;max-width:none;display:flex;flex-direction:column;justify-content:center;background:#fbefda;border:0;border-radius:0;margin:0;padding:10px}.console.expanded{position:fixed;inset:0;z-index:20}.console:fullscreen .stage,.console.expanded .stage{width:min(100%,calc((100dvh - 80px)*2.63));margin:0 auto}.console:fullscreen .hud,.console.expanded .hud{width:min(100%,1152px);margin:0 auto}
@media(pointer:coarse),(max-width:720px){.stage.playing .touch{display:flex}.stage.playing{touch-action:none}.touch{bottom:max(8px,env(safe-area-inset-bottom));}.touch button{min-width:46px;height:42px;padding:0 10px;font-size:15px}}
@media(max-width:860px){.wrap{width:calc(100% - 38px)}.head-row{min-height:66px}.intro{left:4%}.map-card{gap:9px}.map-card img{height:64px}.map-text b{font-size:15px}.hud{padding:7px 3px}.hud-cell{gap:7px}.controlbar{gap:11px}.keyset{gap:10px}.map{margin-top:20px}}
@media(max-width:650px){.wrap{width:calc(100% - 24px)}main{padding-top:15px}.head-row{min-height:62px}.pack{width:37px;height:40px}.brand{gap:6px}.brand b{font-size:17px}.brand small{font-size:7px;letter-spacing:1.2px}nav{gap:7px}.tool{padding:8px}.tool span{display:none}.tool svg{width:17px;height:17px}.console{padding:4px 4px 0;border-radius:17px}.stage{border-radius:11px;aspect-ratio:1.38}.cover-art{object-fit:cover;object-position:66% center}.cover-wash{background:linear-gradient(90deg,#ffedcfed,#ffeccba8 39%,transparent 68%)}.intro{left:5%;top:51%}.genre{font-size:10px;padding:3px 6px}.genre svg{width:14px;height:14px}h1{font-size:clamp(42px,9.8vw,61px);letter-spacing:0;-webkit-text-stroke:3.5px #65412d;margin:10px 0 7px}.intro p{font-size:11px;line-height:1.8;margin:1px 0 15px}.primary{font-size:14px;padding:8px 14px;gap:5px;border-radius:10px}.primary svg{width:14px;height:14px}.stage-tools{top:8px;right:8px}.circle{width:29px;height:29px}.hud{grid-template-columns:1fr .9fr 1.2fr;min-height:53px}.hud-cell,.hud-cell:first-child{flex-direction:column;gap:3px;justify-content:center;padding:0}.hud-cell:nth-child(3){border:0}.hud small{font-size:10px}.hud .digits{font-size:14px}.hud strong{font-size:12px}.hearts{font-size:16px}.level-cell{display:none}.map{margin-top:19px}.section-head h2{font-size:19px}.map-grid{gap:8px}.map-card{flex-direction:column;align-items:stretch;gap:0;padding:4px 4px 9px;border-radius:11px;position:relative}.map-card img{width:100%;height:63px;border-radius:7px}.map-text{padding:8px 4px 0;gap:3px}.map-text small{font-size:8px}.map-text b{font-size:14px}.map-go{display:none}.selected .map-go{display:grid;position:absolute;right:7px;top:7px;width:17px;height:17px}.controlbar{flex-wrap:wrap;margin-top:17px;padding-top:12px;row-gap:9px;font-size:11px}.keyset{order:3;width:100%;flex-wrap:wrap}.toast{font-size:11px;max-width:calc(100% - 92px)}.note{padding:10px 13px}.note img{height:36px}.note h2{font-size:19px}.note p{font-size:11px}.touch button{height:34px}.console:fullscreen .stage,.console.expanded .stage{width:min(100%,calc((100dvh - 80px)*1.38))}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.map-text em{font-size:11px;font-style:normal;color:#846a50}.intro p{max-width:29em}.map-card:nth-child(n+4){border-color:#a38871}
@media(max-width:650px){.intro p{max-width:17em}.map-text em{font-size:10px}}

body.game-expanded{overflow:hidden}
.console.expanded{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;padding:6px;z-index:20}
.console.expanded .stage{width:100%;min-height:0;flex:1;aspect-ratio:auto}
.console.expanded .hud{width:100%;min-height:36px;flex:none}
.console.expanded .touch button{min-height:44px}
#howTo .note{max-height:100%;overflow:auto}
@media(orientation:portrait){
  .console.expanded{inset:0 auto auto 0;transform-origin:top left;transform:translateX(100vw) rotate(90deg);width:100vh;width:100dvh;height:100vw;padding:6px max(6px,env(safe-area-inset-bottom)) 6px max(6px,env(safe-area-inset-top))}
}
@media(orientation:landscape){
  .console.expanded{padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
}
