:root{font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;color:#2a2328;background:white;color-scheme:light}*{box-sizing:border-box}body{margin:0;height:100svh;height:100dvh;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}.game-nav-header{flex-shrink:0}button{font:inherit;color:inherit;background:#f3f4f6;border:1px solid #dedbdf;border-radius:8px;min-height:44px;padding:8px 12px;touch-action:manipulation}button:disabled{opacity:.5}.shell{width:100%;max-width:450px;margin:auto;flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:4px 8px max(6px,env(safe-area-inset-bottom))}.stage{position:relative;flex:1;min-height:270px;background:#fcf8f6;border:1px solid #e7dfe1;border-radius:12px;overflow:hidden}.hud{position:absolute;top:6px;left:8px;right:8px;display:flex;gap:10px;align-items:center;font-size:12px}.hud button{margin-left:auto}.steps{position:absolute;top:75px;left:12px;right:12px;display:flex;justify-content:space-between;font-size:12px;color:#6e626a}#hint{position:absolute;top:110px;width:100%;text-align:center;font-size:13px;margin:0}.belt{position:absolute;top:43%;height:150px;left:0;right:0;background:#e8e3df;border-block:8px solid #c8bcb4}.belt-lines{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 28px,#d2c9c1 29px 31px)}.marks{position:absolute;inset:0}.marks i{position:absolute;height:100%;width:34px;transform:translateX(-50%);border-inline:2px dashed #a5999f;text-align:center;font-style:normal;font-size:12px;padding-top:7px;color:#6e626a}.marks i.active{background:#f7e3eb;border-color:#98657b;color:#633d51;font-weight:bold}.parcel{position:absolute;left:-15%;top:48px;width:62px;height:57px;transform:translateX(-50%)}.box{position:absolute;inset:0;background:#e9bd91;border:2px solid #a67a58;border-radius:5px}.paper{position:absolute;top:-8px;bottom:-8px;width:43px;background:#dfb2c3;border:1px solid #aa7f90;z-index:1}.paper.left{left:-25px;clip-path:polygon(0 0,100% 22%,100% 78%,0 100%)}.paper.right{right:-25px;clip-path:polygon(100% 0,0 22%,0 78%,100% 100%)}.parcel.fold1 .left{left:0;width:35px;clip-path:polygon(0 0,100% 50%,0 100%)}.parcel.fold2 .right{right:0;width:35px;clip-path:polygon(100% 0,0 50%,100% 100%)}.ribbon{display:none;position:absolute;inset:0;z-index:2;text-align:center;padding-top:5px;font-size:35px;color:#755268;border-inline:7px solid transparent}.fold3 .ribbon{display:block}.center-dot{position:absolute;left:27px;top:22px;width:8px;height:8px;background:#fff;border:2px solid #755268;border-radius:50%;z-index:3}#feedback{position:absolute;bottom:51px;width:100%;margin:0;text-align:center;font-size:19px;font-weight:bold}#combo{position:absolute;bottom:22px;width:100%;margin:0;text-align:center;font-size:12px;color:#6e626a}#wrap{min-height:62px;font-size:17px;font-weight:bold;touch-action:none;user-select:none}#wrap:active{background:#eee4e8}.companion{display:flex;align-items:center;gap:8px;min-height:64px}.companion img{object-fit:contain}.companion b{font-size:11px;color:#6e626a}.companion p{font-size:13px;line-height:1.5;margin:3px 0}#save-note{font-size:10px;color:#6e626a;margin:0}.panel{position:absolute;inset:0;display:flex;background:#fffffff5;padding:16px;z-index:5;overflow:auto}.panel-content{margin:auto;width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}.panel h2{font-size:20px;margin:0}.panel p{font-size:13px;line-height:1.6;margin:0}.panel button{width:100%;font-weight:bold}.panel img{object-fit:contain}#record{color:#6e626a}@media(max-height:700px){.steps{top:60px}#hint{top:88px}.belt{height:132px;top:41%}.parcel{top:37px}.companion img{width:48px;height:48px}.companion{min-height:48px}.panel img{width:72px;height:72px}.panel-content{gap:8px}#feedback{bottom:33px}#combo{bottom:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Design review 1: visible timing bands match the ±7% acceptance window. */
.marks i{width:14%}.steps span.active{color:#633d51;font-weight:700;text-decoration:underline;text-underline-offset:5px}.marks i.active::after{content:'▼';display:block;font-size:14px;margin-top:5px}

/* Design review 2: each folded side and the completed ribbon retain their silhouette. */
.parcel.fold1 .box{background:linear-gradient(90deg,#dfb2c3 50%,#e9bd91 50%)}.parcel.fold2 .box{background:#dfb2c3}.fold3 .ribbon{border-inline:0;background:linear-gradient(90deg,transparent 43%,#755268 43% 57%,transparent 57%);color:#633d51;text-shadow:0 1px #fff}.parcel.fold3 .center-dot{display:none}

/* Design review 3: reserve separate vertical space for controls, belt and feedback. */
.stage{min-height:320px}#wrap{flex-shrink:0}.companion{flex-shrink:0}.companion img{flex-shrink:0}@media(max-height:700px){.stage{min-height:300px}.steps{top:60px}#hint{top:88px}.belt{top:114px;height:110px}.parcel{top:26px}#feedback{bottom:36px}#combo{bottom:13px}#wrap{min-height:54px}}

/* Detail review 3: avoid native long-press UI on the repeated touch action. */
#wrap{-webkit-user-select:none;-webkit-touch-callout:none}button:focus-visible{outline:2px solid #76566a;outline-offset:2px}.steps span{white-space:nowrap}

/* Play review 1: keep result copy clear of the finished board. */
.panel{background:#fff}
