* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #E9C9A0; color: #5A3A1E; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif; user-select: none; }
#game { position: fixed; inset: 0; overflow: hidden; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 60%; transition: transform .25s; }
.bg.hop { transform: scale(1.04); }
.shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.shade.top { top: 0; height: 16%; background: linear-gradient(#EBCFAA 20%, rgba(235,207,170,0)); }
.shade.bot { bottom: 0; height: 36%; background: linear-gradient(rgba(214,166,112,0), #D6A670 45%); }
.hud { position: absolute; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pill { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 10px; border-radius: 20px; background: #FFF6E6; border: 2px solid #F2C46B; font-size: 18px; color: #C97A12; box-shadow: 0 2px 6px rgba(120,70,20,.25); }
.pill .mp-icon { font-size: 26px; width: 26px; height: 26px; color: #F5B02E; }
.stage { width: 132px; padding: 8px 10px; border-radius: 14px; background: #FFF6E6; box-shadow: 0 2px 6px rgba(120,70,20,.25); }
.stage-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.stage-row em { font-style: normal; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 10px; background: #FFD98A; color: #8A4B0F; }
.stage small { display: block; text-align: center; font-size: 11px; color: #8A6A4A; margin-top: 2px; }
.bar { height: 10px; border-radius: 6px; background: #E8D8BE; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #FFB43A, #FF8A3D); transition: width .3s; }
.bar.sm { height: 8px; width: 70%; margin: 6px auto 0; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 18px); display: flex; gap: 10px; justify-content: center; }
.care { flex: 1; max-width: 120px; min-height: 96px; border: 2px solid #F2D9B0; border-radius: 22px; background: linear-gradient(#FFF9EC, #F7E3C0); color: #6B4423; font-size: 17px; padding: 10px 4px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 0 #D4A86A, 0 6px 10px rgba(100,60,20,.25); }
.care:active { transform: translateY(3px); box-shadow: 0 1px 0 #D4A86A; }
.care .mp-icon { width: 38px; height: 38px; font-size: 38px; color: #FF8A3D; }
.ad { position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 128px); display: flex; align-items: center; gap: 6px; padding: 10px 16px; border: 2px solid #FFE08A; border-radius: 24px; background: linear-gradient(#FFD34D, #FF9F2E); color: #6B3A08; font-size: 15px; font-weight: 700; box-shadow: 0 3px 0 #C77712, 0 4px 8px rgba(100,60,20,.3); }
.ad .mp-icon { width: 24px; height: 24px; font-size: 24px; }
.ad:disabled { filter: grayscale(.6); opacity: .8; }
#floats { position: absolute; inset: 0; pointer-events: none; }
.fl { position: absolute; top: 46%; font-size: 18px; font-weight: 700; color: #FFF; text-shadow: 0 2px 4px rgba(120,60,10,.7); animation: up 1.2s ease-out forwards; }
@keyframes up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-90px); opacity: 0; } }
#tip { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); max-width: 80%; padding: 8px 16px; border-radius: 16px; background: rgba(90,50,20,.78); color: #FFF; font-size: 14px; opacity: 0; transition: opacity .25s; pointer-events: none; text-align: center; }
#tip.show { opacity: 1; }
